From 802f4cdcab33086b8c4fc4bd424cd6d2ddfb98d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=90=89=E6=98=93?= Date: Wed, 19 Jun 2024 11:07:37 +0800 Subject: [PATCH] fix: #132 optimize provideCompletionItems insertTextRules (#133) --- src/languageFeatures.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/languageFeatures.ts b/src/languageFeatures.ts index 1915e30a..2a9a869e 100644 --- a/src/languageFeatures.ts +++ b/src/languageFeatures.ts @@ -185,10 +185,7 @@ export class CompletionAdapter insertText: item.insertText ?? (typeof item.label === 'string' ? item.label : item.label.label), - range: item.range ?? wordRange, - insertTextRules: - item.insertTextRules ?? - languages.CompletionItemInsertTextRule.InsertAsSnippet + range: item.range ?? wordRange }) );