mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 18:32:56 +01:00
use es2015 by default
This commit is contained in:
parent
f5f4706596
commit
46a9f90baa
1 changed files with 11 additions and 11 deletions
|
|
@ -99,7 +99,7 @@ export class TypeScriptWorker implements ts.LanguageServiceHost {
|
||||||
|
|
||||||
getDefaultLibFileName(options: ts.CompilerOptions): string {
|
getDefaultLibFileName(options: ts.CompilerOptions): string {
|
||||||
// TODO@joh support lib.es7.d.ts
|
// TODO@joh support lib.es7.d.ts
|
||||||
return options.target > ts.ScriptTarget.ES5 ? DEFAULT_LIB.NAME : ES6_LIB.NAME;
|
return options.target <= ts.ScriptTarget.ES5 ? DEFAULT_LIB.NAME : ES6_LIB.NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
isDefaultLibFileName(fileName: string): boolean {
|
isDefaultLibFileName(fileName: string): boolean {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue