@spyglassmc/language-server 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/util/toLS.js +2 -1
- package/package.json +5 -5
package/lib/util/toLS.js
CHANGED
|
@@ -126,7 +126,8 @@ export function inlayHints(hints, doc) {
|
|
|
126
126
|
}
|
|
127
127
|
export function completionItem(completion, doc, requestedOffset, insertReplaceSupport) {
|
|
128
128
|
const insertText = completion.insertText ?? completion.label;
|
|
129
|
-
const canInsertReplace = insertReplaceSupport &&
|
|
129
|
+
const canInsertReplace = insertReplaceSupport &&
|
|
130
|
+
![core.CR, core.LF, core.CRLF].includes(insertText);
|
|
130
131
|
const textEdit = canInsertReplace
|
|
131
132
|
? ls.InsertReplaceEdit.create(insertText,
|
|
132
133
|
/* insert */ range(core.Range.create(completion.range.start, requestedOffset), doc),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spyglassmc/language-server",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/server.js",
|
|
6
6
|
"types": "lib/server.d.ts",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"env-paths": "^2.2.1",
|
|
22
22
|
"vscode-languageserver": "^7.0.0",
|
|
23
23
|
"vscode-languageserver-textdocument": "^1.0.1",
|
|
24
|
-
"@spyglassmc/core": "0.4.
|
|
25
|
-
"@spyglassmc/java-edition": "0.3.
|
|
26
|
-
"@spyglassmc/locales": "0.3.
|
|
27
|
-
"@spyglassmc/mcdoc": "0.3.
|
|
24
|
+
"@spyglassmc/core": "0.4.2",
|
|
25
|
+
"@spyglassmc/java-edition": "0.3.3",
|
|
26
|
+
"@spyglassmc/locales": "0.3.2",
|
|
27
|
+
"@spyglassmc/mcdoc": "0.3.3"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|