Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit 3745016

Browse files
wsw0108JCWasmx86
authored andcommitted
Quote parameters for 'get_option()' and 'files()' as for 'dependency()'
1 parent 50a64ed commit 3745016

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/liblangserver/completion.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ specialStringLiteralAutoCompletion(const StringLiteral *literal,
464464
// TODO: Works in Builder, but not in VSCode
465465
ret.emplace_back(
466466
relative, CompletionItemKind::CIK_FILE,
467-
TextEdit(nodeToRange(literal), std::format("{}", relative)));
467+
TextEdit(nodeToRange(literal), std::format("'{}'", relative)));
468468
}
469469
}
470470

@@ -493,7 +493,7 @@ static void specialStringLiteralAutoCompletion(
493493
// TODO: Works in Builder, but not in VSCode
494494
ret.emplace_back(
495495
opt->name, CompletionItemKind::CIK_FILE,
496-
TextEdit(nodeToRange(literal), std::format("{}", opt->name)));
496+
TextEdit(nodeToRange(literal), std::format("'{}'", opt->name)));
497497
}
498498
}
499499

0 commit comments

Comments
 (0)