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

Adds support for TypeScript 4.3 builds #75

Merged
merged 5 commits into from
Jun 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
10 changes: 5 additions & 5 deletions src/languageFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [];
Expand Down Expand Up @@ -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}`;
}
Expand Down
5 changes: 5 additions & 0 deletions src/lib/lib.index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
31 changes: 18 additions & 13 deletions src/lib/lib.ts

Large diffs are not rendered by default.

24,235 changes: 14,189 additions & 10,046 deletions src/lib/typescriptServices-amd.js

Large diffs are not rendered by default.

Loading