add reaonly support, update typescript-vscode-sh-plugin version

This commit is contained in:
Martin Aeschlimann 2020-01-13 19:57:17 +01:00
parent 5cb1ae0661
commit 18f0a5bd21
3 changed files with 8 additions and 6 deletions

View file

@ -19,14 +19,14 @@
"jsonc-parser": "^2.1.1",
"rimraf": "^2.6.3",
"semver": "5.5.1",
"typescript-vscode-sh-plugin": "^0.3.0",
"typescript-vscode-sh-plugin": "^0.4.0",
"vscode-extension-telemetry": "0.1.1",
"vscode-nls": "^4.0.0"
},
"devDependencies": {
"@types/node": "^12.11.7",
"@types/semver": "^5.5.0",
"@types/rimraf": "2.0.2",
"@types/semver": "^5.5.0",
"vscode": "^1.1.10"
},
"scripts": {

View file

@ -23,6 +23,7 @@ export function register(selector: vscode.DocumentSelector, client: ITypeScriptS
/**
* Prototype of a SemanticTokensProvider, relying on the experimental `encodedSemanticClassifications-full` request from the TypeScript server.
* As the results retured by the TypeScript server are limited, we also add a Typescript plugin (typescript-vscode-sh-plugin) to enrich the returned token.
* See https://github.com/aeschli/typescript-vscode-sh-plugin.
*/
class SemanticTokensProvider implements vscode.SemanticTokensProvider {
@ -130,6 +131,7 @@ enum TokenModifier {
'declaration',
'static',
'async',
'readonly',
_sentinel
}

View file

@ -626,10 +626,10 @@ tweetnacl@^0.14.3, tweetnacl@~0.14.0:
resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"
integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=
typescript-vscode-sh-plugin@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/typescript-vscode-sh-plugin/-/typescript-vscode-sh-plugin-0.3.0.tgz#a071fa28187259a04e3d6862adba41a6332106ff"
integrity sha512-pqPgYa1L64/2LnhP/tJz/+hUsbKzQRMGCdp6Z5Z/dhAdjChB/0WZvovbwDlApGWxOvNAG+oub9TXnJ1yT0WfXQ==
typescript-vscode-sh-plugin@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/typescript-vscode-sh-plugin/-/typescript-vscode-sh-plugin-0.4.0.tgz#1b3661f41970a3003099cb3785f7788b5703b751"
integrity sha512-UzqwDMoo/O5asQmUwaiW29cJG/5YzS0EK/4UyyB6UGLNY65CX9/CTp1RHYBmqdh7wq7M0PDqZ8QS1dOWEYnPuQ==
uri-js@^4.2.2:
version "4.2.2"