vscode-json-languageservice 3.6.0 → 3.7.0
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
3.7.0 / 2020-06-04
|
|
2
|
+
==================
|
|
3
|
+
* New API `JSONSchema.suggestSortText` to set the sort order of completion proposals (VSCode specific JSON schema extension)
|
|
4
|
+
|
|
1
5
|
3.6.0 / 2020-04-27
|
|
2
6
|
==================
|
|
3
7
|
* New API `findDefinition` to find a definition of a `$ref` link
|
|
@@ -83,7 +87,7 @@
|
|
|
83
87
|
|
|
84
88
|
2.0.5 / 2017-03-27
|
|
85
89
|
==================
|
|
86
|
-
* Add new API findColorSymbols that
|
|
90
|
+
* Add new API findColorSymbols that returns all color values in a JSON document. To mark a value as a color, specify `"format": "color"` in the schema.
|
|
87
91
|
|
|
88
92
|
2.0.4 / 2017-02-27
|
|
89
93
|
==================
|
package/lib/esm/jsonSchema.d.ts
CHANGED
|
@@ -210,6 +210,9 @@ var JSONCompletion = /** @class */ (function () {
|
|
|
210
210
|
filterText: _this.getFilterTextForValue(key),
|
|
211
211
|
documentation: _this.fromMarkup(propertySchema.markdownDescription) || propertySchema.description || '',
|
|
212
212
|
};
|
|
213
|
+
if (propertySchema.suggestSortText !== undefined) {
|
|
214
|
+
proposal.sortText = propertySchema.suggestSortText;
|
|
215
|
+
}
|
|
213
216
|
if (proposal.insertText && endsWith(proposal.insertText, "$1" + separatorAfter)) {
|
|
214
217
|
proposal.command = {
|
|
215
218
|
title: 'Suggest',
|
package/lib/umd/jsonSchema.d.ts
CHANGED
|
@@ -221,6 +221,9 @@
|
|
|
221
221
|
filterText: _this.getFilterTextForValue(key),
|
|
222
222
|
documentation: _this.fromMarkup(propertySchema.markdownDescription) || propertySchema.description || '',
|
|
223
223
|
};
|
|
224
|
+
if (propertySchema.suggestSortText !== undefined) {
|
|
225
|
+
proposal.sortText = propertySchema.suggestSortText;
|
|
226
|
+
}
|
|
224
227
|
if (proposal.insertText && strings_1.endsWith(proposal.insertText, "$1" + separatorAfter)) {
|
|
225
228
|
proposal.command = {
|
|
226
229
|
title: 'Suggest',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vscode-json-languageservice",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "Language service for JSON",
|
|
5
5
|
"main": "./lib/umd/jsonLanguageService.js",
|
|
6
6
|
"typings": "./lib/umd/jsonLanguageService",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/mocha": "^7.0.2",
|
|
19
19
|
"@types/node": "^10.12.21",
|
|
20
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
21
|
-
"@typescript-eslint/parser": "^
|
|
22
|
-
"eslint": "^
|
|
23
|
-
"mocha": "^7.
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "^3.1.0",
|
|
21
|
+
"@typescript-eslint/parser": "^3.1.0",
|
|
22
|
+
"eslint": "^7.1.0",
|
|
23
|
+
"mocha": "^7.2.0",
|
|
24
24
|
"nyc": "^15.0.1",
|
|
25
25
|
"rimraf": "^3.0.2",
|
|
26
26
|
"typescript": "^3.8.3"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"vscode-languageserver-textdocument": "^1.0.1",
|
|
31
31
|
"vscode-languageserver-types": "^3.15.1",
|
|
32
32
|
"vscode-nls": "^4.1.2",
|
|
33
|
-
"vscode-uri": "^2.1.
|
|
33
|
+
"vscode-uri": "^2.1.2"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"prepublishOnly": "npm run clean && npm run compile-esm && npm run test && npm run remove-sourcemap-refs",
|