Commit graph

36 commits

Author SHA1 Message Date
Tyler James Leonhardt
3e4e351816
Enforce ILocalizedString usage with f1 property via types (#162991)
* Enforce ILocalizedString usage with f1 property via types

* complete comment

* Visit all symbols when encountering a union type

* use ILocalizedString

* fix tests

Co-authored-by: Alex Dima <alexdima@microsoft.com>
2022-10-11 21:24:43 -07:00
Alexandru Dima
a649d8f404
Explicitly enqueue files that only forward symbols (#156150)
Fixes #154083: Explicitly enqueue files that only forward symbols
2022-07-25 15:07:54 +02:00
Henning Dieterichs
5f21c372de
Make treeshaking work on windows (#155952) 2022-07-22 14:07:44 +02:00
Matt Bierner
2a84b0fb6d
Enable alwaysStrict for build scripts (#152778)
Turns on `alwaysStrict` and removes `'use strict';` from our `.ts` files
2022-06-21 19:00:43 +00:00
Johannes
0656d21d11
auto-fixed prefer-const violation 2022-06-08 17:49:21 +02:00
Matt Bierner
bc9de9e7eb
Pick up TS 4.7 for building VS Code (#145273)
Adds fixes for https://github.com/microsoft/TypeScript/issues/48276
2022-03-17 11:10:35 -07:00
Johannes Rieken
4a130c40ed
enable @typescript-eslint/member-delimiter-style, https://github.com/microsoft/vscode/issues/140391 2022-02-02 14:35:33 +01:00
Alex Dima
6851b106e0
Improve test checking for createDecorator or refineServiceDecorator 2022-01-11 17:41:07 +01:00
Alex Dima
bd8c42ac44
Fixes microsoft/monaco-editor#2842: Keep static members with initializers that might have side effects 2021-12-20 17:06:00 +01:00
Alexandru Dima
7d5de2d449
Fixes microsoft/monaco-editor#2822 2021-12-14 21:45:42 +01:00
João Moreno
0a7a69f190
fix build compilation 2021-05-26 13:30:43 +02:00
Benjamin Pasero
19f6f31036
💄 remove extra comment slashes 2021-03-29 11:31:53 +02:00
João Moreno
fc4b40b633
fix type casts 2021-01-04 15:54:59 +01:00
Alexandru Dima
c1eb24b027
Load expensive node modules lazily 2020-12-22 19:55:56 +01:00
Alex Dima
4578463f90
Do not tree shake interfaces or classes that extend or inherit from symbols defined in the default library 2020-05-08 14:41:03 +02:00
Johannes Rieken
fef9b12da1 fix tree shaker fyi @alexdima 2020-05-06 09:28:32 +02:00
Alex Dima
33f8b720d1
Fix tree shaking 2020-03-16 14:11:33 +01:00
Alex Dima
8192262a14
Add more support for exported imports in tree shaking 2020-03-05 18:25:28 +01:00
Alex Dima
39fed576a4
Better support for shorthand property assignment in the treeshaker 2020-03-05 15:58:37 +01:00
Alex Dima
68351085db
Fix treeshaking, not all export clauses should be kept 2020-03-05 10:25:06 +01:00
Johannes Rieken
4a9931ec4e treeshaker should keep [Symbol.iterator]-members because there are implict references from for-of loops 2020-03-03 11:56:12 +01:00
Johannes Rieken
27bc032975 nuke special lib options and use compiler option's lib instead 2020-03-02 13:44:22 +01:00
Alexandru Dima
b5ce6014d7
Improve output in case of errors and generate an analysis folder with the source content (for easy diffing) 2019-11-13 11:15:38 +01:00
Alexandru Dima
032925e74e
Improve error reporting during treeshaking 2019-11-13 11:15:36 +01:00
Alex Dima
135c473ddf Fixes #77454:
- do not cary over unnecessary "extends" in tsconfig.json
- keep members ending with `Brand`, but do it at the right phase
- remove shorthand literal usage which confuses tree-shaker
- add back noImplicitAny
2019-07-29 15:39:29 +02:00
Matt Bierner
f28c02195a Revert two bad loop conversions in build 2019-01-03 19:35:20 -08:00
Matt Bierner
b4964bcf35 Replace some common index based for loops with for-of loops
Replaces many loops of the form:

```js
for (let i = 0; i < elements.length; ++i) {
    const i = elements[i];
   ...
}
```

with:

```js
for (const element of elements) {
    ...
}
```

Mix of a horrible regex based find/replace and manual touch ups
2019-01-03 19:11:18 -08:00
Alex Dima
e4b1db51cc Fixes #65040 2018-12-17 15:43:09 +01:00
Alex Dima
6e465986a7 Fix editor publishing scripts (on Windows) 2018-11-13 15:31:28 +01:00
Matt Bierner
9375a38648 Fixing editor-distro compile error
Fixes #61741
2018-10-24 22:53:33 -07:00
Alex Dima
d729e50521 Fix standalone editor gulp scripts.
Tree Shaking:
- do not proceed with tree shaking when there are compilation errors
- load .d.ts files in the language service
- adopt TS 3.1.1 in symbol resolution
- use the real tsconfig.json / with "node" resolution

Bundling:
- fix issue where files were being looked for in out-build instead of out-editor-build
2018-10-10 11:09:29 +02:00
Matt Bierner
e8475ad59f Enable noUnusedParameters in build scripts 2018-10-03 17:26:47 -07:00
Matt Bierner
fe45a7d21f Fix remaining strict null errors in build scripts 2018-10-03 10:47:32 -07:00
Matt Bierner
ddc5eeee01 Fixing more strict null errors in build 2018-10-03 10:47:32 -07:00
Alex Dima
09ec2eb1e4 Use the new optimize-editor task 2018-07-20 11:26:32 +02:00
Alex Dima
03103a4f66 Add extract-editor-src with treeshaking task 2018-07-20 11:26:31 +02:00