monaco-languageclient
Advanced tools
Comparing version 0.9.1-next.21 to 0.9.1-next.22
@@ -687,2 +687,5 @@ define(["require", "exports", "vscode-languageserver-protocol", "vscode-languageserver-protocol/lib/utils/is", "./services"], function (require, exports, ls, Is, services_1) { | ||
result.fromEdit = insertText.fromEdit; | ||
if (insertText.isSnippet) { | ||
result.insertTextRules = monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet; | ||
} | ||
if (Is.number(item.kind)) { | ||
@@ -739,3 +742,3 @@ let [itemKind, original] = this.asCompletionItemKind(item.kind); | ||
} | ||
return { insertText: '', range: defaultRange, fromEdit: false, isSnippet: false }; | ||
return { insertText: item.label, range: defaultRange, fromEdit: false, isSnippet: false }; | ||
} | ||
@@ -742,0 +745,0 @@ asDocumentLinks(documentLinks) { |
@@ -693,2 +693,5 @@ "use strict"; | ||
result.fromEdit = insertText.fromEdit; | ||
if (insertText.isSnippet) { | ||
result.insertTextRules = monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet; | ||
} | ||
if (Is.number(item.kind)) { | ||
@@ -745,3 +748,3 @@ let [itemKind, original] = this.asCompletionItemKind(item.kind); | ||
} | ||
return { insertText: '', range: defaultRange, fromEdit: false, isSnippet: false }; | ||
return { insertText: item.label, range: defaultRange, fromEdit: false, isSnippet: false }; | ||
} | ||
@@ -748,0 +751,0 @@ asDocumentLinks(documentLinks) { |
{ | ||
"name": "monaco-languageclient", | ||
"version": "0.9.1-next.21+5401bdc", | ||
"version": "0.9.1-next.22+56fffe7", | ||
"description": "Monaco Language client implementation", | ||
@@ -39,3 +39,3 @@ "author": "TypeFox GmbH (http://www.typefox.io)", | ||
], | ||
"gitHead": "5401bdca3f9c2c460f10daf0be62defffc2d8c62" | ||
"gitHead": "56fffe7eaa53e4703d69b43a9750c787ce81c0b8" | ||
} |
@@ -7,2 +7,4 @@ /* -------------------------------------------------------------------------------------------- | ||
// dummy change | ||
import { | ||
@@ -9,0 +11,0 @@ Message, MessageType as RPCMessageType, |
@@ -799,2 +799,5 @@ /* -------------------------------------------------------------------------------------------- | ||
result.fromEdit = insertText.fromEdit; | ||
if (insertText.isSnippet) { | ||
result.insertTextRules = monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet; | ||
} | ||
if (Is.number(item.kind)) { | ||
@@ -838,3 +841,3 @@ let [itemKind, original] = this.asCompletionItemKind(item.kind); | ||
} | ||
return { insertText: '', range: defaultRange, fromEdit: false, isSnippet: false }; | ||
return { insertText: item.label, range: defaultRange, fromEdit: false, isSnippet: false }; | ||
} | ||
@@ -841,0 +844,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
712224
9308