From 0f189c610f953ac6c768215fdde8369166f4ec1d Mon Sep 17 00:00:00 2001 From: liuxy0551 Date: Tue, 18 Jun 2024 11:49:44 +0800 Subject: [PATCH] fix: #132 optimize provideCompletionItems insertTextRules --- 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 }) );