Skip to content
This repository was archived by the owner on Nov 5, 2021. It is now read-only.

Commit a59162d

Browse files
authored
Merge pull request #75 from microsoft/4_3_dev
Adds support for TypeScript 4.3 builds
2 parents 4c864e9 + f645729 commit a59162d

10 files changed

+28928
-20472
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"pretty-quick": "^3.1.0",
3333
"requirejs": "^2.3.6",
3434
"terser": "^5.6.0",
35-
"typescript": "^4.2.4"
35+
"typescript": "^4.3.2"
3636
},
3737
"husky": {
3838
"hooks": {

src/languageFeatures.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,9 @@ export class DiagnosticsAdapter extends Adapter {
370370
private _convertRelatedInformation(
371371
model: editor.ITextModel,
372372
relatedInformation?: DiagnosticRelatedInformation[]
373-
): editor.IRelatedInformation[] | undefined {
373+
): editor.IRelatedInformation[] {
374374
if (!relatedInformation) {
375-
return;
375+
return [];
376376
}
377377

378378
const result: editor.IRelatedInformation[] = [];
@@ -572,9 +572,9 @@ export class SuggestAdapter extends Adapter implements languages.CompletionItemP
572572
function tagToString(tag: ts.JSDocTagInfo): string {
573573
let tagLabel = `*@${tag.name}*`;
574574
if (tag.name === 'param' && tag.text) {
575-
const [paramName, ...rest] = tag.text.split(' ');
576-
tagLabel += `\`${paramName}\``;
577-
if (rest.length > 0) tagLabel += ` — ${rest.join(' ')}`;
575+
const [paramName, ...rest] = tag.text;
576+
tagLabel += `\`${paramName.text}\``;
577+
if (rest.length > 0) tagLabel += ` — ${rest.map(r => r.text).join(' ')}`;
578578
} else if (tag.text) {
579579
tagLabel += ` — ${tag.text}`;
580580
}

src/lib/lib.index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ libFileSet['lib.es2020.promise.d.ts'] = true;
5353
libFileSet['lib.es2020.sharedmemory.d.ts'] = true;
5454
libFileSet['lib.es2020.string.d.ts'] = true;
5555
libFileSet['lib.es2020.symbol.wellknown.d.ts'] = true;
56+
libFileSet['lib.es2021.d.ts'] = true;
57+
libFileSet['lib.es2021.full.d.ts'] = true;
58+
libFileSet['lib.es2021.promise.d.ts'] = true;
59+
libFileSet['lib.es2021.string.d.ts'] = true;
60+
libFileSet['lib.es2021.weakref.d.ts'] = true;
5661
libFileSet['lib.es5.d.ts'] = true;
5762
libFileSet['lib.es6.d.ts'] = true;
5863
libFileSet['lib.esnext.d.ts'] = true;

src/lib/lib.ts

Lines changed: 18 additions & 13 deletions
Large diffs are not rendered by default.

src/lib/typescriptServices-amd.js

Lines changed: 14189 additions & 10046 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)