diff --git a/CHANGELOG.md b/CHANGELOG.md index a94b83e..9b16651 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 0.0.9 +- Update **vscode-yaml-languageservice** to 0.2.0 + - Disables legacy (pre-1.2) YAML compatibility when formatting. This gives cleaner results in some files (like `.travis.yml`) where this extension may have been forcing unnecessary escaping (quoting). + - Removes the (never-working) color symbol support + ## 0.0.8 - Update **vscode-json-languageservice** to the current latest version (2.0.14) by updating **vscode-yaml-languageservice**. - **vscode-yaml-languageservice** dependency is now managed by `npm`. This makes development easier. diff --git a/README.md b/README.md index b480ae0..50acb14 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,6 @@ Schemas are handled exactly [same way they are with JSON in Visual Studio Code]( ## Known Issues - No support has been implemented for include references. ([relevant code](https://github.com/adamvoss/vscode-yaml-languageservice/blob/9199669d241f8fb5fde801399c4cd5abd0bc6d52/src/parser/yamlParser.ts#L243-L247)) - - Color decorators (`yaml.colorDecorators.enable`) do not work even when enabled. ## Acknowledgments This extension would not have been possible without numerous open source projects. Please see [ACKNOWLEDGMENTS.md](ACKNOWLEDGMENTS.md). diff --git a/client/src/yamlMain.ts b/client/src/yamlMain.ts index ee6c929..d081e10 100644 --- a/client/src/yamlMain.ts +++ b/client/src/yamlMain.ts @@ -83,7 +83,7 @@ export function activate(context: ExtensionContext) { return client.sendRequest(ColorSymbolRequest.type, uri).then(ranges => ranges.map(client.protocol2CodeConverter.asRange)); }; let isDecoratorEnabled = (languageId: string) => { - return workspace.getConfiguration().get(languageId + '.colorDecorators.enable'); + return false; }; disposable = activateColorDecorations(colorRequestor, { yaml: true }, isDecoratorEnabled); context.subscriptions.push(disposable); diff --git a/package.json b/package.json index 85b5c62..017d8bd 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "yaml", "displayName": "YAML", "description": "YAML for Visual Studio Code", - "version": "0.0.8", + "version": "0.0.9", "publisher": "adamvoss", "license": "MIT", "repository": { @@ -36,11 +36,6 @@ "configuration": { "title": "YAML", "properties": { - "yaml.colorDecorators.enable": { - "type": "boolean", - "default": false, - "description": "%yaml.colorDecorators.enable.desc%" - }, "yaml.format.enable": { "type": "boolean", "default": true, @@ -50,7 +45,7 @@ } }, "dependencies": { - "vscode-languageclient": "^3.1.0-alpha.1", + "vscode-languageclient": "~3.3", "vscode-nls": "^2.0.2" }, "devDependencies": { diff --git a/package.nls.json b/package.nls.json index 9733acf..a034a73 100644 --- a/package.nls.json +++ b/package.nls.json @@ -1,4 +1,3 @@ { - "yaml.colorDecorators.enable.desc": "Enables or disables color decorators", "yaml.format.enable.desc": "Enable/disable default YAML formatter (requires restart)" } \ No newline at end of file diff --git a/server/package.json b/server/package.json index d1ffe4b..f006e85 100644 --- a/server/package.json +++ b/server/package.json @@ -12,7 +12,7 @@ "request-light": "^0.2.1", "vscode-languageserver": "^3.1.0-alpha.1", "vscode-nls": "^2.0.2", - "vscode-yaml-languageservice": "^0.1.0" + "vscode-yaml-languageservice": "^0.2.0" }, "devDependencies": { "@types/node": "^6.0.51" diff --git a/server/src/yamlServerMain.ts b/server/src/yamlServerMain.ts index d370639..7ea98c4 100644 --- a/server/src/yamlServerMain.ts +++ b/server/src/yamlServerMain.ts @@ -322,14 +322,5 @@ connection.onDocumentFormatting(formatParams => { return languageService.format(document, formatParams.options); }); -connection.onRequest(ColorSymbolRequest.type, uri => { - let document = documents.get(uri); - if (document) { - let jsonDocument = getJSONDocument(document); - return languageService.findColorSymbols(document, jsonDocument); - } - return []; -}); - // Listen on the connection connection.listen();