@codingame/monaco-vscode-rollup-vsix-plugin 4.5.0 → 4.5.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/package.json +6 -2
- package/rollup-vsix-plugin.js +11 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-rollup-vsix-plugin",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
"module": "rollup-vsix-plugin.js",
|
|
19
19
|
"types": "rollup-vsix-plugin.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@4.5.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@4.5.2",
|
|
22
|
+
"css-url-parser": "^1.1.3",
|
|
23
|
+
"memfs": "^4.8.1",
|
|
24
|
+
"mime-types": "^2.1.35",
|
|
25
|
+
"yauzl": "^3.0.0"
|
|
22
26
|
}
|
|
23
27
|
}
|
package/rollup-vsix-plugin.js
CHANGED
|
@@ -867,24 +867,19 @@ function localizeWithPath(path, data, defaultMessage, ...args) {
|
|
|
867
867
|
return _format(message, args);
|
|
868
868
|
}
|
|
869
869
|
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
873
|
-
*--------------------------------------------------------------------------------------------*/
|
|
874
|
-
/**
|
|
875
|
-
* Extracted from json.ts to keep json nls free.
|
|
876
|
-
*/
|
|
870
|
+
//@ts-ignore
|
|
871
|
+
const _moduleId = "vs/base/common/jsonErrorMessages";
|
|
877
872
|
function getParseErrorMessage(errorCode) {
|
|
878
873
|
switch (errorCode) {
|
|
879
|
-
case 1 /* ParseErrorCode.InvalidSymbol */: return localizeWithPath(
|
|
880
|
-
case 2 /* ParseErrorCode.InvalidNumberFormat */: return localizeWithPath(
|
|
881
|
-
case 3 /* ParseErrorCode.PropertyNameExpected */: return localizeWithPath(
|
|
882
|
-
case 4 /* ParseErrorCode.ValueExpected */: return localizeWithPath(
|
|
883
|
-
case 5 /* ParseErrorCode.ColonExpected */: return localizeWithPath(
|
|
884
|
-
case 6 /* ParseErrorCode.CommaExpected */: return localizeWithPath(
|
|
885
|
-
case 7 /* ParseErrorCode.CloseBraceExpected */: return localizeWithPath(
|
|
886
|
-
case 8 /* ParseErrorCode.CloseBracketExpected */: return localizeWithPath(
|
|
887
|
-
case 9 /* ParseErrorCode.EndOfFileExpected */: return localizeWithPath(
|
|
874
|
+
case 1 /* ParseErrorCode.InvalidSymbol */: return localizeWithPath(_moduleId, 'error.invalidSymbol', 'Invalid symbol');
|
|
875
|
+
case 2 /* ParseErrorCode.InvalidNumberFormat */: return localizeWithPath(_moduleId, 'error.invalidNumberFormat', 'Invalid number format');
|
|
876
|
+
case 3 /* ParseErrorCode.PropertyNameExpected */: return localizeWithPath(_moduleId, 'error.propertyNameExpected', 'Property name expected');
|
|
877
|
+
case 4 /* ParseErrorCode.ValueExpected */: return localizeWithPath(_moduleId, 'error.valueExpected', 'Value expected');
|
|
878
|
+
case 5 /* ParseErrorCode.ColonExpected */: return localizeWithPath(_moduleId, 'error.colonExpected', 'Colon expected');
|
|
879
|
+
case 6 /* ParseErrorCode.CommaExpected */: return localizeWithPath(_moduleId, 'error.commaExpected', 'Comma expected');
|
|
880
|
+
case 7 /* ParseErrorCode.CloseBraceExpected */: return localizeWithPath(_moduleId, 'error.closeBraceExpected', 'Closing brace expected');
|
|
881
|
+
case 8 /* ParseErrorCode.CloseBracketExpected */: return localizeWithPath(_moduleId, 'error.closeBracketExpected', 'Closing bracket expected');
|
|
882
|
+
case 9 /* ParseErrorCode.EndOfFileExpected */: return localizeWithPath(_moduleId, 'error.endOfFileExpected', 'End of file expected');
|
|
888
883
|
default:
|
|
889
884
|
return '';
|
|
890
885
|
}
|