Commit graph

123 commits

Author SHA1 Message Date
Henning Dieterichs ebe458556d
Don't mangle fields for the monaco editor, FYI @jrieken (#177223) 2023-03-15 14:46:23 +01:00
Connor Peet 18f743d534
address pr comments 2022-10-05 12:56:07 -07:00
Benjamin Pasero 9db57e76e9
Build: bundle / concat entry points (#161161)
* perf - concatenate windows main files

* Revert "Revert "Use `esbuild` to bundle some CommonJS main files (#160957)" (#161118)"

This reverts commit 84c46b71a5.

* build - exclude server main files

* build - make concat a task that runs like the others

* some renames

* Avoid overwriting the nodejs closure require

* Revert "build - exclude server main files"

This reverts commit 736516624e.

Co-authored-by: Alex Dima <alexdima@microsoft.com>
2022-09-21 00:38:44 -07:00
Benjamin Pasero 84c46b71a5
Revert "Use esbuild to bundle some CommonJS main files (#160957)" (#161118)
This reverts commit 2179e52fb9.
2022-09-16 09:31:44 -07:00
Benjamin Pasero 2179e52fb9
Use esbuild to bundle some CommonJS main files (#160957)
* ensure node.js `require` is captured

* optimize `main.js` and `cli.js`

* cleanup

* leave out bundled files

* drop package.json from userdata paths

* fix web task

* fix editor distro

* inline version into `product.json`

* also bundle server

* t

* actually do server too

* Keep bundling nls in editor worker

Co-authored-by: Alex Dima <alexdima@microsoft.com>
2022-09-16 05:24:23 -07:00
Johannes 214e276bd5
have compilation#transpileTask as a separate place for tweaks 2022-06-23 17:32:20 +02:00
Tyler James Leonhardt bce2e61e04
Allow nls in the base worker (#152887)
* Add localize call to platform

* Allow to use nls in the base worker

Co-authored-by: Alex Dima <alexdima@microsoft.com>
2022-06-22 12:30:09 -07:00
Alexandru Dima 252c65540d
Adopt the same export patterns in vs/css as in vs/nls and bring over tests (#152396)
* Adopt the same export patterns in `vs/css` as in `vs/nls` and bring over tests

* Fix problem with loading nodejs modules
2022-06-17 17:12:27 +02: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 Rieken 9e21aff42e
joh/ts transpile (#152199)
transpile-only tasks for client and extensions

* extract transpile into its own file
* add transpile-client task, polish transpiler
* add transpile-extensions, improve transpile logic
* move declaration of "const enum" above it usage so that it can be used with const-enum-inlining
* (ugly) make d.ts transpilation configurable because it is needed for extensions but a problem for client
* hack my way around so that `getOwnEmitOutputFilePath` is reusable by our transpile
* honor `noEmit` flag
2022-06-15 16:52:48 +02:00
Alexandru Dima 5e7d488b7c
Improve error message when a module cannot be bundled and exclude vs/nls from bundles (#152188) 2022-06-15 12:51:27 +00:00
Johannes 0656d21d11
auto-fixed prefer-const violation 2022-06-08 17:49:21 +02:00
Matt Bierner f71bd27ec9
Adding type annotations 2022-02-28 14:32:12 -08:00
Alex Dima bd369c638e
Add check that the editor's ESM JS files can be loaded in a browser 2022-01-25 15:19:30 +01:00
Alex Dima 3860b772e4
Revert "Simplify external .d.ts"
This reverts commit 65b10df98f.

See https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require
2021-10-08 16:58:02 +02:00
Alex Dima 65b10df98f
Simplify external .d.ts 2021-10-08 08:51:26 +02:00
Alex Dima 96353e2bcf
Fix typo 2021-09-28 14:14:06 +02:00
Alex Dima 8d3ce8d7f5
Fix the transformation to an external module .d.ts 2021-09-21 17:20:30 +02:00
João Moreno 980becda8d main rename
fixes #116341
2021-02-14 20:10:24 +01:00
Alexandru Dima c1eb24b027
Load expensive node modules lazily 2020-12-22 19:55:56 +01:00
Martin Aeschlimann 542a82754c yarn watch: save errors in separate files, make error regex multiline aware 2020-11-20 14:06:42 +01:00
Alex Dima dd6bd3ae6a
Reduce the number of folders where we use TS 2020-09-24 17:39:48 +02:00
ChaseKnowlden e8760a5d6c Fix capitalization of GitHub org 2020-09-17 11:43:03 +02: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
Martin Aeschlimann ec02bcd1cc codicon definitions in browser/ui/codicon/codicon 2020-04-17 13:39:54 +02:00
Matt Bierner 273a4a389d
Convert most ts-ignore-calls to ts-expect-error (#93617)
Changes over to use ts-expect-error: https://devblogs.microsoft.com/typescript/announcing-typescript-3-9-beta/#ts-expect-error-comments

This revealed a number of places where we no longer need to supress errors
2020-03-30 17:31:37 -07:00
Alex Dima ee64b77af9
Reduce noise in diff and use files with the same absolute imports when troubleshooting treeshaking 2020-03-05 10:25:06 +01:00
Alex Dima 58bdc8aecb
Improve troubleshooting treeshaking failures 2020-03-05 10:25:06 +01:00
Johannes Rieken 02f23e5680 remove polyfill promise 2020-03-02 15:30:43 +01:00
Johannes Rieken 27bc032975 nuke special lib options and use compiler option's lib instead 2020-03-02 13:44:22 +01:00
Johannes Rieken 8fac4133c5 adopt inline compile config for editor src task 2020-03-02 12:51:32 +01:00
Alex Dima 4d92b1d1f8
Fix minor issues 2020-02-22 16:02:23 +01:00
Alex Dima 4f21fd58a8
Move gulp specific code to gulpfile.editor.js 2020-02-22 15:01:58 +01:00
Alex Dima f81397f451
Merge remote-tracking branch 'origin/master' into monaco/ci 2020-02-22 00:45:38 +01:00
Alex Dima 65fee79198
Add types for MonacoEnvironment (microsoft/monaco-editor#1795) 2020-02-04 18:39:04 +01:00
Alexandru Dima b4a79d682a
Add getters for computed editor options (Fixes microsoft/monaco-editor#1734) 2020-01-14 16:31:16 +01:00
Alexandru Dima f3f7bc580a
Fixes microsoft/monaco-editor#1729: Fix running the build on Windows (files with \r\n) 2020-01-06 10:07:58 +01:00
Johannes Rieken 2141437fdc fix eslint issues in build/gulpfile.* 2020-01-02 20:35:07 +01:00
Miguel Solorio 82ed3d45ee Revert "Merge pull request #87320 from microsoft/misolori/codicon-consolidation"
This reverts commit 6c9b23edc4, reversing
changes made to 085abd5f1a.
2019-12-19 13:44:49 -08:00
Miguel Solorio 641543b6ee Consolidate codicon files to vs/base/parts/codicon 2019-12-18 22:30:07 -08:00
Alexandru Dima 8d3200b7a7
Merge branch 'master' into monaco/ci 2019-11-13 11:16:07 +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 f6b6a97807
Take typings from tsconfig.monaco.json 2019-11-13 11:15:36 +01:00
Peng Lyu d9fb87d002 CI for Monaco Editor compile and bundling. 2019-11-12 15:55:21 -08:00
Peng Lyu 1101eb829d Fix monaco editor build npe. 2019-11-04 15:01:08 -08:00
Miguel Solorio 26f879145d Remove codiconLabel.mock 2019-10-17 12:22:28 -07:00
Miguel Solorio 1f9045f47c Replace Octicons with Codicons 2019-10-14 19:15:35 -07:00
Alex Dima fe5315badc
Ship codicon with the standalone editor 2019-09-23 13:18:39 +02:00
Miguel Solorio 0fa53a6e66 Update refs to include codicon 2019-09-17 09:05:42 -07:00