We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c34eb5e commit 5dcc09fCopy full SHA for 5dcc09f
server/src/util/sourcing.ts
@@ -109,13 +109,15 @@ function getSourcedPathInfoFromNode({
109
}
110
111
if (argumentNode.type === 'string' || argumentNode.type === 'raw_string') {
112
- if (argumentNode.namedChildren.length === 0) {
+ const children = argumentNode.namedChildren
113
+ if (
114
+ children.length === 0 ||
115
+ (children.length === 1 && children[0].type === 'string_content')
116
+ )
117
return {
118
sourcedPath: argumentNode.text.slice(1, -1),
119
- }
120
-
121
// TODO: we could try to parse any ShellCheck "source "directive
122
// # shellcheck source=src/examples/config.sh
123
0 commit comments