Skip to content

Commit 077aedf

Browse files
authored
Quote parameters for 'get_option()' and 'files()' as for 'dependency()'
1 parent 50a64ed commit 077aedf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/liblangserver/completion.cpp

+2-2
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)