cmake command is case insensitive
This commit is contained in:
parent
dde0d39b2d
commit
28098c9c12
|
@ -415,7 +415,7 @@ function getLineAtPosition(textDocument: TextDocument, position: Position): stri
|
||||||
function getCommandProposals(word: string): Thenable<CompletionItem[]> {
|
function getCommandProposals(word: string): Thenable<CompletionItem[]> {
|
||||||
return new Promise((resolve, rejects) => {
|
return new Promise((resolve, rejects) => {
|
||||||
const similarCmds = Object.keys(builtinCmds).filter(cmd => {
|
const similarCmds = Object.keys(builtinCmds).filter(cmd => {
|
||||||
return cmd.includes(word);
|
return cmd.includes(word.toLowerCase());
|
||||||
});
|
});
|
||||||
const proposalCmds: CompletionItem[] = similarCmds.map((value, index, array) => {
|
const proposalCmds: CompletionItem[] = similarCmds.map((value, index, array) => {
|
||||||
let item: CompletionItem = {
|
let item: CompletionItem = {
|
||||||
|
|
Loading…
Reference in New Issue