mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +01:00
Merge pull request #75 from microsoft/4_3_dev
Adds support for TypeScript 4.3 builds
This commit is contained in:
commit
a59162dbd4
10 changed files with 28964 additions and 20508 deletions
6
package-lock.json
generated
6
package-lock.json
generated
|
|
@ -461,9 +461,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"version": "4.2.4",
|
"version": "4.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.4.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.2.tgz",
|
||||||
"integrity": "sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==",
|
"integrity": "sha512-zZ4hShnmnoVnAHpVHWpTcxdv7dWP60S2FsydQLV8V5PbS3FifjWFFRiHSWpDJahly88PRyV5teTSLoq4eG7mKw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"which": {
|
"which": {
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
"pretty-quick": "^3.1.0",
|
"pretty-quick": "^3.1.0",
|
||||||
"requirejs": "^2.3.6",
|
"requirejs": "^2.3.6",
|
||||||
"terser": "^5.6.0",
|
"terser": "^5.6.0",
|
||||||
"typescript": "^4.2.4"
|
"typescript": "^4.3.2"
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
|
|
|
||||||
|
|
@ -370,9 +370,9 @@ export class DiagnosticsAdapter extends Adapter {
|
||||||
private _convertRelatedInformation(
|
private _convertRelatedInformation(
|
||||||
model: editor.ITextModel,
|
model: editor.ITextModel,
|
||||||
relatedInformation?: DiagnosticRelatedInformation[]
|
relatedInformation?: DiagnosticRelatedInformation[]
|
||||||
): editor.IRelatedInformation[] | undefined {
|
): editor.IRelatedInformation[] {
|
||||||
if (!relatedInformation) {
|
if (!relatedInformation) {
|
||||||
return;
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
const result: editor.IRelatedInformation[] = [];
|
const result: editor.IRelatedInformation[] = [];
|
||||||
|
|
@ -572,9 +572,9 @@ export class SuggestAdapter extends Adapter implements languages.CompletionItemP
|
||||||
function tagToString(tag: ts.JSDocTagInfo): string {
|
function tagToString(tag: ts.JSDocTagInfo): string {
|
||||||
let tagLabel = `*@${tag.name}*`;
|
let tagLabel = `*@${tag.name}*`;
|
||||||
if (tag.name === 'param' && tag.text) {
|
if (tag.name === 'param' && tag.text) {
|
||||||
const [paramName, ...rest] = tag.text.split(' ');
|
const [paramName, ...rest] = tag.text;
|
||||||
tagLabel += `\`${paramName}\``;
|
tagLabel += `\`${paramName.text}\``;
|
||||||
if (rest.length > 0) tagLabel += ` — ${rest.join(' ')}`;
|
if (rest.length > 0) tagLabel += ` — ${rest.map(r => r.text).join(' ')}`;
|
||||||
} else if (tag.text) {
|
} else if (tag.text) {
|
||||||
tagLabel += ` — ${tag.text}`;
|
tagLabel += ` — ${tag.text}`;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,11 @@ libFileSet['lib.es2020.promise.d.ts'] = true;
|
||||||
libFileSet['lib.es2020.sharedmemory.d.ts'] = true;
|
libFileSet['lib.es2020.sharedmemory.d.ts'] = true;
|
||||||
libFileSet['lib.es2020.string.d.ts'] = true;
|
libFileSet['lib.es2020.string.d.ts'] = true;
|
||||||
libFileSet['lib.es2020.symbol.wellknown.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.es5.d.ts'] = true;
|
||||||
libFileSet['lib.es6.d.ts'] = true;
|
libFileSet['lib.es6.d.ts'] = true;
|
||||||
libFileSet['lib.esnext.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
873
src/lib/typescriptServices.d.ts
vendored
873
src/lib/typescriptServices.d.ts
vendored
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -2,4 +2,4 @@
|
||||||
// **NOTE**: Do not edit directly! This file is generated using `npm run import-typescript`
|
// **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";
|
||||||
|
|
|
||||||
|
|
@ -253,6 +253,7 @@ export class TypeScriptWorker implements ts.LanguageServiceHost, ITypeScriptWork
|
||||||
entry,
|
entry,
|
||||||
undefined,
|
undefined,
|
||||||
undefined,
|
undefined,
|
||||||
|
undefined,
|
||||||
undefined
|
undefined
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue