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 f8b202bCopy full SHA for f8b202b
server/src/util/sourcing.ts
@@ -109,7 +109,11 @@ 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
0 commit comments