Matt Bierner
dd281f1d90
Remove allowSyntheticDefaultImports
2025-11-10 09:01:56 -08:00
Matt Bierner
4d9e43384f
Bump main build target to es2024
...
The es2024 library additions are now widely supported in node 22 and in modern browsers
2025-08-06 15:12:37 -07:00
Matt Bierner
ed04bd431f
Merge branch 'main' into hidden-spider
2025-02-26 14:30:21 -08:00
Jake Bailey
75db9eb509
Remove paths from tsconfig.base.json
2025-01-22 08:37:06 -08:00
Matt Bierner
a8954090a6
Use nodenext for module too
2025-01-15 13:14:22 -08:00
Matt Bierner
fca5600bbd
Switch to use nodenext module resolution
...
This better enforces that imports end with a file extension and also use relative paths
2024-12-19 12:03:31 -08:00
Benjamin Pasero
6b924c5152
ESM merge to main ( #227184 )
...
Co-authored-by: Johannes Rieken <jrieken@microsoft.com >
Co-authored-by: Alexandru Dima <alexdima@microsoft.com >
2024-08-30 10:31:46 +02:00
Matt Bierner
8baabefe85
Enable noUncheckedSideEffectImports
...
This catches errors such as:
```ts
import 'vs/editor/noSuchFile';
```
Previously these were unreported
2024-08-08 09:17:36 -07:00
Johannes
eeae481e47
set emit-target and libs to ES2022, avoid static-blocks, fix Error#cause conflict
...
https://github.com/microsoft/vscode/issues/185991
2023-06-30 11:43:19 +02:00
Johannes
a65356de2e
enable "ES2021.Promise", "ES2021.String", "ES2021.WeakRef" as lib-dependencies as our runtimes have caught up
2022-07-04 17:14:05 +02:00
Johannes Rieken
b27a33cc43
no modern JavaScript for us
2021-07-16 17:34:00 +02:00
Johannes Rieken
dd9162b48d
fix tsconfig libs
2021-07-15 14:03:47 +02:00
Matt Bierner
0762d23ae7
Build VS Code using TS 4.4 ( #127823 )
...
* Build VS Code using TS 4.4
* Remove usages of deprecated `ClientRectList`
* Add any casts for missing `caretRangeFromPoint`
* Add temporary any casts for `zoom` css propery
This non-standard css property no longer exists in lib.dom.d.ts
* MouseWheelEvent -> WheelEvent
* Pick up new TS nightly
Co-authored-by: Alexandru Dima <alexdima@microsoft.com >
2021-07-08 14:27:39 -07:00
Johannes Rieken
bba84610e6
Align lib-definition of tsconfig.base with supported browsers reality. The smalled common denominator between Chrome, Edge, and Safari is surpisingly large and except for Atomics/SharedMem everything up until es2021 is OK, https://github.com/microsoft/vscode/issues/121144
2021-06-25 14:17:50 +02:00
Johannes Rieken
242d93851a
add es2020.promise to compile options, https://github.com/microsoft/vscode/issues/126992
2021-06-23 16:42:09 +02:00
Matt Bierner
0ec29f0fcf
Pick up TS 4.4@next for building
...
- Disables the two new strictness options for now
- Adopt shared tsconfig for `microsoft-authentication `
2021-06-07 14:44:24 -07:00
Matt Bierner
66fd0cba91
Enable noImplicitOverride
...
Fix few remaining cases and enable by default
2021-04-22 15:57:54 -07:00
Benjamin Pasero
f922e8b757
debt - remove lib.array-ext.d.ts and support Array.includes ( fix #102566 ) ( #105404 )
2020-08-26 13:07:30 +02:00
mtaran-google
76bc88fd9d
Ban unreachable code. ( #104521 )
...
This changes unreachable code from a warning presented in the editor to an error. Existing issues mostly revolved around switching on enums. These were fixed by converting the switches to use a default case, leaving the behavior unchanged in case of new values (e.g. from separately-compiled extensions) creeping in.
Other cases had to do with the assert.fail() function, which throws and so shouldn't have anything following it.
Co-authored-by: Maksym Taran <maksym.taran@gmail.com >
2020-08-17 14:38:32 -07:00
Johannes Rieken
2a9408677e
esNext - add ES2017.String to supported libs since it is supported everywhere
2020-03-04 08:38:40 +01:00
Johannes Rieken
1bccecab0a
remove more files from typings for which we have lib.*.d.ts files
2020-03-02 14:36:25 +01:00
Johannes Rieken
58934d816a
Merge branch 'master' into joh/es6
2020-02-27 12:37:02 +01:00
Baibhav Vatsa
ddaa55ce50
Removes redundant flags from tsconfig ( #91050 )
2020-02-20 08:28:56 -08:00
Matt Bierner
2158e77627
Enable strict mode for VS Code core
...
Fixes #81574
2020-02-18 10:41:41 -08:00
Johannes Rieken
1da42812e8
remove custom d.ts-files, update tsconfig-files, fix new compile errors
2020-02-14 11:27:45 +01:00
Benjamin Pasero
9b620f43de
Enable strictPropertyInitialization ( fix #78168 )
2019-11-12 08:08:37 +01:00
Benjamin Pasero
d32c857d1b
tsconfig 💄
2019-08-30 17:56:56 +02:00
Johannes Rieken
b97d6db480
some tsconfig polish
2019-08-22 12:36:54 +02:00
Joao Moreno
cd6ed7bc78
fixed minimist reference & js typing
2019-08-09 09:54:25 +02:00
Matt Bierner
c228362571
Remove suppressImplicitAnyIndexErrors
...
Fixes #76442
2019-07-10 14:47:56 -07:00
Benjamin Pasero
f3f8c576f9
enable forceConsistentCasingInFileNames
2019-03-25 11:06:19 +01:00
Matt Bierner
bb84f439b7
Enable no implicit any
...
Fixes #70352
2019-03-22 10:01:21 -07:00
Matt Bierner
7d0e64f5ec
Strict null check VS Code
...
Fixes #60565
Fixes #70417
2019-03-19 10:51:31 -07:00
Matt Bierner
e2cf8ebc5d
Enable strictBindCallApply for VS Code
...
Fixes #64633
2018-12-07 14:25:14 -08:00
Matt Bierner
242c63854d
Remove include and exclude from base tsconfig
...
These properties are not inherited
2018-10-10 15:02:20 -07:00
Matt Bierner
104275cb9f
Add tsconfig.strictNullChecks.json
...
Part of #60565
Adds a new `tsconfig.strictNullChecks.json` project that does not emit anything and is only used for enabling strict null checks on a subset of the vscode codebase.
Opt `iterator.ts` into strict null checking.
Fix our build scripts to properly handle `extends`
2018-10-10 14:55:06 -07:00