File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,10 @@ describe('analyze', () => {
98
98
{
99
99
"message": "Source command could not be analyzed: non-constant source not supported.
100
100
101
- Note that enabling the configuration flag "includeAllWorkspaceSymbols"
102
- would include all symbols in the workspace regardless of source commands.
103
- But be aware that this will lead to false positive suggestions.",
101
+ Consider adding a ShellCheck directive above this line to fix or ignore this:
102
+ # shellcheck source=/my-file.sh # specify the file to source
103
+ # shellcheck source-path=my_script_folder # specify the folder to search in
104
+ # shellcheck source=/dev/null # to ignore the error",
104
105
"range": {
105
106
"end": {
106
107
"character": 16,
Original file line number Diff line number Diff line change @@ -100,9 +100,10 @@ export default class Analyzer {
100
100
sourceCommand . range ,
101
101
[
102
102
`Source command could not be analyzed: ${ sourceCommand . error } .\n` ,
103
- 'Note that enabling the configuration flag "includeAllWorkspaceSymbols"' ,
104
- 'would include all symbols in the workspace regardless of source commands.' ,
105
- 'But be aware that this will lead to false positive suggestions.' ,
103
+ 'Consider adding a ShellCheck directive above this line to fix or ignore this:' ,
104
+ '# shellcheck source=/my-file.sh # specify the file to source' ,
105
+ '# shellcheck source-path=my_script_folder # specify the folder to search in' ,
106
+ '# shellcheck source=/dev/null # to ignore the error' ,
106
107
] . join ( '\n' ) ,
107
108
LSP . DiagnosticSeverity . Information ,
108
109
undefined ,
You can’t perform that action at this time.
0 commit comments