@spyglassmc/mcfunction 0.2.42 → 0.2.44
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/parser/command.js +3 -3
- package/package.json +4 -4
package/lib/parser/command.js
CHANGED
|
@@ -20,7 +20,7 @@ export function command(tree, argument, options = {}) {
|
|
|
20
20
|
if (src.trySkip('/')) {
|
|
21
21
|
ans.slash = core.Range.create(start, src.cursor);
|
|
22
22
|
if (!options.slash) {
|
|
23
|
-
ctx.err.report(localize('mcfunction.parser.leading-slash.unexpected'), ans.slash,
|
|
23
|
+
ctx.err.report(localize('mcfunction.parser.leading-slash.unexpected'), ans.slash, core.ErrorSeverity.Error, {
|
|
24
24
|
codeAction: {
|
|
25
25
|
title: localize('code-action.remove-leading-slash'),
|
|
26
26
|
isPreferred: true,
|
|
@@ -36,7 +36,7 @@ export function command(tree, argument, options = {}) {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
else if (options.slash === 'required') {
|
|
39
|
-
ctx.err.report(localize('expected', localize('mcfunction.parser.leading-slash')), core.Range.create(start, start + 1),
|
|
39
|
+
ctx.err.report(localize('expected', localize('mcfunction.parser.leading-slash')), core.Range.create(start, start + 1), core.ErrorSeverity.Error, {
|
|
40
40
|
codeAction: {
|
|
41
41
|
title: localize('code-action.add-leading-slash'),
|
|
42
42
|
isPreferred: true,
|
|
@@ -150,7 +150,7 @@ function unknown(treeNode) {
|
|
|
150
150
|
const start = src.cursor;
|
|
151
151
|
const value = src.readUntilLineEnd();
|
|
152
152
|
const range = core.Range.create(start, src);
|
|
153
|
-
ctx.err.report(localize('mcfunction.parser.unknown-parser', localeQuote(treeNode.parser)), range,
|
|
153
|
+
ctx.err.report(localize('mcfunction.parser.unknown-parser', localeQuote(treeNode.parser)), range, core.ErrorSeverity.Hint);
|
|
154
154
|
return { type: 'mcfunction:command_child/unknown', range, value };
|
|
155
155
|
};
|
|
156
156
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spyglassmc/mcfunction",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.44",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
13
|
"release": "npm publish",
|
|
14
|
-
"release:dry": "npm publish --dry-run"
|
|
14
|
+
"release:dry": "npm publish --tag latest --dry-run"
|
|
15
15
|
},
|
|
16
16
|
"publishConfig": {
|
|
17
17
|
"access": "public"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"url": "https://github.com/SpyglassMC/Spyglass/issues"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@spyglassmc/core": "0.4.
|
|
29
|
-
"@spyglassmc/locales": "0.3.
|
|
28
|
+
"@spyglassmc/core": "0.4.41",
|
|
29
|
+
"@spyglassmc/locales": "0.3.21"
|
|
30
30
|
}
|
|
31
31
|
}
|