Commit Graph

52 Commits

Author SHA1 Message Date
Matt Bierner
89e6741fdb Update monaco to target lib es2024
Follow up on #271145

This aligns monaco with our main tsconfig target. Tries adopting `findLastIndex` to verify
2026-02-03 11:11:15 -08:00
Matt Bierner
19731121a4 Bump gpu types and skip lib check for gpu typing issue 2025-11-10 10:50:18 -08:00
Matt Bierner
48884a0dc0 Use nodenext for module too 2025-10-12 22:59:31 -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
7ef8315e1d Use moduleResolution: classic 2025-10-06 17:45:45 -07:00
Matt Bierner
97b2c007cd Migrate fully of moduleResolution node10
Fixes #265420
2025-09-09 11:08:41 -07:00
Matt Bierner
ceaaba2eb0 Suppress moduleResolution error for now
Opened #265420 to track proper fix
2025-09-05 14:41:05 -07:00
Benjamin Pasero
2984f68510 debt - avoid any for timeout/interval (#249348) 2025-05-20 20:08:25 +02:00
Matt Bierner
ed04bd431f Merge branch 'main' into hidden-spider 2025-02-26 14:30:21 -08:00
Benjamin Pasero
c5b6ef14e6 esm - more cleanup (#230285) 2024-10-02 11:55:17 +02:00
Benjamin Pasero
1f7e13965c esm - remove require.d.ts (#230203) 2024-10-01 19:24:01 +02:00
Daniel Imms
a92d50eb18 Merge remote-tracking branch 'origin/main' into tyriar/gpu_exploration 2024-09-05 04:58:47 -07:00
Henning Dieterichs
0deacd4b60 Introduce editContext.d.ts and renames isInputElement to isEditableElement to consider elements with an edit context. (#227596)
* Introduce editContext.d.ts and renames isInputElement to isEditableElement to consider elements with an edit context.

* Fixes CI
2024-09-04 18:48:54 +02:00
Matt Bierner
0e63f138bb Merge branch 'main' into hidden-spider 2024-08-26 14:30:43 -07:00
Daniel Imms
d32b22bfc4 Make monaco compile aware of webgpu types 2024-08-22 08:43:40 -07:00
Alex Ross
977f832a30 Simple tree sitter based syntax highlighting for typescript (#225252)
* Simple tree sitter based syntax highlighting for typescript

Part of #210475

* Implement onceIf using filter

* Mix monaco

* Fix tests

* Switch back to classic

* PR feedback

* Fix bug causing test failure

* Update tree-sitter-wasm

* Fix monaco editor tree shaking

* Fix running monaco checks on Windows

* Use dummy tree sitter service in standalone

* PR feedback
2024-08-19 21:56:31 +02:00
Matt Bierner
f958aef2fa Add css.d.ts to monaco build 2024-08-08 09:49:56 -07:00
Johannes Rieken
80bdfeb895 chore - push workaround and a lint rule for https://github.com/evanw/esbuild/issues/3823 (#220077)
* chore - push workaround and a lint rule for https://github.com/evanw/esbuild/issues/3823

* modernize `tsconfig.monaco`
2024-07-05 11:29:48 -07:00
Benjamin Pasero
f6f90e0163 Implement NLS without AMD loader (#214588) 2024-06-28 11:55:48 +02:00
Remco Haszing
59787d6fe8 Increase the target of Monaco from es6 to es2018
A target of es6 is equivalent to es2015. A target of es2017 adds support
for async / await. A target of es2018 adds support for `for await...of`.

Increasing the target means these syntaxes are no longer down-leveled.
This increases readability and debuggability of the compiled code and
potentially performance.

All modern browsers support this. https://caniuse.com/?search=await
2023-09-02 17:21:34 +02:00
Henning Dieterichs
b95ec3ebe6 Fixes ts config 2023-08-16 17:24:11 +02:00
Henning Dieterichs
01029a44a2 Fixes monaco editor type check 2023-08-16 15:08:35 +02:00
meganrogge
8693dc991d more explicitly exclude 2023-08-15 15:15:51 -07:00
meganrogge
e98311981b add private update dev mode function 2023-08-15 15:11:35 -07:00
Johannes
380ac1ef48 have two files to declare globals, allow monaco-edt to see one of them 2022-11-18 09:42:05 +01:00
Raymond Zhao
9feaed8f51 Revert "joh/representative canidae" (#166641) 2022-11-17 13:53:17 -08:00
Johannes
a0f314404e have two files to declare globals, allow monaco-edt to see one of them 2022-11-17 16:10:52 +01:00
Logan Ramos
2d32e4041e Refactor telemetry appenders to reduce duplicated code (#152877)
* Reactor telemetry appenders to reduce duplicated code

* Update tsconfig

* Do not use Object.create(null) because we need object.hasOwnProperty
2022-06-22 18:25:00 -04:00
Logan Ramos
e8f28ac3ac Refactor location of web app insights appender (#152358)
* Refactor location of web app insights appender

* Play around with eslintrc

* Eslint json update

* Try and fix monaco editor check

* Remove extra trailing comma
2022-06-16 18:26:06 +00:00
Alexandru Dima
d132489cd0 Bring the css loader plugin into our sources (#152205) 2022-06-15 16:53:02 +02:00
Matt Bierner
116c10e0ee Add drop into editor option (#147049)
* Add drop into editor option

This change adds a new `enableDropIntoEditor` editor option that enables/disables dropping an extermal resources into an editor

Previously this option was exposed `IEditorConstructionOptions`, however this did not correctly disable drop into editor when dragging and dropping unknown types (such as dragging emoji from the MacOS emoji panel)

With this change, disabling `workbench.editor.dropIntoEditor.enabled` should fully disable the new drop into behavior

* Move drop into editor from workbench to editor

This moves the `dropIntoEditorContribution` from the workbench layer to the platform layer

As part of this change, I also add to move `extractEditorsDropData` up to `platform` so that it could be used from the `editor` layer

This change also enables drop into for the SCM message box

* Fixing monaco errors

* Revert id change
2022-05-17 11:35:04 -07:00
Benjamin Pasero
7b25ec7a6c no country for old standards 2022-02-09 08:44:38 +01:00
Logan Ramos
78ea034530 Initial assignment service work (#136238)
* Initial assignment service work

* Modify useragent for experiment

* minor refactor

* remove extraneous comment

Co-authored-by: SteVen Batten <sbatten@microsoft.com>
2021-11-01 15:35:12 -04:00
João Moreno
a09354329b exclude htmlfsp from monaco 2021-04-20 07:34:35 +02:00
Johannes Rieken
99f0021828 add trusted-types to monaco compile 2020-10-05 16:59:43 +02: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
Benjamin Pasero
f28dbf7cfc old tree - off with it's head 2020-03-26 14:06:25 +01:00
Benjamin Pasero
f6fba38e9a quick access - first cut old quick open removal 2020-03-26 11:20:26 +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
1da42812e8 remove custom d.ts-files, update tsconfig-files, fix new compile errors 2020-02-14 11:27:45 +01:00
Johannes Rieken
cd3c6f5475 fix monaco compile 2019-11-07 10:56:10 +01:00
Daniel Imms
96be6fd212 Make monaco includes consistent 2019-08-13 09:46:26 -07: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
aca1494c4e align monaco compiler settings 2019-04-12 10:15:11 +02:00
Alex Dima
02b8857896 Fix monaco compilation 2019-03-25 18:46:22 +01:00
Alex Dima
29a4c6da20 Exclude buffer.ts from the monaco compilation 2019-03-22 21:27:21 +01:00
Johannes Rieken
d9fb145891 expose Promise#finally to standalone editor, #67027 2019-01-24 08:02:30 -08:00
Matt Bierner
9375a38648 Fixing editor-distro compile error
Fixes #61741
2018-10-24 22:53:33 -07:00
Matt Bierner
45d48f350e Fixing monaco build errors related to require 2018-10-03 14:39:58 -07:00
Tony Collen
8ee4aba28b Switch all schemastore.org URLs to use SSL. (#40737)
References SchemaStore/schemastore#12
2018-01-02 11:36:21 -07:00