cmake command is case insensitive

This commit is contained in:
全卓 2022-11-30 13:10:08 +08:00
parent dde0d39b2d
commit 28098c9c12
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ function getLineAtPosition(textDocument: TextDocument, position: Position): stri
function getCommandProposals(word: string): Thenable<CompletionItem[]> {
return new Promise((resolve, rejects) => {
const similarCmds = Object.keys(builtinCmds).filter(cmd => {
return cmd.includes(word);
return cmd.includes(word.toLowerCase());
});
const proposalCmds: CompletionItem[] = similarCmds.map((value, index, array) => {
let item: CompletionItem = {