Merge pull request #75 from microsoft/4_3_dev

Adds support for TypeScript 4.3 builds
This commit is contained in:
Alexandru Dima 2021-06-03 17:35:27 +02:00 committed by GitHub
commit a59162dbd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 28964 additions and 20508 deletions

6
package-lock.json generated
View file

@ -461,9 +461,9 @@
}
},
"typescript": {
"version": "4.2.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.4.tgz",
"integrity": "sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==",
"version": "4.3.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.2.tgz",
"integrity": "sha512-zZ4hShnmnoVnAHpVHWpTcxdv7dWP60S2FsydQLV8V5PbS3FifjWFFRiHSWpDJahly88PRyV5teTSLoq4eG7mKw==",
"dev": true
},
"which": {

View file

@ -32,7 +32,7 @@
"pretty-quick": "^3.1.0",
"requirejs": "^2.3.6",
"terser": "^5.6.0",
"typescript": "^4.2.4"
"typescript": "^4.3.2"
},
"husky": {
"hooks": {

View file

@ -370,9 +370,9 @@ export class DiagnosticsAdapter extends Adapter {
private _convertRelatedInformation(
model: editor.ITextModel,
relatedInformation?: DiagnosticRelatedInformation[]
): editor.IRelatedInformation[] | undefined {
): editor.IRelatedInformation[] {
if (!relatedInformation) {
return;
return [];
}
const result: editor.IRelatedInformation[] = [];
@ -572,9 +572,9 @@ export class SuggestAdapter extends Adapter implements languages.CompletionItemP
function tagToString(tag: ts.JSDocTagInfo): string {
let tagLabel = `*@${tag.name}*`;
if (tag.name === 'param' && tag.text) {
const [paramName, ...rest] = tag.text.split(' ');
tagLabel += `\`${paramName}\``;
if (rest.length > 0) tagLabel += `${rest.join(' ')}`;
const [paramName, ...rest] = tag.text;
tagLabel += `\`${paramName.text}\``;
if (rest.length > 0) tagLabel += `${rest.map(r => r.text).join(' ')}`;
} else if (tag.text) {
tagLabel += `${tag.text}`;
}

View file

@ -53,6 +53,11 @@ libFileSet['lib.es2020.promise.d.ts'] = true;
libFileSet['lib.es2020.sharedmemory.d.ts'] = true;
libFileSet['lib.es2020.string.d.ts'] = true;
libFileSet['lib.es2020.symbol.wellknown.d.ts'] = true;
libFileSet['lib.es2021.d.ts'] = true;
libFileSet['lib.es2021.full.d.ts'] = true;
libFileSet['lib.es2021.promise.d.ts'] = true;
libFileSet['lib.es2021.string.d.ts'] = true;
libFileSet['lib.es2021.weakref.d.ts'] = true;
libFileSet['lib.es5.d.ts'] = true;
libFileSet['lib.es6.d.ts'] = true;
libFileSet['lib.esnext.d.ts'] = true;

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -2,4 +2,4 @@
// **NOTE**: Do not edit directly! This file is generated using `npm run import-typescript`
//
export const typescriptVersion = "4.2.4";
export const typescriptVersion = "4.3.2";

View file

@ -253,6 +253,7 @@ export class TypeScriptWorker implements ts.LanguageServiceHost, ITypeScriptWork
entry,
undefined,
undefined,
undefined,
undefined
);
}