Commit Graph

45 Commits

Author SHA1 Message Date
Matt Bierner
2648263d3e Run our build scripts directly as typescript (#277567)
* Run our build scripts directly as typescript #277567

Follow up on #276864
For #277526

* Remove a few more ts-node references

* Fix linux and script reference

* Remove `_build-script` ref

* Fix script missing closing quote

* use type only import

* Fix export

* Make sure to run copy-policy-dto

* Make sure we run the copy-policy-dto script

* Enable `verbatimModuleSyntax`

* Pipelines fixes

* Try adding explicit ext to path

* Fix bad edit

* Revert extra `--`

---------

Co-authored-by: João Moreno <joaomoreno@users.noreply.github.com>
2025-11-21 14:56:00 +01:00
Henning Dieterichs
095502f491 Merges standalone and workbench editor worker service. (#276499)
Merges standalone and workbench editor worker service.
2025-11-10 16:43:38 +00:00
Matt Bierner
cc51a6897a Fix lint error 2025-10-12 23:54:53 -07:00
Matt Bierner
6c42761e58 Copy out marked and dompurify too 2025-10-12 23:46:42 -07:00
Matt Bierner
51d83e06c3 Fix compile 2025-10-12 22:21:14 -07:00
Matt Bierner
1eee7ae230 Switch monaco to off of moduleResolution: classic
Fixes #270408

Trying to move some of the monaco related checks/tconfigs off of `moduleResolution: classic`. This legacy config is causing a lot of pain while trying to update the trusted-types typings, which is itself blocking picking up the latest dompurify

I initially tried a more scoped change but just could not get it working. So instead I ended up trying to rework our `LanguageServiceHost` to be more standard
2025-10-10 16:02:03 -07:00
Matt Bierner
b0f6eb2835 Pick up more editor compile settings from tsconfig.monaco
Right now for editor builds,  we have the `target` defined in `tsconfig.monaco` and overrides in `standalone.js`. This second one is really easy to miss

I think all of target/environment settings should be taking from the normal `tsconfig.monaco.json` instead
2025-10-06 17:38:43 -07:00
Matt Bierner
443a1af101 Make sure css typings are also used for editor build 2025-03-28 16:07:58 -07:00
Alex Dima
91f0cb7b90 Add nls info to monaco-editor-core and remove left-over AMD tasks 2025-03-20 14:53:50 +01:00
Aman Karmani
e76c50f20e build: switch build/tsconfig.json to module: nodenext (#238426)
* build/tsconfig: switch to module: nodenext for bun compat

* build: rewrite imports for nodenext compat

* build: re-generate
2025-01-22 20:12:39 +01:00
Benjamin Pasero
c5b6ef14e6 esm - more cleanup (#230285) 2024-10-02 11:55:17 +02:00
Benjamin Pasero
3b68a06818 esm - removal of CSS loader (#230206) 2024-10-01 19:24:18 +02:00
Daniel Imms
32ba9d0576 Handle @webgpu/types in standalone script 2024-09-09 08:48:31 -07:00
Benjamin Pasero
eed219db5f ESM: figure out the monaco-standalone ESM build story (fix #227192) (#227536) 2024-09-06 18:26:40 +02:00
Benjamin Pasero
fdc8d882e2 esm - backport worker related changes (#225672) 2024-08-15 13:46:45 +02:00
Benjamin Pasero
2014f1ddb2 nls - removal of loader plugin (#219098) 2024-06-28 15:45:52 +02:00
Alexandru Dima
72a982d0d3 Fix typo in regex (#163404) 2022-10-12 00:08:09 -07:00
Alexandru Dima
9db5a3674e Bring the nls loader plugin into our sources (#152338) 2022-06-16 22:01:19 +02:00
Alexandru Dima
d132489cd0 Bring the css loader plugin into our sources (#152205) 2022-06-15 16:53:02 +02:00
Johannes
0656d21d11 auto-fixed prefer-const violation 2022-06-08 17:49:21 +02: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
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
Johannes Rieken
bb383f2875 support "@types" in treeshaker 2020-10-06 10:12:47 +02:00
ChaseKnowlden
e8760a5d6c Fix capitalization of GitHub org 2020-09-17 11:43:03 +02: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
f6b6a97807 Take typings from tsconfig.monaco.json 2019-11-13 11:15:36 +01:00
Alex Dima
fe5315badc Ship codicon with the standalone editor 2019-09-23 13:18:39 +02: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
Sandeep Somavarapu
664dacc8b2 move connection auth token out of web configuration 2019-06-19 12:30:16 +02:00
Sandeep Somavarapu
021839444b take web related changes 2019-06-19 11:55:53 +02:00
Peng Lyu
b72fba1a56 Fix Monaco compilation (#73243)
* Fix Monaco tsconfig parsing failure and Monaco compilation.
2019-05-03 10:59:50 -07:00
Johannes Rieken
815063890b fix monaco build 2019-02-08 15:20:00 +01: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
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
8ecebfb761 var -> let 2018-10-04 19:01:34 -07:00
Matt Bierner
5de9c9bf8b Compile build in strict mode 2018-10-03 17:26:47 -07:00
Alex Dima
3c7b9a8c55 Create the ESM distribution from the tree shaken sources 2018-08-12 15:46:32 +02:00
Alex Dima
d8e13dc717 Add a compile-editor-build task 2018-07-20 11:26:31 +02:00
Alex Dima
03103a4f66 Add extract-editor-src with treeshaking task 2018-07-20 11:26:31 +02:00
Alex Dima
d0eaa02c0a Better support for ESM workers 2018-03-15 14:44:36 +01:00
Alex Dima
66091601a5 Ship editor in ESM format 2018-03-15 14:44:15 +01:00