Description
As I user I want to know if a source command is not parsed, so I understand why symbol resolution isn't working (e.g. jump to definition or similar features). This diagnostic should likely be dismiss-able.
Implementation details
In order to implement this we would need to extend the crude regular expressions to use the actual AST. We would need to investigate how to make this dismiss-able, maybe just a configuration option.
Additional context
Recently (#244), source commands (e.g. . myfile.sh
or source ./file.bash
) is now used for figure out which symbols are available in a given context – this is hopefully an improvement compared to the old behaviour of including all symbols from the entire workspace when doing auto completion, jump to definition, on hover, etc. The new behaviour can be disabled using the includeAllWorkspaceSymbols
configuration flag.
Related to #646