Update built-in JS/TS version to 3.9
This commit is contained in:
parent
d7cf608460
commit
996b5be2ed
|
@ -3,7 +3,7 @@
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "Dependencies shared by all extensions",
|
"description": "Dependencies shared by all extensions",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"typescript": "3.8.3"
|
"typescript": "3.9.1-rc"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "node ./postinstall"
|
"postinstall": "node ./postinstall"
|
||||||
|
|
|
@ -179,9 +179,7 @@ export default class FileConfigurationManager extends Disposable {
|
||||||
isTypeScriptDocument(document) ? 'typescript.preferences' : 'javascript.preferences',
|
isTypeScriptDocument(document) ? 'typescript.preferences' : 'javascript.preferences',
|
||||||
document.uri);
|
document.uri);
|
||||||
|
|
||||||
// `importModuleSpecifierEnding` added to `Proto.UserPreferences` in TypeScript 3.9:
|
const preferences: Proto.UserPreferences = {
|
||||||
// remove intersection type after upgrading TypeScript.
|
|
||||||
const preferences: Proto.UserPreferences & { importModuleSpecifierEnding?: string } = {
|
|
||||||
quotePreference: this.getQuoteStylePreference(config),
|
quotePreference: this.getQuoteStylePreference(config),
|
||||||
importModuleSpecifierPreference: getImportModuleSpecifierPreference(config),
|
importModuleSpecifierPreference: getImportModuleSpecifierPreference(config),
|
||||||
importModuleSpecifierEnding: getImportModuleSpecifierEndingPreference(config),
|
importModuleSpecifierEnding: getImportModuleSpecifierEndingPreference(config),
|
||||||
|
|
|
@ -56,7 +56,7 @@ class TypeScriptWorkspaceSymbolProvider implements vscode.WorkspaceSymbolProvide
|
||||||
}
|
}
|
||||||
|
|
||||||
const args: Proto.NavtoRequestArgs = {
|
const args: Proto.NavtoRequestArgs = {
|
||||||
file: file!, // TS 3.9+ supports using undefined to search all open projects
|
file,
|
||||||
searchValue: search,
|
searchValue: search,
|
||||||
maxResultCount: 256,
|
maxResultCount: 256,
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# yarn lockfile v1
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
typescript@3.8.3:
|
typescript@3.9.1-rc:
|
||||||
version "3.8.3"
|
version "3.9.1-rc"
|
||||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.3.tgz#409eb8544ea0335711205869ec458ab109ee1061"
|
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.1-rc.tgz#81d5a5a0a597e224b6e2af8dffb46524b2eaf5f3"
|
||||||
integrity sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==
|
integrity sha512-+cPv8L2Vd4KidCotqi2wjegBZ5n47CDRUu/QiLVu2YbeXAz78hIfcai9ziBiNI6JTGTVwUqXRug2UZxDcxhvFw==
|
||||||
|
|
Loading…
Reference in a new issue