update to latest JSON language service

This commit is contained in:
Alex Dima 2020-09-07 15:56:34 +02:00
parent 64d8798d5d
commit 2f06141c30
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0
4 changed files with 30 additions and 26 deletions

2
monaco.d.ts vendored
View file

@ -3,6 +3,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information. * Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/ *--------------------------------------------------------------------------------------------*/
/// <reference path="node_modules/monaco-editor-core/monaco.d.ts" />
declare namespace monaco.languages.json { declare namespace monaco.languages.json {
export interface DiagnosticsOptions { export interface DiagnosticsOptions {
/** /**

46
package-lock.json generated
View file

@ -157,9 +157,9 @@
"dev": true "dev": true
}, },
"chalk": { "chalk": {
"version": "3.0.0", "version": "4.1.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
"integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
"dev": true, "dev": true,
"requires": { "requires": {
"ansi-styles": "^4.1.0", "ansi-styles": "^4.1.0",
@ -326,18 +326,6 @@
"please-upgrade-node": "^3.2.0", "please-upgrade-node": "^3.2.0",
"slash": "^3.0.0", "slash": "^3.0.0",
"which-pm-runs": "^1.0.0" "which-pm-runs": "^1.0.0"
},
"dependencies": {
"chalk": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
"integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
"dev": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
}
} }
}, },
"ignore": { "ignore": {
@ -608,6 +596,18 @@
"ignore": "^5.1.4", "ignore": "^5.1.4",
"mri": "^1.1.5", "mri": "^1.1.5",
"multimatch": "^4.0.0" "multimatch": "^4.0.0"
},
"dependencies": {
"chalk": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
"integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
"dev": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
}
} }
}, },
"pump": { "pump": {
@ -720,16 +720,16 @@
"dev": true "dev": true
}, },
"vscode-json-languageservice": { "vscode-json-languageservice": {
"version": "3.4.11", "version": "3.8.3",
"resolved": "https://registry.npmjs.org/vscode-json-languageservice/-/vscode-json-languageservice-3.4.11.tgz", "resolved": "https://registry.npmjs.org/vscode-json-languageservice/-/vscode-json-languageservice-3.8.3.tgz",
"integrity": "sha512-26Qv1SFp6x3XmCqU1BRceRsSKRO3xkQa6/K8ziSRt52/LQPiw5ipSxlGVSlzIoi5LCmQVEqUajhiVEMNlFXhNw==", "integrity": "sha512-8yPag/NQHCuTthahyaTtzK0DHT0FKM/xBU0mFBQ8nMo8C1i2P+FCyIVqICoNoHkRI2BTGlXKomPUpsqjSz0TnQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"jsonc-parser": "^2.2.0", "jsonc-parser": "^2.2.1",
"vscode-languageserver-textdocument": "^1.0.0-next.5", "vscode-languageserver-textdocument": "^1.0.1",
"vscode-languageserver-types": "^3.15.0-next.9", "vscode-languageserver-types": "^3.15.1",
"vscode-nls": "^4.1.1", "vscode-nls": "^4.1.2",
"vscode-uri": "^2.1.1" "vscode-uri": "^2.1.2"
} }
}, },
"vscode-languageserver-textdocument": { "vscode-languageserver-textdocument": {

View file

@ -22,8 +22,8 @@
"module": "./release/esm/monaco.contribution.js", "module": "./release/esm/monaco.contribution.js",
"typings": "./release/esm/monaco.contribution.d.ts", "typings": "./release/esm/monaco.contribution.d.ts",
"devDependencies": { "devDependencies": {
"husky": "^4.2.5", "husky": "^4.3.0",
"jsonc-parser": "^2.2.0", "jsonc-parser": "^2.3.0",
"monaco-editor-core": "0.20.0", "monaco-editor-core": "0.20.0",
"monaco-languages": "1.10.0", "monaco-languages": "1.10.0",
"monaco-plugin-helpers": "^1.0.3", "monaco-plugin-helpers": "^1.0.3",
@ -32,7 +32,7 @@
"requirejs": "^2.3.6", "requirejs": "^2.3.6",
"typescript": "4.0.2", "typescript": "4.0.2",
"terser": "^5.3.0", "terser": "^5.3.0",
"vscode-json-languageservice": "3.4.11" "vscode-json-languageservice": "3.8.3"
}, },
"husky": { "husky": {
"hooks": { "hooks": {

View file

@ -20,6 +20,8 @@ let result = [
` * Licensed under the MIT License. See License.txt in the project root for license information.`, ` * Licensed under the MIT License. See License.txt in the project root for license information.`,
` *--------------------------------------------------------------------------------------------*/`, ` *--------------------------------------------------------------------------------------------*/`,
``, ``,
`/// <reference path="node_modules/monaco-editor-core/monaco.d.ts" />`,
``,
`declare namespace monaco.languages.json {` `declare namespace monaco.languages.json {`
]; ];
for (let line of lines) { for (let line of lines) {