Explorar o código

limit commands to retrigger

Martin Aeschlimann %!s(int64=4) %!d(string=hai) anos
pai
achega
d5515f3fae
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/languageFeatures.ts

+ 2 - 2
src/languageFeatures.ts

@@ -157,8 +157,8 @@ function toTextEdit(textEdit: htmlService.TextEdit): editor.ISingleEditOperation
 	};
 }
 
-function toCommand(c: htmlService.Command | undefined): languages.Command {
-	return c ? { id: c.command, title: c.title, arguments: c.arguments } : undefined
+function toCommand(c: cssService.Command | undefined): languages.Command {
+	return c && c.command === 'editor.action.triggerSuggest' ? { id: c.command, title: c.title, arguments: c.arguments } : undefined
 }
 
 export class CompletionAdapter implements languages.CompletionItemProvider {