Skip to content

Non-included script indexing/use #29

@tinygiant98

Description

@tinygiant98

I understand fully the ease of indexing all of the available scripts that aren't in the ignore path, and I'm not even sure this would be desirable behavior, but I'd like to get your take on it.

  1. Is it possible/desirable to have some kind of warning if user is adding functions from an #include file that isn't in the include chain for this specific script?

For example, if I have added a function from my "core_inc.nss", and this file is indexed because it exists in my project, but not #included in the script I'm currently working on, is it possible to add a warning (yellow squiggly) to let the user know he's adding a function from a non-included file, but still provide all the normal lsp functionality for said function?

  1. Alternately, would it be desirable to remove all indexing/access to any script that's not in the #include chain for the script that's currently being edited? That is, if I'm trying to pull in a function from an indexed script, but that script isn't #included in the file I'm currently editing, should lsp functionality for that file be blocked as kind of a hint that this script doesn't have access to those functions?

  2. Or, just let nwnsc do its thing and let the user be smart enough to figure it out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions