Compare commits

..

3357 commits

Author SHA1 Message Date
Henning Dieterichs
ec78a33c7b
fixes browser tests (#5150) 2025-12-17 16:53:10 +01:00
Henning Dieterichs
165cfcb101
Build scripts dont need to be compiled anymore (#5149) 2025-12-17 11:21:11 +00:00
Henning Dieterichs
09eede5b26
Logs the sha of dependencies (#5146) 2025-12-16 17:52:03 +01:00
Henning Dieterichs
7649edb383
Updates node to 22.21.1 (#5147) 2025-12-16 17:51:51 +01:00
dependabot[bot]
b8fa85f6c8
Bump node-forge from 1.3.1 to 1.3.2 in /website (#5130)
Bumps [node-forge](https://github.com/digitalbazaar/forge) from 1.3.1 to 1.3.2.
- [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md)
- [Commits](https://github.com/digitalbazaar/forge/compare/v1.3.1...v1.3.2)

---
updated-dependencies:
- dependency-name: node-forge
  dependency-version: 1.3.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-12 09:45:18 -08:00
dependabot[bot]
ebe111d469
Bump node-forge from 1.3.1 to 1.3.3 in /samples (#5138)
Bumps [node-forge](https://github.com/digitalbazaar/forge) from 1.3.1 to 1.3.3.
- [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md)
- [Commits](https://github.com/digitalbazaar/forge/compare/v1.3.1...v1.3.3)

---
updated-dependencies:
- dependency-name: node-forge
  dependency-version: 1.3.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-12 09:44:17 -08:00
Michael Lively
02a9562005
Merge pull request #5143 from microsoft/milively/add-commands-json
Add commands.json for triage bot automation
2025-12-11 16:06:53 -08:00
Michael Lively
94a5762a32 Add commands.json for triage bot automation 2025-12-11 15:55:06 -08:00
Hawk Ticehurst
c619ef9a3d
Merge pull request #5136 from microsoft/hawk/a11y-bug-fix 2025-12-05 14:03:42 -05:00
Hawk Ticehurst
bf4931bb98
Fix a11y color contrast bug with sample 2025-12-05 11:03:04 -05:00
Henning Dieterichs
516f350bda
Fixes missing language exports (#5121) 2025-11-20 09:44:34 -08:00
Henning Dieterichs
9221aa0ef8
v0.55.1 (#5122)
* v0.55.1

* Updates changelog
2025-11-20 09:44:18 -08:00
Henning Dieterichs
d678c1d32d
Merge pull request #5120 from microsoft/hediet/enormous-herring
Fixes npx playwright install --with-deps
2025-11-20 11:04:15 +01:00
Henning Dieterichs
f047a08481
Fixes npx playwright install --with-deps 2025-11-20 10:56:16 +01:00
Henning Dieterichs
220c1cab84
Fixes https://github.com/microsoft/monaco-editor/issues/5113 (#5118) 2025-11-19 18:24:48 +00:00
Henning Dieterichs
1b175c701c
v0.55.0 (#5117) 2025-11-19 19:08:30 +01:00
Henning Dieterichs
574b846ad2
Install playwright dependencies in monaco-editor-core job (#5116) 2025-11-18 10:02:22 -08:00
Henning Dieterichs
5486e82ffa
update (#5105) 2025-11-07 18:34:10 +00:00
Henning Dieterichs
e70b6618f4
fixes website & adds editor.api.d.ts (#5104) 2025-11-07 17:47:33 +00:00
Henning Dieterichs
36efbe07d9
Fixes typedoc & updates pipelines to test website (#5102)
* Fixes typedoc & updates pipelines to test website

* Fixes typedoc

* Fixes samples
2025-11-07 16:57:18 +00:00
Henning Dieterichs
422d19e3d6
Updates website dependencies (#5100) 2025-11-07 09:40:12 -05:00
Henning Dieterichs
3ebf03ad14
Merge pull request #5071 from microsoft/dependabot/npm_and_yarn/samples/browser-esm-vite-react/vite-5.4.21
Bump vite from 5.4.20 to 5.4.21 in /samples/browser-esm-vite-react
2025-11-07 15:22:39 +01:00
Henning Dieterichs
2baf3291e9
Merge pull request #4961 from microsoft/dependabot/npm_and_yarn/samples/multi-96c788614a
Bump on-headers and compression in /samples
2025-11-07 15:22:31 +01:00
Henning Dieterichs
f42be23bf6
Merge pull request #5040 from microsoft/dependabot/npm_and_yarn/website/babel/runtime-7.28.4
Bump @babel/runtime from 7.18.9 to 7.28.4 in /website
2025-11-07 15:22:19 +01:00
Henning Dieterichs
ecd2990fb9
Merge pull request #5095 from microsoft/dependabot/npm_and_yarn/samples/browser-esm-vite/vite-7.1.11
Bump vite from 7.1.9 to 7.1.11 in /samples/browser-esm-vite
2025-11-07 15:22:10 +01:00
Henning Dieterichs
d84acb4d8f
Cleans up build scripts (#5097)
* Cleans up build scripts

* Adds back removeDir
2025-11-07 13:10:14 +01:00
Henning Dieterichs
abae948dc3
Dont build the editor when building the website (#5098) 2025-11-07 13:09:48 +01:00
Henning Dieterichs
925720b094
Run tests (#5099) 2025-11-07 13:09:19 +01:00
dependabot[bot]
e7c9226d78
Bump vite from 7.1.9 to 7.1.11 in /samples/browser-esm-vite
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.1.9 to 7.1.11.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.1.11/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.1.11
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-07 10:21:02 +00:00
Henning Dieterichs
d38215cf6b
Adds vite esm example (#5094) 2025-11-07 10:19:47 +00:00
Henning Dieterichs
b62a81677f
Adds playground support for esmUrl (#5093) 2025-11-07 10:17:25 +00:00
Henning Dieterichs
81b06fd717
Updates changelog (#5092) 2025-11-07 10:16:41 +00:00
Henning Dieterichs
d89eb54d17
Fixes https://github.com/microsoft/monaco-editor/issues/4997 (#5090) 2025-11-06 09:08:36 -08:00
Henning Dieterichs
b3250fa2b9
Adds missing NLS files (#5089) 2025-11-06 17:30:39 +01:00
Henning Dieterichs
9c7b547a98
Dont use .js for typescript imports, as rollup adds them to the output (#5088) 2025-11-06 17:30:17 +01:00
dependabot[bot]
ca5dfa5092
Bump vite from 5.4.20 to 5.4.21 in /samples/browser-esm-vite-react
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.20 to 5.4.21.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.21/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.21/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 5.4.21
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-21 14:30:55 +00:00
Henning Dieterichs
e8e70b3154
Merge pull request #5070 from microsoft/dependabot/npm_and_yarn/vite-7.1.11
Bump vite from 7.1.5 to 7.1.11
2025-10-21 16:29:26 +02:00
dependabot[bot]
a2b9eb07f2
Bump vite from 7.1.5 to 7.1.11
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.1.5 to 7.1.11.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.1.11/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.1.11
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-20 22:56:11 +00:00
Henning Dieterichs
c0063aedfa
Merge pull request #5069 from microsoft/dependabot/npm_and_yarn/multi-a50d7f32cf
Bump playwright and @playwright/test
2025-10-20 21:43:09 +02:00
dependabot[bot]
c8b3ac9087
Bump playwright and @playwright/test
Bumps [playwright](https://github.com/microsoft/playwright) to 1.56.1 and updates ancestor dependency [@playwright/test](https://github.com/microsoft/playwright). These dependencies need to be updated together.


Updates `playwright` from 1.54.2 to 1.56.1
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.54.2...v1.56.1)

Updates `@playwright/test` from 1.54.2 to 1.56.1
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.54.2...v1.56.1)

---
updated-dependencies:
- dependency-name: playwright
  dependency-version: 1.56.1
  dependency-type: indirect
- dependency-name: "@playwright/test"
  dependency-version: 1.56.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-20 19:08:04 +00:00
Henning Dieterichs
7102eff209
Add monaco-editor-core dependencies to monaco-editor after updating monaco-editor-core. (#5058) 2025-10-16 03:13:12 -07:00
dependabot[bot]
473bc634aa
Bump @babel/runtime from 7.18.9 to 7.28.4 in /website
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime) from 7.18.9 to 7.28.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.28.4/packages/babel-runtime)

---
updated-dependencies:
- dependency-name: "@babel/runtime"
  dependency-version: 7.28.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-15 15:17:56 +00:00
Henning Dieterichs
3b30c6efb1
Merge pull request #5053 from microsoft/dependabot/npm_and_yarn/website/loader-utils-2.0.4
Bump loader-utils from 2.0.2 to 2.0.4 in /website
2025-10-15 17:16:23 +02:00
Henning Dieterichs
96665ee0e3
Merge pull request #5055 from microsoft/dependabot/npm_and_yarn/website/multi-8d9d650fb2
Bump postcss and css-loader in /website
2025-10-15 17:16:08 +02:00
Henning Dieterichs
93c8b62ea6
Merge pull request #5054 from microsoft/dependabot/npm_and_yarn/website/json5-2.2.3
Bump json5 from 2.2.1 to 2.2.3 in /website
2025-10-15 17:15:53 +02:00
Henning Dieterichs
3a25d8ef40
Merge pull request #4973 from flofriday/fix-kotlin-number-literals
Fix Kotlin number literals
2025-10-15 12:21:30 +02:00
dependabot[bot]
649d4c35e5
Bump postcss and css-loader in /website
Bumps [postcss](https://github.com/postcss/postcss) to 8.5.6 and updates ancestor dependency [css-loader](https://github.com/webpack-contrib/css-loader). These dependencies need to be updated together.


Updates `postcss` from 7.0.39 to 8.5.6
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.39...8.5.6)

Updates `css-loader` from 3.6.0 to 7.1.2
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack/css-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v3.6.0...v7.1.2)

---
updated-dependencies:
- dependency-name: postcss
  dependency-version: 8.5.6
  dependency-type: indirect
- dependency-name: css-loader
  dependency-version: 7.1.2
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-15 09:51:57 +00:00
dependabot[bot]
32f1053239
Bump json5 from 2.2.1 to 2.2.3 in /website
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-version: 2.2.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-15 09:51:54 +00:00
dependabot[bot]
268d8ce6a7
Bump loader-utils from 2.0.2 to 2.0.4 in /website
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 to 2.0.4.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.2...v2.0.4)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-version: 2.0.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-15 09:51:53 +00:00
Henning Dieterichs
1889c7e7dd
Merge pull request #4991 from microsoft/dependabot/npm_and_yarn/samples/browser-esm-vite-react/vite-5.4.20
Bump vite from 2.9.17 to 5.4.20 in /samples/browser-esm-vite-react
2025-10-15 11:51:04 +02:00
Henning Dieterichs
d3a3c45f48
Merge pull request #5039 from microsoft/dependabot/npm_and_yarn/website/webpack-5.102.1
Bump webpack from 5.90.1 to 5.102.1 in /website
2025-10-15 11:50:47 +02:00
Henning Dieterichs
04e09e38ce
Merge pull request #5037 from microsoft/dependabot/npm_and_yarn/website/multi-4df209198f
Bump ws in /website
2025-10-15 11:50:38 +02:00
Henning Dieterichs
d3649a2a6b
Fixes #5010 (#5051) 2025-10-13 16:50:46 +00:00
Henning Dieterichs
708c529972
Updates typescript to 5.9.3 (#5050)
Fixes https://github.com/microsoft/monaco-editor/issues/5046
Closes https://github.com/microsoft/monaco-editor/pull/5045
2025-10-13 16:49:21 +00:00
flofriday
ca96114e39 Fix Kotlin number literals 2025-10-13 18:40:50 +02:00
Henning Dieterichs
5a7e917587
Uses rollup for ESM build and d.ts bundling. (#5048)
* Uses rollup for ESM build and d.ts bundling.
Moves monaco.languages.{typescript, json, html, css} to monaco.*.
Moves monaco.editor.createWebWorker to monaco.createWebWorker.

* Adds excluded files from dist, as they needed to be patched.
2025-10-13 18:05:43 +02:00
Henning Dieterichs
0fd6f29a23
First iteration of monaco editor lsp client (#5044) 2025-10-10 12:18:12 +02:00
Henning Dieterichs
a59f6c8a72
uses rollup to bundle monaco-editor's monaco.d.ts (#5033)
* uses rollup to bundle monaco-editor's monaco.d.ts

* Adds missing await
2025-10-09 21:26:17 +02:00
Henning Dieterichs
298ad9e43d
Merge pull request #5042 from microsoft/hediet/b/fascinating-skunk
uses ts instead of js
2025-10-09 20:14:41 +02:00
dependabot[bot]
892ca6497e
Bump ws in /website
Bumps  and [ws](https://github.com/websockets/ws). These dependencies needed to be updated together.

Updates `ws` from 7.5.9 to 7.5.10
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.9...7.5.10)

Updates `ws` from 8.8.1 to 8.18.3
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.9...7.5.10)

---
updated-dependencies:
- dependency-name: ws
  dependency-version: 7.5.10
  dependency-type: indirect
- dependency-name: ws
  dependency-version: 8.18.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-09 17:42:37 +00:00
dependabot[bot]
56b58b5674
Bump webpack from 5.90.1 to 5.102.1 in /website
Bumps [webpack](https://github.com/webpack/webpack) from 5.90.1 to 5.102.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.90.1...v5.102.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-version: 5.102.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-09 17:42:34 +00:00
dependabot[bot]
52ceb953bf
Bump brace-expansion in /website (#5041)
Bumps  and [brace-expansion](https://github.com/juliangruber/brace-expansion). These dependencies needed to be updated together.

Updates `brace-expansion` from 2.0.1 to 2.0.2
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v2.0.1...v2.0.2)

Updates `brace-expansion` from 1.1.11 to 1.1.12
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v2.0.1...v2.0.2)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 2.0.2
  dependency-type: indirect
- dependency-name: brace-expansion
  dependency-version: 1.1.12
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-09 10:40:58 -07:00
Henning Dieterichs
a30f4f9920
Uses npm for website, hosts playground runner on https://isolated-playground.github.io for better isolation. (#5034) 2025-10-09 10:05:34 -07:00
Henning Dieterichs
e2764eac56
Turns on formatOnSave (#5036) 2025-10-09 09:37:21 -07:00
Henning Dieterichs
f5e7e16b8f
Removes filler (#5035)
* Removes filler

* Removes more fillers
2025-10-09 16:00:08 +00:00
Henning Dieterichs
558def6f54 uses ts instead of js 2025-10-09 17:53:26 +02:00
Henning Dieterichs
b16daf88e2
Inlines AMD = false (#5031) 2025-10-09 08:06:06 +09:00
dependabot[bot]
6194383804
Bump vite from 2.9.17 to 5.4.20 in /samples/browser-esm-vite-react
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.9.17 to 5.4.20.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.20/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.20/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 5.4.20
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-08 21:55:52 +00:00
Henning Dieterichs
953f4ecc85 Fix all monaco-editor-core imports 2025-10-08 23:54:16 +02:00
Henning Dieterichs
e979ae38e3 Adds single package-for-smoketest step 2025-10-08 23:54:16 +02:00
Henning Dieterichs
3b2be8eda6 adds back mocha 2025-10-08 23:54:16 +02:00
Henning Dieterichs
c998a7c80f Uses playwright 2025-10-08 23:54:16 +02:00
Henning Dieterichs
699cae24be Removes unneeded filler redirection 2025-10-08 23:54:16 +02:00
Henning Dieterichs
7c2310116c
v0.54.0 (#5027) 2025-10-06 11:13:57 +02:00
Henning Dieterichs
9242cdfd03
updates monaco-editor-core (#5019) 2025-09-26 14:12:32 +02:00
Henning Dieterichs
05d44d8422
adds .js file extensions for esm build (#5018) 2025-09-26 10:37:15 +00:00
Henning Dieterichs
2e93787361
Marks trusted-types as dev-dependency. (#5012) 2025-09-23 10:13:26 +08:00
Henning Dieterichs
1b33d5dced
Fixes microsoft logo. Closes https://github.com/microsoft/monaco-editor/pull/4974 (#4996) 2025-09-11 11:40:06 -04:00
Henning Dieterichs
52d68ac7c4
Fixes https://github.com/microsoft/monaco-editor/issues/4906 (#4994) 2025-09-11 11:39:10 -04:00
Henning Dieterichs
52ad0e5320
Removes unneeded mirror. (#4995) 2025-09-11 15:33:28 +00:00
dependabot[bot]
cdc4da5d91
Bump on-headers and compression in /samples
Bumps [on-headers](https://github.com/jshttp/on-headers) and [compression](https://github.com/expressjs/compression). These dependencies needed to be updated together.

Updates `on-headers` from 1.0.2 to 1.1.0
- [Release notes](https://github.com/jshttp/on-headers/releases)
- [Changelog](https://github.com/jshttp/on-headers/blob/master/HISTORY.md)
- [Commits](https://github.com/jshttp/on-headers/compare/v1.0.2...v1.1.0)

Updates `compression` from 1.7.4 to 1.8.1
- [Release notes](https://github.com/expressjs/compression/releases)
- [Changelog](https://github.com/expressjs/compression/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/compression/compare/1.7.4...v1.8.1)

---
updated-dependencies:
- dependency-name: on-headers
  dependency-version: 1.1.0
  dependency-type: indirect
- dependency-name: compression
  dependency-version: 1.8.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-11 13:56:14 +00:00
Henning Dieterichs
2a3d33900c Fixes https://github.com/microsoft/monaco-editor/issues/4992 2025-09-11 15:54:37 +02:00
Henning Dieterichs
7795b8c5c7 Fixes bug in min build by upgrading vite 2025-09-11 15:54:37 +02:00
Henning Dieterichs
c5e6b52034
out/languages is no longer available (#4989) 2025-09-10 12:46:26 +02:00
Henning Dieterichs
cf7739b752
Fixes https://github.com/microsoft/monaco-editor/issues/4981 (#4988) 2025-09-09 08:52:56 -07:00
Henning Dieterichs
f17ccd3d70
Merge pull request #4983 from microsoft/hediet/manual-mite
uses default mirror
2025-09-09 11:59:04 +02:00
Henning Dieterichs
ffb77d5cfc
sets correct node version (#4986) 2025-09-09 11:58:16 +02:00
Henning Dieterichs
a597d2cea1
Merge pull request #4977 from microsoft/hediet/b/biological-antelope
update samples
2025-09-09 11:38:17 +02:00
Henning Dieterichs
de2829500d
uses default mirror 2025-09-08 17:52:33 +02:00
Henning Dieterichs
4e45ba0c5f
sets node version (#4980) 2025-09-08 14:14:15 +00:00
Henning Dieterichs
c7f027ed9e
v0.53.0 (#4979) 2025-09-08 06:29:49 -07:00
Henning Dieterichs
c41951a02b
updates changelog (#4978) 2025-09-05 11:34:08 -07:00
Henning Dieterichs
759c442dae Fixes css and amd output 2025-09-05 20:28:29 +02:00
Henning Dieterichs
6f3fbe8c3a
Fixes worker sandbox problems (#4975) 2025-09-05 14:27:56 -04:00
Henning Dieterichs
b19105b7e7
update samples 2025-09-05 20:24:00 +02:00
Henning Dieterichs
a4d7907bd4
Implements language selection (#4969) 2025-08-29 18:19:26 +00:00
Henning Dieterichs
9e4368a8e9
adds amd and firefox/webkit to smoke tests (#4967) 2025-08-29 08:50:02 +00:00
Henning Dieterichs
d2c20a1ad7
Fixes AMD web worker loading (#4966) 2025-08-28 12:46:15 -07:00
Henning Dieterichs
3bfde9adce
Updates monaco-editor-core dependency & fixes basic-languages amd file (#4965) 2025-08-28 10:40:38 -07:00
Henning Dieterichs
15e0a93777
Run npm run playwright-install (#4964)
* Run npm run playwright-install

* Fixes install command
2025-08-28 17:00:44 +00:00
Henning Dieterichs
2f901020a7
Merge pull request #4963 from microsoft/hediet/b/successful-mosquito
Hediet/b/successful mosquito
2025-08-28 18:57:14 +02:00
Henning Dieterichs
6037f70acb
Merge branch 'main' into hediet/b/successful-mosquito 2025-08-28 16:58:37 +02:00
Henning Dieterichs
4825f8bdea Fixes nodejs version 2025-08-28 16:37:50 +02:00
Henning Dieterichs
771cfe74cf 22.18.0 2025-08-28 16:08:37 +02:00
Henning Dieterichs
ecc00a0e24
Fixes node version (#4962) 2025-08-28 16:08:32 +02:00
Henning Dieterichs
2af2bd7810 Fixes node version 2025-08-28 16:03:26 +02:00
Henning Dieterichs
e56ad4b588
repairs esm and amd build (#4950) 2025-08-28 13:35:17 +02:00
Henning Dieterichs
f420968fc9
Merge pull request #4913 from microsoft/dependabot/npm_and_yarn/samples/webpack-dev-server-5.2.1
Bump webpack-dev-server from 4.10.0 to 5.2.1 in /samples
2025-06-23 11:52:24 +02:00
Shifra Williams
8ae32433da
feat: add snowflake sql keywords (#4915)
Added Snowflake SQL keywords from this doc: https://docs.snowflake.com/en/sql-reference/reserved-keywords
2025-06-13 09:32:24 +00:00
dependabot[bot]
a81306325b
Bump webpack-dev-server from 4.10.0 to 5.2.1 in /samples
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.10.0 to 5.2.1.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.10.0...v5.2.1)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-version: 5.2.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-05 12:12:53 +00:00
Henning Dieterichs
dd6bdfe8da
Fixes https://github.com/microsoft/monaco-editor/issues/4799 (#4895)
* Fixes https://github.com/microsoft/monaco-editor/issues/4799

* updates ubuntu version

* Update ci.yml

This change pins the GitHub Actions runner to Ubuntu 22.04 instead of the default ubuntu-latest (currently 24.04) because Playwright's install-deps script is not yet compatible with Ubuntu 24.04. Several packages it tries to install—such as libasound2, libffi7, and libx264-163—have been removed, renamed, or replaced in 24.04, causing the dependency installation to fail and the CI job to exit with an error. Ubuntu 22.04 remains fully supported by Playwright and ensures a stable, consistent environment for browser testing and dependency management until 24.04 compatibility is added upstream.

---------

Co-authored-by: Megan Rogge <megan.rogge@microsoft.com>
2025-05-08 16:19:05 +00:00
Henning Dieterichs
495d075be0
Merge pull request #4742 from RoccoC/webpack-plugin-esm
Some checks failed
CI / CI (push) Has been cancelled
Update webpack plugin to support module workers
2025-04-07 16:37:46 +02:00
Henning Dieterichs
e03e965994 Revert mobx upgrade to fix website.
Some checks failed
CI / CI (push) Has been cancelled
2025-02-04 10:25:22 +01:00
Raymond Zhao
14b0e04b0d
Fix CI and website workflows (#4824)
Some checks are pending
CI / CI (push) Waiting to run
2025-02-04 01:13:01 +00:00
Rocco Cataldo
d2205cb8ee
Merge branch 'main' into webpack-plugin-esm 2024-12-02 09:59:07 -08:00
Ladislau Szomoru
a4b088e410
Engineering - add dependsOn field (#4747)
Some checks failed
CI / CI (push) Has been cancelled
2024-11-11 05:04:54 -08:00
RoccoC
ae5cab77cb update webpack plugin to support module workers 2024-11-05 12:07:29 -08:00
dependabot[bot]
9adbed19a9
Bump express from 4.19.2 to 4.21.1 in /website (#4734)
Some checks failed
CI / CI (push) Has been cancelled
Bumps [express](https://github.com/expressjs/express) from 4.19.2 to 4.21.1.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.1/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.1)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-30 09:22:36 -07:00
dependabot[bot]
d2fa0d21a7
Bump requirejs from 2.3.6 to 2.3.7 (#4616)
Bumps [requirejs](https://github.com/jrburke/r.js) from 2.3.6 to 2.3.7.
- [Commits](https://github.com/jrburke/r.js/compare/2.3.6...2.3.7)

---
updated-dependencies:
- dependency-name: requirejs
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-30 09:06:03 -07:00
dependabot[bot]
5ea1993c30
Bump micromatch from 4.0.5 to 4.0.8 in /website (#4668)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-30 09:03:17 -07:00
dependabot[bot]
175a1d10b4
Bump http-proxy-middleware from 2.0.6 to 2.0.7 in /website (#4726)
Bumps [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) from 2.0.6 to 2.0.7.
- [Release notes](https://github.com/chimurai/http-proxy-middleware/releases)
- [Changelog](https://github.com/chimurai/http-proxy-middleware/blob/v2.0.7/CHANGELOG.md)
- [Commits](https://github.com/chimurai/http-proxy-middleware/compare/v2.0.6...v2.0.7)

---
updated-dependencies:
- dependency-name: http-proxy-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-30 08:58:39 -07:00
dependabot[bot]
55a0ed9269
Bump ws from 8.8.1 to 8.18.0 in /samples (#4595)
Bumps [ws](https://github.com/websockets/ws) from 8.8.1 to 8.18.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.8.1...8.18.0)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-30 08:58:20 -07:00
dependabot[bot]
4dc7b06d9b
Bump body-parser and express in /samples (#4697)
Some checks failed
CI / CI (push) Has been cancelled
Bumps [body-parser](https://github.com/expressjs/body-parser) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `body-parser` from 1.20.2 to 1.20.3
- [Release notes](https://github.com/expressjs/body-parser/releases)
- [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/body-parser/compare/1.20.2...1.20.3)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

---
updated-dependencies:
- dependency-name: body-parser
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-27 16:16:51 -07:00
dependabot[bot]
2695fe2483
Bump rollup from 2.79.1 to 2.79.2 (#4696)
Some checks are pending
CI / CI (push) Waiting to run
Bumps [rollup](https://github.com/rollup/rollup) from 2.79.1 to 2.79.2.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.79.1...v2.79.2)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-27 14:07:39 -07:00
Aiday Marlen Kyzy
f6dc0eb8fc
Merge pull request #4691 from microsoft/chubby-cardinal
Some checks failed
CI / CI (push) Has been cancelled
Prepare monaco-editor for release 0.52
2024-09-19 12:56:30 +02:00
Aiday Marlen Kyzy
53e8e1ce30
adding changelog md change 2024-09-19 12:32:04 +02:00
Aiday Marlen Kyzy
7959d5c66e
update pacakge.json 2024-09-19 12:28:03 +02:00
Aiday Marlen Kyzy
3c7eb57085 undo the package upgrade change
Some checks are pending
CI / CI (push) Waiting to run
2024-09-18 14:45:33 +02:00
Henning Dieterichs
f262e8f931 Defines setInterval/setTimeout on faked globalThis in unit test 2024-09-18 14:45:33 +02:00
Henning Dieterichs
b31d22b9ee
Updates nvm to align with vscode nvm file. (#4665)
Some checks failed
CI / CI (push) Has been cancelled
2024-08-29 15:52:51 +00:00
Aiday Marlen Kyzy
b8a83d5356
Merge pull request #4652 from microsoft/annoyed-dragon
Some checks failed
CI / CI (push) Has been cancelled
Removing `editor.main.nls.js`
2024-08-26 17:01:51 +02:00
Aiday Marlen Kyzy
e52ff42729
removing editor.main.nls.js 2024-08-26 16:18:53 +02:00
Aiday Marlen Kyzy
67d664a329
Merge pull request #4649 from microsoft/unique-locust
Some checks failed
CI / CI (push) Has been cancelled
Add changes for monaco editor release 0.51.0
2024-08-22 18:30:06 +02:00
Aiday Marlen Kyzy
88c558b55d
adding changes for monaco editor release 2024-08-22 18:19:53 +02:00
Henning Dieterichs
2713684d6c Makes vs/nls.availableLanguages work for AMD again.
Some checks are pending
CI / CI (push) Waiting to run
2024-08-22 14:37:46 +02:00
Bhavya U
f6187471ca
Merge pull request #4630 from microsoft/dev/bhavyau/workflows
Some checks failed
CI / CI (push) Has been cancelled
Remove locker and info-needed-closer workflows.
2024-07-31 22:48:05 -07:00
Bhavya U
cd5d52c919
Remove workflows 2024-07-31 22:19:30 -07:00
Henning Dieterichs
93a0a2df32 Fixes CI
Some checks failed
CI / CI (push) Has been cancelled
2024-07-26 16:01:36 +02:00
Henning Dieterichs
d4bb0a8224 Fixes tests 2024-07-26 16:01:36 +02:00
Aiday Marlen Kyzy
02de12a70e
Merge pull request #4573 from microsoft/nutritious-krill
Some checks failed
CI / CI (push) Has been cancelled
Adding some detail in MAINTAINING.md for trigger build step
2024-07-19 11:25:59 +02:00
Henning Dieterichs
5181be1011 website: monaco loading improvements
Some checks failed
CI / CI (push) Has been cancelled
2024-07-16 20:05:30 +02:00
Henning Dieterichs
5eb2aba338
Merge pull request #4586 from ScottCarda-MS/sccarda/UpdateKeywords
Some checks failed
CI / CI (push) Has been cancelled
Update Q# Keywords
2024-07-12 10:40:28 +02:00
Scott Carda
2f8db3f6f8 update tokenizer and tests 2024-07-01 16:43:28 -07:00
Scott Carda
333adbbe6b Add keywords import, export, and struct. 2024-07-01 13:59:44 -07:00
Aiday Marlen Kyzy
032130e4bb
Adding more detailed steps 2024-06-20 15:50:46 +02:00
Aiday Marlen Kyzy
c321d0fbec
Merge pull request #4572 from microsoft/satisfactory-beetle
Some checks failed
CI / CI (push) Has been cancelled
Prepare monaco-editor for release
2024-06-20 11:12:31 +02:00
Aiday Marlen Kyzy
29a4a3aa14
updating the version in the package.json file 2024-06-20 10:01:42 +02:00
Henning Dieterichs
ada2b3d6ae
Merge pull request #4570 from microsoft/dependabot/npm_and_yarn/ws-8.17.1
Some checks are pending
CI / CI (push) Waiting to run
Bump ws from 8.4.2 to 8.17.1
2024-06-19 11:41:34 +02:00
dependabot[bot]
8a98f87be7
Bump ws from 8.4.2 to 8.17.1
Bumps [ws](https://github.com/websockets/ws) from 8.4.2 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.4.2...8.17.1)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-19 08:01:19 +00:00
dependabot[bot]
d15d6ba3b7
Bump express from 4.18.1 to 4.19.2 in /website (#4447)
Some checks failed
CI / CI (push) Has been cancelled
Bumps [express](https://github.com/expressjs/express) from 4.18.1 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.1...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-17 11:31:53 -07:00
dependabot[bot]
654fd3d5ab
Bump express from 4.18.1 to 4.19.2 in /samples (#4446)
Bumps [express](https://github.com/expressjs/express) from 4.18.1 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.1...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-17 11:31:30 -07:00
dependabot[bot]
1eed4472e1
Bump braces from 3.0.2 to 3.0.3 in /samples (#4565)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-17 11:19:15 -07:00
dependabot[bot]
f883fe9d81
Bump braces from 3.0.2 to 3.0.3 (#4564)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-17 10:59:31 -07:00
Henning Dieterichs
c49fdf9f0c
Merge pull request #4482 from jakebailey/emit-file-diagnostics
Some checks failed
CI / CI (push) Has been cancelled
Call clearFiles on internal EmitOutput diagnostics, pass args down
2024-05-30 19:29:01 +02:00
Henning Dieterichs
045e29b7d8
Merge pull request #4504 from htcfreek/patch-1
Some checks are pending
CI / CI (push) Waiting to run
Add extension to `csp.contribution.ts`
2024-05-30 17:56:14 +02:00
Henning Dieterichs
a5e379c985
Merge pull request #4525 from microsoft/given-orangutan
Some checks failed
CI / CI (push) Has been cancelled
Update version
2024-05-24 12:32:15 +02:00
Raymond Zhao
21fd5535f1
chore: exclude all vscode from CG (#4528)
Some checks are pending
CI / CI (push) Waiting to run
2024-05-23 15:01:29 -07:00
Aiday Marlen Kyzy
63f3805f29
add changes 2024-05-22 17:34:03 +02:00
Henning Dieterichs
a845ff6b27
Merge pull request #4401 from samstrohkorbatt/samstrohkorbatt/python-fstring
Some checks failed
CI / CI (push) Has been cancelled
Adding Python f-string syntax support
2024-05-17 12:15:57 +02:00
Henning Dieterichs
d919f283e9 Updates maintaining.md
Some checks are pending
CI / CI (push) Waiting to run
2024-05-17 11:01:31 +02:00
Heiko
64fc0cf1b4
Add extension to csp.contribution.ts
Adds the missing extension value for the CSP langugage in `csp.contribution.ts`
2024-05-11 09:48:17 +02:00
samstrohkorbatt
c869a186ff
Merge branch 'main' into samstrohkorbatt/python-fstring 2024-05-03 08:54:29 -06:00
Henning Dieterichs
b400f83fe3
Merge pull request #4305 from johnyanarella/typescript-upgrade
Some checks failed
CI / CI (push) Has been cancelled
Update TypeScript to TS 5.4.5 in all projects, vendored files
2024-05-03 14:36:35 +02:00
Henning Dieterichs
13072d3f18
Update TypeScript to TS 5.4.5 in all projects, vendored files
Co-authored-by: John Yanarella <john.yanarella@gmail.com>
2024-05-03 11:41:19 +02:00
Henning Dieterichs
ea1ee1ab50 Improves monaco editor playground experience
Some checks are pending
CI / CI (push) Waiting to run
2024-05-03 11:33:38 +02:00
Henning Dieterichs
48e6f86eca Fixes CI 2024-05-03 11:33:01 +02:00
Henning Dieterichs
27978a8064 Adds web editor support to playground 2024-05-03 11:33:01 +02:00
samstrohkorbatt
86538cca14
Merge branch 'main' into samstrohkorbatt/python-fstring 2024-05-02 09:45:31 -06:00
Henning Dieterichs
418ae49a8e Updates languageservices.
Some checks are pending
CI / CI (push) Waiting to run
2024-05-02 16:46:48 +02:00
samstrohkorbatt
7d97bc2392
Merge branch 'main' into samstrohkorbatt/python-fstring 2024-04-26 09:38:36 -06:00
Jake Bailey
7be409ee98 Pass args down too 2024-04-25 13:56:35 -07:00
Jake Bailey
5a8eb62e4e Call clearFiles on internal EmitOutput diagnostics 2024-04-25 13:00:17 -07:00
Henning Dieterichs
707338797b
Merge pull request #4450 from timotheeguerin/add-typespec-lang
Some checks failed
CI / CI (push) Has been cancelled
Add support for TypeSpec language
2024-04-23 13:56:08 +02:00
Timothee Guerin
ed45c2e7b8
Merge branch 'main' into add-typespec-lang 2024-04-22 19:26:52 -07:00
Henning Dieterichs
0037b13fb5 v0.48.0
Some checks are pending
CI / CI (push) Waiting to run
2024-04-22 19:30:11 +02:00
samstrohkorbatt
77e16ebc81 Fixing formatting 2024-04-01 14:42:16 -06:00
samstrohkorbatt
ac2c7a1add
Merge branch 'main' into samstrohkorbatt/python-fstring 2024-04-01 14:27:04 -06:00
Raymond Zhao
8503aef01e
chore: CG ignore VS Code extensions for nightly (#4451) 2024-03-29 18:59:20 +00:00
Timothee Guerin
3fd1654ff6 Add docs for tests 2024-03-29 16:16:36 +00:00
Timothee Guerin
2b748950d6 move example to where CI says it should be 2024-03-29 16:08:30 +00:00
Timothee Guerin
851a5580ed Add typespec language 2024-03-29 15:59:11 +00:00
Henning Dieterichs
98252250b2
Merge pull request #4440 from microsoft/dependabot/npm_and_yarn/website/webpack-dev-middleware-5.3.4
Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /website
2024-03-25 11:17:53 +01:00
Henning Dieterichs
725eb796f4
Merge pull request #4439 from microsoft/dependabot/npm_and_yarn/samples/webpack-dev-middleware-5.3.4
Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /samples
2024-03-25 11:17:29 +01:00
dependabot[bot]
7014d40936
Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /website
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-23 13:19:33 +00:00
dependabot[bot]
9f5ddf9d19
Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /samples
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-23 08:25:05 +00:00
Jeremy Rifkin
92f21bfb5b
Fix bug with highlighting of C++ raw string literals (#4436)
* Fix bug with highlighting of C++ raw string literals

* Update to today's monaco-editor-core

* Continue generating `string.raw.end` tokens

---------

Co-authored-by: Alex Dima <alexdima@microsoft.com>
2024-03-20 21:09:44 +00:00
samstrohkorbatt
c1707b8fde
Merge branch 'main' into samstrohkorbatt/python-fstring 2024-03-19 16:31:16 -06:00
Raymond Zhao
c92a363985
chore: add another skipAPIScan (#4435) 2024-03-19 17:37:12 +00:00
Henning Dieterichs
bfc5f7cd32 Adds missing css 2024-03-19 17:12:48 +01:00
Henning Dieterichs
023ae4284a Update monaco editor core to dev version to investigate CI issues. 2024-03-19 17:12:48 +01:00
Henning Dieterichs
f66cb92abd
Merge pull request #4428 from microsoft/dependabot/npm_and_yarn/samples/follow-redirects-1.15.6
Bump follow-redirects from 1.15.1 to 1.15.6 in /samples
2024-03-19 10:11:05 +01:00
Henning Dieterichs
b590b36008
Merge pull request #4429 from microsoft/dependabot/npm_and_yarn/website/follow-redirects-1.15.6
Bump follow-redirects from 1.15.1 to 1.15.6 in /website
2024-03-19 10:07:49 +01:00
Raymond Zhao
7782231e06
chore: add cgIgnoreDirectories (#4431) 2024-03-18 09:56:51 -07:00
Raymond Zhao
4b7e26f0a9
chore: skip APIScan (#4432)
* chore: try using Windows to build and package

* chore: remove Linux step

* skip APIScan for core

* fix key

* revert testPlatforms

* Skip APIScan for the editor as well

* chore: fix nightly
2024-03-18 17:53:49 +01:00
Henning Dieterichs
c34a2ee7c1
Merge pull request #4430 from microsoft/dependabot/npm_and_yarn/follow-redirects-1.15.6
Bump follow-redirects from 1.15.2 to 1.15.6
2024-03-18 15:48:26 +01:00
dependabot[bot]
ebbcdffaab
Bump follow-redirects from 1.15.2 to 1.15.6
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-16 06:31:35 +00:00
dependabot[bot]
e558a99254
Bump follow-redirects from 1.15.1 to 1.15.6 in /website
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.1 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.1...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-16 00:33:27 +00:00
dependabot[bot]
4123f0be85
Bump follow-redirects from 1.15.1 to 1.15.6 in /samples
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.1 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.1...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-15 22:45:07 +00:00
samstrohkorbatt
c9e8112991
Merge branch 'main' into samstrohkorbatt/python-fstring 2024-03-11 15:44:34 -06:00
Henning Dieterichs
69991d6613 Prepares v0.47.0 2024-03-08 16:26:46 +01:00
samstrohkorbatt
b3ad68b237 retrigger checks 2024-03-01 09:29:02 -07:00
samstrohkorbatt
67960d2298 Adding python f-string syntax support 2024-02-26 09:04:22 -08:00
Henning Dieterichs
21007360ca Adds changed lockfile 2024-02-07 13:54:21 +01:00
Henning Dieterichs
c2040c43c8 Update version to 0.46.0 2024-02-07 13:54:21 +01:00
Henning Dieterichs
3284441937 fixes website CI failure 2024-02-06 19:49:27 +01:00
Henning Dieterichs
8617a8af9e Disables parcel build 2024-02-06 19:49:27 +01:00
Henning Dieterichs
fd84f5469d Update esbuild 2024-02-06 19:49:27 +01:00
Henning Dieterichs
21db3aebf0 Sorts version numbers 2024-01-23 20:41:29 +01:00
Henning Dieterichs
73b47d4592 Fixes parameter labels 2024-01-23 20:40:59 +01:00
Henning Dieterichs
9488e7e078 Removes parcel smoke test, as it replaces process with {} 2024-01-23 18:18:40 +01:00
Henning Dieterichs
b0330f8eed Fixes monaco-editor nightly build (needed for verification) 2024-01-23 18:18:40 +01:00
Henning Dieterichs
6c7087b94e Adds publishMonacoEditorCore and publishMonacoEditor options to nightly pipeline to publish skipped builds 2024-01-23 16:51:51 +01:00
dependabot[bot]
4fc87360d1
Bump vite from 2.9.16 to 2.9.17 in /samples/browser-esm-vite-react (#4349)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.9.16 to 2.9.17.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v2.9.17/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v2.9.17/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-20 14:40:41 -08:00
dependabot[bot]
787421ee54
Bump vite from 3.2.7 to 3.2.8 (#4350)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 3.2.7 to 3.2.8.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v3.2.8/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v3.2.8/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-20 14:40:25 -08:00
Martin Aeschlimann
698e0ecafd
Merge pull request #4299 from mevisioam/json-worker-access
Expose JSON worker
2024-01-08 09:45:41 +01:00
Alexander Makarenko
9be16fa852 Remove unused types
Fix microsoft#727
2023-12-20 11:39:05 +01:00
Alexander Makarenko
eb704f3a86 Remove excessive APIs
Fix microsoft#727
2023-12-20 10:09:12 +01:00
Alexander Makarenko
c3aeff033a Inline JSON language service types in monaco.contribution.ts
Fix microsoft#727
2023-12-20 10:09:12 +01:00
Alexander Makarenko
d39ac8ecc0 Export IJSONWorker type
Fix microsoft#727
2023-12-20 10:09:12 +01:00
DavidMulder0
8d1525eb6d Expose JSON worker
Fix #727
2023-12-20 10:09:12 +01:00
Martin Aeschlimann
dfca77d071
Merge pull request #3894 from tamayika/feature/json_docsym
Change JSON symbol information to document symbol
2023-12-20 09:36:00 +01:00
Martin Aeschlimann
84a181bb6b
Merge branch 'main' into feature/json_docsym 2023-12-15 10:30:42 +01:00
Henning Dieterichs
d8144cfa0e
Merge pull request #4304 from microsoft/aiday/changingTheColorRanges
Changing the color ranges of the color provider example in the playground
2023-12-14 18:02:49 +01:00
Aiday Marlen Kyzy
99622db664
changing the range of the color 2023-12-14 17:50:27 +01:00
Henning Dieterichs
cb106b4eb1
Merge pull request #4243 from nora-soderlund/patch-1
chore(docs): fix monaco.d.ts link
2023-12-14 16:45:11 +01:00
Henning Dieterichs
e1a06068e8
Merge pull request #4255 from OfekShilon/CppOpFix
Remove 2 java-only operators from c++ tokenizer
2023-12-14 16:06:33 +01:00
Henning Dieterichs
72dcedbbd5
Merge pull request #4256 from OfekShilon/FixTokenizerComments
Fix suggestion for #4253
2023-12-14 13:03:24 +01:00
Henning Dieterichs
c1a6140b8c
Merge pull request #4254 from OfekShilon/SiteFix
Small wording fix in the site
2023-12-14 12:58:31 +01:00
Henning Dieterichs
3fd1649231
Merge pull request #4212 from soof-golan/main
feat: Python 3.12 keywords support
2023-12-14 11:46:34 +01:00
Henning Dieterichs
2122b33813
Merge pull request #4210 from kokovtsev/fix/json-markdown-descriptions
fix: enable markdown in JSON completion details
2023-12-14 11:20:43 +01:00
Henning Dieterichs
5e5af013f8 v0.45.0 2023-12-07 15:32:07 +01:00
Ofek Shilon
d5a1a09eba Fix #4253 2023-11-12 20:24:31 +02:00
Ofek Shilon
d38b385382 Remove 2 java-only operators from c++ tokenizer 2023-11-12 20:13:57 +02:00
Ofek Shilon
aafca45ff9 Wording fix 2023-11-12 20:08:59 +02:00
Henning Dieterichs
091550e898 Fixes nightly CI 2023-11-10 12:50:26 +01:00
Nora Söderlund
fb97898186
chore(docs): fix monaco.d.ts link 2023-11-05 17:04:24 +01:00
dependabot[bot]
843ff9b9d7
Bump @babel/traverse in /samples/browser-esm-vite-react (#4215)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.17.3 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-20 09:25:52 -07:00
dependabot[bot]
5d9b9bef9b
Bump @babel/traverse in /samples/browser-esm-webpack-typescript-react (#4216)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.17.3 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-20 09:24:50 -07:00
Henning Dieterichs
f70d545aa9
Merge pull request #4089 from microsoft/dependabot/npm_and_yarn/word-wrap-1.2.4
Bump word-wrap from 1.2.3 to 1.2.4
2023-10-11 14:29:24 +02:00
Henning Dieterichs
4eb9d98fc6
Merge pull request #4201 from microsoft/dependabot/npm_and_yarn/samples/browser-esm-vite-react/postcss-8.4.31
Bump postcss from 8.4.16 to 8.4.31 in /samples/browser-esm-vite-react
2023-10-11 14:28:36 +02:00
Henning Dieterichs
614c084092
Merge pull request #4204 from microsoft/dependabot/npm_and_yarn/postcss-8.4.31
Bump postcss from 8.4.20 to 8.4.31
2023-10-11 14:28:22 +02:00
Soof Golan
d200c7147a
feat: add Python 3.12 keyword 2023-10-10 18:27:27 +03:00
dmkokovtsev
12ff291428 fix: enable markdown in completion details 2023-10-07 22:42:05 +03:00
Henning Dieterichs
3e047efd34 Fixes node-gyp issues 2023-10-06 14:05:28 +02:00
Henning Dieterichs
e409ac061d Adds node-gyp as dev dependency 2023-10-06 10:20:08 +02:00
dependabot[bot]
02a36af3ca
Bump postcss from 8.4.16 to 8.4.31 in /samples/browser-esm-vite-react
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.16 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.16...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-06 08:06:12 +00:00
dependabot[bot]
f6c2dac4c3
Bump postcss from 8.4.20 to 8.4.31
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.20 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.20...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-06 08:06:04 +00:00
Henning Dieterichs
93957fafa0
Merge pull request #4202 from microsoft/dependabot/npm_and_yarn/webpack-plugin/postcss-8.4.31
Bump postcss from 8.4.12 to 8.4.31 in /webpack-plugin
2023-10-06 10:05:38 +02:00
Henning Dieterichs
8665a71b37
Merge pull request #4203 from microsoft/dependabot/npm_and_yarn/samples/postcss-8.4.31
Bump postcss from 8.4.16 to 8.4.31 in /samples
2023-10-06 10:05:30 +02:00
dependabot[bot]
cfdfe2191c
Bump electron from 19.1.8 to 22.3.25 in /samples (#4205)
Bumps [electron](https://github.com/electron/electron) from 19.1.8 to 22.3.25.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v19.1.8...v22.3.25)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-05 16:01:48 -07:00
dependabot[bot]
6354c357c6
Bump postcss from 8.4.16 to 8.4.31 in /samples
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.16 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.16...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 16:48:41 +00:00
dependabot[bot]
105e132c20
Bump postcss from 8.4.12 to 8.4.31 in /webpack-plugin
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.12 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.12...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 16:48:39 +00:00
Henning Dieterichs
2e82147fb6 Removes outdated sample 2023-10-05 18:48:05 +02:00
Henning Dieterichs
f015a01227 Fixes CI 2023-10-05 18:48:05 +02:00
Henning Dieterichs
7e3d25aaca Preparing for v0.44.0 2023-10-05 18:48:05 +02:00
tamayika
c38f07a36e
Merge branch 'main' into feature/json_docsym 2023-10-04 19:53:41 +09:00
Henning Dieterichs
94c055bcbd Cleans up github workflows. Enables daily website release. 2023-09-11 13:18:14 +02:00
Henning Dieterichs
fc4b92a890 v0.43.0 2023-09-11 13:17:56 +02:00
Henning Dieterichs
51ba6777fc Improves playground 2023-09-06 20:22:46 +02:00
Alexandru Dima
e7d7a5b072
Fix a path and bump editor used for developing website (#4152) 2023-08-31 10:50:49 +00:00
Alexandru Dima
c4fa782fc2
Restore manual running from the repository (#4150) 2023-08-31 09:57:50 +02:00
Henning Dieterichs
04ece42881 Adds "use latest dev" button 2023-08-28 21:02:23 +02:00
Henning Dieterichs
31b04afb94 Website: Implements source=latest-dev and source=latest 2023-08-27 23:29:06 +02:00
Henning Dieterichs
38e1e3d097 0.41.0 2023-08-03 15:56:22 +02:00
Henning Dieterichs
50a8a5ffbf
Fixes pipelines (#4107) 2023-07-31 07:00:49 -07:00
Henning Dieterichs
e637c1f34c Formats code 2023-07-31 15:33:39 +02:00
Henning Dieterichs
3a71daa740 Fixes pipelines 2023-07-31 15:33:39 +02:00
Henning Dieterichs
5636a40221
Fixes CI (#4102)
* Fixes CI

* Fixes CI
2023-07-27 10:44:55 +00:00
Henning Dieterichs
0f95ee0d84
Merge pull request #4087 from remcohaszing/document-concepts
Document some basic concepts
2023-07-19 18:31:20 +02:00
Henning Dieterichs
74e783a53a
Fixes CodeQL (#4091) 2023-07-19 17:08:10 +02:00
Henning Dieterichs
97c7fdb35c
Fixes CodeQL issues (#4090) 2023-07-19 17:05:52 +02:00
dependabot[bot]
b1827a5f53
Bump word-wrap from 1.2.3 to 1.2.4
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-19 05:23:37 +00:00
Remco Haszing
09a944d5d8
Process feedback 2023-07-18 21:29:36 +02:00
Remco Haszing
7dac0d0a2e
Document some basic concepts
Closes #4084
2023-07-18 14:51:18 +02:00
Henning Dieterichs
be57cbf4ef
Merge pull request #4078 from microsoft/dependabot/npm_and_yarn/website/semver-6.3.1
Bump semver from 6.3.0 to 6.3.1 in /website
2023-07-13 14:23:23 +02:00
dependabot[bot]
cb0a7d9dd5
Bump semver from 6.3.0 to 6.3.1 in /website
Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v6.3.0...v6.3.1)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-12 22:49:48 +00:00
Henning Dieterichs
580db05321
Merge pull request #4066 from microsoft/dependabot/npm_and_yarn/tough-cookie-4.1.3
Bump tough-cookie from 4.0.0 to 4.1.3
2023-07-10 16:56:44 +02:00
Henning Dieterichs
b256998be5
Merge pull request #4065 from microsoft/hediet/b/unchanged-roadrunner
Fixes build script
2023-07-10 09:00:22 +02:00
dependabot[bot]
25f18a39a1
Bump tough-cookie from 4.0.0 to 4.1.3
Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.0.0 to 4.1.3.
- [Release notes](https://github.com/salesforce/tough-cookie/releases)
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
- [Commits](https://github.com/salesforce/tough-cookie/compare/v4.0.0...v4.1.3)

---
updated-dependencies:
- dependency-name: tough-cookie
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-09 11:22:44 +00:00
Henning Dieterichs
37b1981287
Fixes build script 2023-07-07 21:14:29 +02:00
Henning Dieterichs
1556feb83b
Merge pull request #4064 from microsoft/hediet/b/everyday-egret
webpack-plugin: 7.1.0
2023-07-07 20:52:31 +02:00
Henning Dieterichs
c951e05221
webpack-plugin: 7.1.0 2023-07-07 20:38:25 +02:00
Henning Dieterichs
5ea17c3f59
Merge pull request #3315 from philippleidig/extend-st-extensions-twincat
Add TwinCAT file support for structured text (st) language
2023-07-07 19:05:36 +02:00
Henning Dieterichs
f19138215f
Merge pull request #3488 from remcohaszing/export-typescript-worker-members
Export custom TypeScript worker variables
2023-07-07 17:52:20 +02:00
Henning Dieterichs
0365f0ed20
Merge pull request #4063 from claylibrarymarket/main
Fix Twig's plain text class expression
2023-07-07 17:42:03 +02:00
Henning Dieterichs
c4e3037ed0
Merge branch 'main' into export-typescript-worker-members 2023-07-07 17:41:57 +02:00
claylibrarymarket
e1e946ac65
Update twig.test.ts 2023-07-07 10:07:41 -05:00
claylibrarymarket
de76be4e6c
Update twig.ts 2023-07-07 09:58:33 -05:00
Henning Dieterichs
e6c4acec69
Merge pull request #3096 from remcohaszing/mdx
Add mdx language
2023-07-07 16:55:57 +02:00
Henning Dieterichs
c46883da4f
Merge branch 'main' into mdx 2023-07-07 16:44:51 +02:00
Henning Dieterichs
b79687ee17
Merge pull request #4000 from FossPrime/patch-1
Use new GitHub pages workflow
2023-07-07 16:40:58 +02:00
Henning Dieterichs
b9cda7e6a8
Merge pull request #4041 from leandrocp/lp/elixir-multiletter-sigils
Elixir - Add support for multi-letter uppercase sigils
2023-07-07 16:37:18 +02:00
Henning Dieterichs
83b3cf23ca
Merge pull request #4062 from microsoft/hediet/b/neat-mollusk
0.40.0
2023-07-07 16:25:09 +02:00
Henning Dieterichs
18dfe4da0d
0.40.0 2023-07-07 16:08:50 +02:00
Henning Dieterichs
9aba8f774c
Merge pull request #4061 from microsoft/hediet/b/spotty-macaw
Adds CodeQL exceptions
2023-07-06 23:51:03 +02:00
Henning Dieterichs
f70fabb863
Adresses https://github.com/microsoft/vscode-internalbacklog/issues/4449 2023-07-06 23:20:35 +02:00
Henning Dieterichs
34f6c10073
Merge pull request #4050 from microsoft/hediet/b/confident-kite
latest -> latest stable (versionNumber)
2023-06-29 15:15:54 +02:00
Henning Dieterichs
dc5c24591b
latest -> latest stable (versionNumber) 2023-06-29 14:24:23 +02:00
Leandro Pereira
2df7a51aa1
Elixir - Add support for multi-letter uppercase sigils
Elixir v1.15.0 has added support for multi-letter uppercase sigils

~LVN/content/
~LVN/content/m

Refs:
Proposal: https://groups.google.com/g/elixir-lang-core/c/cocMcghahs4/m/DdYRNfuYAwAJ
PR: elixir-lang/elixir#12448
Release notes: https://github.com/elixir-lang/elixir/releases/tag/v1.15.0
2023-06-24 09:55:51 -04:00
Henning Dieterichs
84d1bed101
Merge pull request #4037 from steventrouble/patch-1
Fix lorem ipsum text on marketing page.
2023-06-22 19:31:57 +02:00
Steven Weiss
5ce724a281 Fix lorem ipsum text on marketing page.
Format with prettier from command line.
2023-06-21 13:47:46 -07:00
Remco Haszing
62e11b4b49
Merge branch 'main' into mdx 2023-06-13 14:20:59 +02:00
Henning Dieterichs
d514ddaa8d
Merge pull request #4019 from microsoft/hediet/b/right-raccoon
Repairs example urls
2023-06-12 11:59:38 +02:00
Henning Dieterichs
990456e51f
Repairs example urls 2023-06-12 11:49:15 +02:00
Henning Dieterichs
60a087657e
Merge pull request #4007 from microsoft/hediet/b/golden-marmoset
Update publishing steps
2023-06-07 18:05:55 +02:00
Henning Dieterichs
e2f5720cbb
Merge pull request #4004 from microsoft/dependabot/npm_and_yarn/samples/browser-esm-vite-react/vite-2.9.16
Bump vite from 2.9.13 to 2.9.16 in /samples/browser-esm-vite-react
2023-06-07 10:08:17 +02:00
dependabot[bot]
0d7608bd10
Bump vite from 2.9.13 to 2.9.16 in /samples/browser-esm-vite-react
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.9.13 to 2.9.16.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v2.9.16/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v2.9.16/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-06 13:26:12 +00:00
dependabot[bot]
12a85be518
Bump vite from 3.2.5 to 3.2.7 (#4005)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 3.2.5 to 3.2.7.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v3.2.7/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v3.2.7/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-06 06:25:16 -07:00
Henning Dieterichs
6b79219c16
Update publishing steps 2023-06-06 14:52:06 +02:00
Henning Dieterichs
ff3621a3fa
Merge pull request #4006 from microsoft/hediet/b/fellow-chameleon
Update lock file
2023-06-06 10:51:10 +02:00
Henning Dieterichs
35ba0194b2
Include package.json content in cache key 2023-06-06 10:30:14 +02:00
Henning Dieterichs
815929cfc1
Update lock file 2023-06-06 10:26:20 +02:00
Henning Dieterichs
72a7f3229d
Merge pull request #4003 from microsoft/hediet/b/academic-walrus
0.39.0
2023-06-06 09:58:01 +02:00
Henning Dieterichs
6c7d6b1e2f
0.39.0 2023-06-06 00:07:17 +02:00
Henning Dieterichs
5f70e6fc72
Merge pull request #4002 from microsoft/hediet/b/academic-walrus
Allows for manual nightly builds.
2023-06-05 18:15:26 +02:00
Henning Dieterichs
74470a5fb2
Allows for manual nightly builds. 2023-06-05 17:40:14 +02:00
Ray Foss
3be92eea76
Update website.yml 2023-06-04 23:12:09 -05:00
Henning Dieterichs
8bb1a4e863
Merge pull request #3994 from microsoft/hediet/b/lonely-pelican
Fixes regexp
2023-06-02 02:27:27 +02:00
Henning Dieterichs
5744a230ae
Fixes regexp 2023-06-02 00:52:09 +02:00
Henning Dieterichs
c84c0cb8f9
Merge pull request #3992 from microsoft/hediet/b/complex-silverfish
Fixes slow regexp issue
2023-05-31 17:37:59 +02:00
Henning Dieterichs
292c2400a0
Fixes slow regexp issue 2023-05-31 17:19:52 +02:00
Henning Dieterichs
4d4f13ced1
Merge pull request #3945 from dlitsman/issue-3929
Extend the "Rendering Glyphs In The Margin" example to include a transparent color note.
2023-05-31 16:43:10 +02:00
Henning Dieterichs
0c6348a71d
Makes editor on main page writeable. (#3976) 2023-05-26 09:24:54 -07:00
Dmitry Litsman
f62e724254 Extend the example to include a transparent color note. 2023-05-06 10:30:03 +01:00
Henning Dieterichs
584584e65b
Merge pull request #3942 from domesticmouse/patch-1
Update `monaco.d.ts` link
2023-05-04 12:30:05 +02:00
Brett Morgan
311eaa4dfb
Update monaco.d.ts link
fixes: https://github.com/microsoft/monaco-editor/issues/3941

Linked to node hosted `monaco.d.ts` file as the docs are already linked on the same line.
2023-05-04 06:38:50 +10:00
Henning Dieterichs
496274aae9
Merge pull request #3919 from spahnke/private-identifiers
[JS, TS] Add Monarch support for private identifiers
2023-05-02 14:46:11 +02:00
Henning Dieterichs
265712998d
Merge pull request #3922 from spahnke/weak-hornet
[JS] Add static keyword
2023-05-02 14:43:57 +02:00
Henning Dieterichs
52d3b7ed6d
Merge pull request #3887 from dneto0/add-wgsl
Avoid a hack in the WGSL lexer
2023-05-02 14:39:58 +02:00
Henning Dieterichs
358be7cd03
Merge pull request #3933 from titouanmathis/main
[Webpack Plugin] Fix CJS being injected in ESM files
2023-05-02 14:39:39 +02:00
Henning Dieterichs
28e6548d15
Merge pull request #3931 from microsoft/dependabot/npm_and_yarn/yaml-and-htmlnano-2.2.2
Bump yaml and htmlnano
2023-05-02 14:38:32 +02:00
Henning Dieterichs
c6bec62c33
Merge pull request #3939 from microsoft/hediet/b/funny-barracuda
0.38.0
2023-05-02 14:28:00 +02:00
Henning Dieterichs
0e330ae453
0.38.0 2023-05-02 14:17:58 +02:00
Henning Dieterichs
3c860ee758
Merge pull request #3934 from microsoft/hediet/b/comparable-wildebeest
Retry failed compilation due to http 500 errors
2023-04-27 12:47:08 +02:00
Henning Dieterichs
6b9d289ce3
Retry failed compilation due to http 500 errors 2023-04-27 12:33:09 +02:00
Titouan Mathis
424abe722e
Fix CJS being injected in ESM files
Fix #2735
2023-04-26 14:06:05 +02:00
dependabot[bot]
21df16c2da
Bump yaml and htmlnano
Bumps [yaml](https://github.com/eemeli/yaml) and [htmlnano](https://github.com/posthtml/htmlnano). These dependencies needed to be updated together.

Updates `yaml` from 2.2.1 to 2.2.2
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](https://github.com/eemeli/yaml/compare/v2.2.1...v2.2.2)

Updates `htmlnano` from 2.0.3 to 2.0.4
- [Release notes](https://github.com/posthtml/htmlnano/releases)
- [Changelog](https://github.com/posthtml/htmlnano/blob/master/CHANGELOG.md)
- [Commits](https://github.com/posthtml/htmlnano/compare/2.0.3...2.0.4)

---
updated-dependencies:
- dependency-name: yaml
  dependency-type: indirect
- dependency-name: htmlnano
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-25 19:06:00 +00:00
Henning Dieterichs
b61f404730
Merge pull request #3924 from kisstkondoros/fix/3923
Fix reference error in convert method of OutlineAdapter
2023-04-24 12:13:09 +02:00
Tamas Kiss
c270d67d6d Fix reference error in convert method of OutlineAdapter
As the result object is about to be created, it can not be referred to when
mapping child items.

This fixes #3923
2023-04-20 11:24:10 +00:00
Sebastian Pahnke
d2ec32be72 Add static keyword 2023-04-20 09:37:00 +02:00
Sebastian Pahnke
e5366f65e8 Add support for private identifiers 2023-04-18 13:19:33 +02:00
David Neto
6163a51770
Merge branch 'main' into add-wgsl 2023-04-13 12:22:42 -04:00
Henning Dieterichs
8270c45a38
Merge pull request #3911 from microsoft/hediet/b/regulatory-basilisk
Implements reload command
2023-04-13 16:38:39 +02:00
Henning Dieterichs
68f779a782
Merge pull request #3912 from microsoft/hediet/b/defensive-platypus
Escape $ in template strings
2023-04-13 16:36:34 +02:00
Henning Dieterichs
7d75202fb5
Escape $ in template strings 2023-04-13 16:25:34 +02:00
Henning Dieterichs
ba68ad0693
Implements reload command 2023-04-13 15:51:41 +02:00
Remco Haszing
598d45b159
Merge branch 'main' into mdx 2023-04-10 10:45:06 +02:00
Henning Dieterichs
2f51994ab5
Merge pull request #3901 from microsoft/hediet/b/remaining-felidae
Fixes broken website.
2023-04-07 20:56:55 +02:00
Henning Dieterichs
2b2cfac8fa
Fixes broken website. 2023-04-07 20:44:13 +02:00
Henning Dieterichs
8983c59033
Merge pull request #3900 from microsoft/hediet/b/moral-scorpion
Adds reload action (Ctrl+Enter)
2023-04-07 16:19:07 +02:00
Henning Dieterichs
cd9da2d1c3
Merge pull request #3899 from microsoft/hediet/b/insufficient-earthworm
Implements "set from ..." feature and updates some samples
2023-04-07 16:18:54 +02:00
Remco Haszing
ef3a98e0a2
Merge branch 'main' into mdx 2023-04-07 16:06:30 +02:00
Remco Haszing
1322e33b0d
Add basic MDX tests
The sample is taken from https://github.com/wooorm/markdown-tm-language.
2023-04-07 15:55:47 +02:00
Henning Dieterichs
ebfddbd4fb
Adds reload action (Ctrl+Enter) 2023-04-07 13:22:17 +02:00
Henning Dieterichs
ce36afc6c5
Adds forgotten dispose & implements undo 2023-04-07 13:17:26 +02:00
Henning Dieterichs
225be1f83c
Fixes lockfile. 2023-04-07 13:16:45 +02:00
Henning Dieterichs
47ecf09c2c
Implements "set from ..." feature and updates some samples 2023-04-07 13:09:42 +02:00
Henning Dieterichs
af0106a971
Merge pull request #3896 from microsoft/hediet/b/vicarious-sloth
Playground improvements
2023-04-06 16:42:48 +02:00
Henning Dieterichs
e3b1a47554
Playground improvements 2023-04-06 16:30:30 +02:00
tamayika
858b03fd8a Change JSON symbol information to document symbol 2023-04-06 17:36:52 +09:00
Henning Dieterichs
20a8d5a651
Merge pull request #3892 from microsoft/hediet/b/radical-python
0.37.1
2023-04-05 18:22:42 +02:00
Henning Dieterichs
d04d8188c9
0.37.1 2023-04-05 17:50:32 +02:00
Henning Dieterichs
e0f314294d
Merge pull request #3890 from microsoft/hediet/b/bewildered-swordtail
Don't load monaco editor in fullscreen
2023-04-05 12:57:23 +02:00
Henning Dieterichs
c526b6bf0b
Merge pull request #3889 from microsoft/hediet/b/characteristic-rabbit
Implements option to disable auto-reload
2023-04-05 12:54:50 +02:00
Henning Dieterichs
842214b80e
Don't load monaco editor in fullscreen 2023-04-05 12:45:50 +02:00
Henning Dieterichs
29bf7f9a91
Implements option to disable auto-reload 2023-04-05 12:22:20 +02:00
Henning Dieterichs
1c6f48aa7d
Merge pull request #3879 from microsoft/hediet/webcomponent-bugfix
Fixes webcomponent sample for local development
2023-04-05 12:06:35 +02:00
David Neto
fb47a0f545 Avoid a hack in the WGSL lexer
This is a non-functioal change.

The current rule for delimiters was silly: it should have been a
character class range (e.g. [ ... ]).

Move delimiter handling into the symbols matcher.
2023-04-04 10:16:27 -04:00
Henning Dieterichs
14a92401d7
Merge pull request #3886 from microsoft/hediet/b/difficult-puma
Updates playwright
2023-04-04 15:56:27 +02:00
Henning Dieterichs
e8e3ac9ac1
Updates playwright 2023-04-04 15:41:55 +02:00
Henning Dieterichs
74fb36aa50
Merge pull request #3884 from dneto0/add-wgsl
Add WebGPU Shading Language tokenizer, with tests
2023-04-04 15:15:56 +02:00
Henning Dieterichs
20c3f8ff1e
Merge pull request #3885 from microsoft/hediet/b/shared-marmot
0.37.0 release
2023-04-04 11:08:39 +02:00
Henning Dieterichs
6c77360f6b
Sets tsc target to fix playground compile issues 2023-04-04 11:00:31 +02:00
Henning Dieterichs
044810afa9
0.37.0 release 2023-04-04 10:55:43 +02:00
David Neto
3724eefaf5 Add WebGPU Shading Language tokenizer, with tests
Fixes: #3883
2023-04-03 19:09:35 -04:00
Henning Dieterichs
689a4b89b2
Merge pull request #3882 from microsoft/hediet/b/monaco-editor-core-bugfix
Adopts latest monaco-editor-core
2023-04-03 13:22:28 +02:00
Henning Dieterichs
b61b4d70e3
Adopts latest monaco-editor-core 2023-04-03 12:35:46 +02:00
Henning Dieterichs
4244bc3a06
Merge pull request #3866 from miloush/main
Include .xsd and .xslt as an XML extension
2023-03-31 13:52:40 +02:00
Henning Dieterichs
f5b50400fc
Merge pull request #3878 from microsoft/hediet/bracket-matching
Fixes #3534
2023-03-31 12:43:15 +02:00
Henning Dieterichs
4886e1da08
Fixes webcomponent sample for local development 2023-03-31 12:29:44 +02:00
Henning Dieterichs
f8c175d0c4
Fixes #3534 2023-03-31 11:20:41 +02:00
Henning Dieterichs
181f03ecce
Merge branch 'main' into mdx 2023-03-31 10:44:18 +02:00
Jan Kučera
08f81975c8
Include .xsd and .xslt as an XML extension. 2023-03-27 18:55:10 +01:00
Henning Dieterichs
e531b5c337
Merge pull request #3860 from tamayika/feature/ts5
Change moduleResolution to node16 and adopt TS 5.0
2023-03-27 16:26:54 +02:00
Henning Dieterichs
8eed80bf5e
Merge pull request #3848 from tamayika/feature/custom-keybinding-example
Add custom keybinding example
2023-03-27 16:26:07 +02:00
Henning Dieterichs
85111e1f3e
Update lockfile 2023-03-27 13:58:26 +02:00
Henning Dieterichs
f3cac1faff
Merge pull request #3864 from yuri1969/yaml-fixes
Various YAML improvements
2023-03-27 13:41:06 +02:00
yuri1969
788b6a2982
Fix ': ' within a comment 2023-03-25 18:17:21 +01:00
yuri1969
c7ce77ba18
Fix values mixed with comments 2023-03-25 17:37:03 +01:00
tamayika
c3b271bc70 change moduleResolution to node16 2023-03-23 20:25:18 +09:00
tamayika
ebb017c8ed Revert "Merge pull request #3855 from microsoft/hediet/symbolic-tarsier"
This reverts commit ae158a2524, reversing
changes made to 8307f38c4b.
2023-03-23 20:21:15 +09:00
yuri1969
30a786cf5f
Fix incorrect key:value detection 2023-03-22 23:06:07 +01:00
Henning Dieterichs
ae158a2524
Merge pull request #3855 from microsoft/hediet/symbolic-tarsier
Fixes #3853
2023-03-21 17:34:03 +01:00
Henning Dieterichs
ca1f701102
Fixes #3853 2023-03-21 17:00:30 +01:00
Henning Dieterichs
8307f38c4b
Merge pull request #3854 from avin-kavish/patch-1
Fix
2023-03-21 16:39:39 +01:00
Avin
5495aa8e01
Fix 2023-03-21 20:29:23 +05:30
Henning Dieterichs
38731c726a
Merge pull request #3258 from danboo/add-perl-module-extension
add perl module (.pm) extension
2023-03-20 14:28:31 +01:00
tamayika
047133aeb3
Merge branch 'main' into feature/custom-keybinding-example 2023-03-20 21:19:47 +09:00
tamayika
12fd5c0fdb Add custom keybinding example 2023-03-18 11:29:16 +09:00
Henning Dieterichs
f116465526
Merge pull request #3721 from jakebailey/ts-4.9
Update TypeScript to TS 5.0.2 in all projects, vendored files
2023-03-17 17:32:54 +01:00
Jake Bailey
0d72bf6c93 TS 5.0 2023-03-16 12:53:16 -07:00
Jake Bailey
d793f4d6fd Merge branch 'main' into ts-4.9 2023-03-16 12:49:35 -07:00
Henning Dieterichs
a35f32ecc1
Merge pull request #3835 from microsoft/dependabot/npm_and_yarn/samples/browser-esm-webpack-typescript-react/webpack-5.76.1
Bump webpack from 5.70.0 to 5.76.1 in /samples/browser-esm-webpack-typescript-react
2023-03-15 12:47:49 +01:00
Henning Dieterichs
407bba039b
Merge pull request #3841 from microsoft/dependabot/npm_and_yarn/webpack-5.76.0
Bump webpack from 5.75.0 to 5.76.0
2023-03-15 12:47:25 +01:00
dependabot[bot]
9504cab8fb
Bump webpack in /samples/browser-esm-webpack-typescript-react
Bumps [webpack](https://github.com/webpack/webpack) from 5.70.0 to 5.76.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.70.0...v5.76.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-15 10:07:33 +00:00
dependabot[bot]
899e234bc9
Bump webpack from 5.75.0 to 5.76.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-15 10:05:12 +00:00
Henning Dieterichs
4c7c8ca8ee
Merge pull request #3834 from microsoft/dependabot/npm_and_yarn/webpack-plugin/webpack-5.76.0
Bump webpack from 5.70.0 to 5.76.0 in /webpack-plugin
2023-03-15 10:56:21 +01:00
dependabot[bot]
20597c8e39
Bump webpack from 5.70.0 to 5.76.0 in /webpack-plugin
Bumps [webpack](https://github.com/webpack/webpack) from 5.70.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.70.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-15 09:44:41 +00:00
Henning Dieterichs
cdc7acf822
Merge pull request #3837 from microsoft/dependabot/npm_and_yarn/samples/webpack-5.76.0
Bump webpack from 5.74.0 to 5.76.0 in /samples
2023-03-15 10:44:13 +01:00
Henning Dieterichs
150d1d309c
Merge pull request #3839 from microsoft/dependabot/npm_and_yarn/website/webpack-5.76.0
Bump webpack from 5.74.0 to 5.76.0 in /website
2023-03-15 10:43:43 +01:00
dependabot[bot]
d83d8467ad
Bump webpack from 5.74.0 to 5.76.0 in /website
Bumps [webpack](https://github.com/webpack/webpack) from 5.74.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.74.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-15 07:54:56 +00:00
dependabot[bot]
7ed13a5596
Bump webpack from 5.74.0 to 5.76.0 in /samples
Bumps [webpack](https://github.com/webpack/webpack) from 5.74.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.74.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-15 04:26:48 +00:00
Ladislau Szomoru
4392096db2
Engineering - remove custom code to create git tag (#3828) 2023-03-14 13:09:02 +01:00
Henning Dieterichs
7374280f4e
Merge pull request #3775 from PmcFizz/main
use createDecorationsCollection replace deltaDecorations
2023-03-14 11:57:23 +01:00
Fizz Pang
1431f4561f feat: prettier 2023-03-12 15:47:52 +08:00
Fizz
4d3ed6fe28
Merge branch 'microsoft:main' into main 2023-03-12 15:41:17 +08:00
Jake Bailey
55ad2e867b
Merge branch 'main' into ts-4.9 2023-03-11 21:31:22 -08:00
Henning Dieterichs
2541de85e4
Merge pull request #3774 from PmcFizz/patch-4
fix example iframe don't alert
2023-03-10 13:23:53 +01:00
Fizz
01a48285c1 createDecorationsCollection 2023-03-10 06:21:40 +00:00
Fizz
e43c0525cf
Update Preview.tsx 2023-03-10 14:11:03 +08:00
Henning Dieterichs
4a80f8e852
Merge pull request #3264 from nnnnoel/patch-2
Add CommonJS, ESM extension for TS
2023-03-08 13:50:12 +01:00
Henning Dieterichs
fe18f2e950
Merge pull request #3726 from PmcFizz/patch-1
opt example
2023-03-08 11:22:41 +01:00
Henning Dieterichs
2469088cc7
Merge branch 'main' into patch-1 2023-03-08 11:12:10 +01:00
Henning Dieterichs
80ee9b3995
Merge pull request #3722 from tamayika/feature/website-playground-examples-type-check
Fix playground samples type errors and add CI test
2023-03-07 14:27:58 +01:00
tamayika
2b3444b493 Fix to use promise and remove unnecessary variables 2023-03-07 21:02:45 +09:00
Fizz
c5006e9dfe
Update sample.js 2023-03-06 19:47:53 +08:00
Noel Kim (김민혁)
bd6aa19f1f
Merge branch 'main' into patch-2 2023-03-05 21:14:04 +09:00
tamayika
01b6fa5b2e Fix playground type errors and add CI test 2023-03-04 21:38:19 +09:00
Jake Bailey
ce6624f433 Bump @types/node consisitently 2023-03-03 14:30:23 -08:00
Jake Bailey
9d14e8283a Fix one missing case 2023-03-03 14:22:37 -08:00
Jake Bailey
7747977e3a Fix webpack-plugin 2023-03-03 14:18:10 -08:00
Jake Bailey
0f64bdb69f Swap InlayHintsOptions with UserPreferences 2023-03-03 14:15:11 -08:00
Jake Bailey
1f5765a3bb Update vendored TS 2023-03-03 14:12:10 -08:00
Jake Bailey
dae7f13f9e Update the rest too 2023-03-03 14:11:09 -08:00
Jake Bailey
d62f239f37 Bump TS and typedoc in package.jsons 2023-03-03 14:07:57 -08:00
Jake Bailey
0c283fdc07 Rerun npm install to fix lockfile 2023-03-03 12:56:45 -08:00
Henning Dieterichs
f20e0c8d47
Merge pull request #3618 from PmcFizz/patch-2
Update CONTRIBUTING.md
2023-03-03 13:23:34 +01:00
pmc
19bce8bfba opt: docment
Signed-off-by: pmc <pangmengchen@gmail.com>
2023-03-03 09:20:03 +08:00
Fizz
8629931e99
Merge branch 'microsoft:main' into patch-2 2023-03-03 09:05:05 +08:00
Fizz
544dfbffca
Update CONTRIBUTING.md 2023-03-02 22:40:06 +08:00
Henning Dieterichs
920affc75f
Merge pull request #3611 from remcohaszing/feature-type-definitions
Publish feature and language type definitions
2023-03-02 14:57:24 +01:00
Henning Dieterichs
836c19717b
Merge pull request #3622 from microsoft/hediet/whole-lark
Fixes #3565
2023-03-02 13:59:32 +01:00
Henning Dieterichs
6f4b37e3fa
Merge pull request #3619 from jakebailey/replace-occurrences
Replace occurrences with highlights
2023-03-02 13:05:42 +01:00
Henning Dieterichs
5b9f89146a
Fixes #3565 2023-03-02 12:55:56 +01:00
Henning Dieterichs
56c4633825
Merge pull request #3617 from PmcFizz/patch-1
opt example
2023-03-02 12:29:02 +01:00
Jake Bailey
9d5d765fe4 Replace occurrences with highlights 2023-03-01 14:27:42 -08:00
Fizz
01c0a5be61
Update CONTRIBUTING.md 2023-03-01 10:46:15 +08:00
Fizz
5bbf36c369
Update sample.js 2023-03-01 09:21:30 +08:00
Henning Dieterichs
2b2e2a1eb7 Implements css hot reload 2023-02-28 15:44:40 +01:00
Henning Dieterichs
ca7b9105cb playground: wrap-reverse 2023-02-28 15:44:40 +01:00
Henning Dieterichs
59e529cc36 Removes playground logging 2023-02-28 15:44:40 +01:00
Henning Dieterichs
a1a90c30fd Fixes dev issue caused by sandboxed iframe. 2023-02-28 15:44:40 +01:00
Remco Haszing
e353080621
Publish feature and language type definitions
According to the examples, this is part of the public interface.
However, type definitions were missing for these files.

Closes #2450
2023-02-28 10:34:47 +01:00
Henning Dieterichs
6c56744c34
Merge pull request #3607 from microsoft/hediet/capable-iguana
Sets version to 0.36.1
2023-02-28 10:00:32 +01:00
Henning Dieterichs
a79b034ec4
Merge pull request #3609 from microsoft/hediet/annual-eagle
Updates changelog
2023-02-27 14:32:52 +01:00
Henning Dieterichs
894e86a863
Updates changelog 2023-02-27 14:17:39 +01:00
Henning Dieterichs
30e55994a5
Merge pull request #3606 from microsoft/hediet/smart-puma
Fixes #3601
2023-02-27 13:16:36 +01:00
Henning Dieterichs
05cbb29410
Sets version to 0.36.1 2023-02-27 13:08:48 +01:00
Henning Dieterichs
1d29a6420a
Fixes #3601 2023-02-27 13:05:16 +01:00
Henning Dieterichs
f86fe93775
Merge pull request #3599 from microsoft/hediet/thorough-bat
Fixes pipeline
2023-02-24 17:20:12 +01:00
Henning Dieterichs
0677fa6e30
Fixes pipeline 2023-02-24 17:06:12 +01:00
Henning Dieterichs
4e1721e7bb
Merge pull request #3598 from microsoft/hediet/wily-leopard
Adds out folder docs
2023-02-24 15:37:07 +01:00
Henning Dieterichs
43f712259c
Adds out folder docs 2023-02-24 15:21:51 +01:00
Henning Dieterichs
2c0e8015f6
Merge pull request #3597 from microsoft/hediet/racial-raccoon
Prepares release of 0.36.0
2023-02-24 15:16:22 +01:00
Henning Dieterichs
f7e0f46653
Merge pull request #3554 from andrewbranch/update-types-node
Update @types/node
2023-02-24 15:15:56 +01:00
Henning Dieterichs
84c5f99efe
Prepares release of 0.36.0 2023-02-24 14:47:42 +01:00
Henning Dieterichs
429ff9b108
Merge branch 'main' into extend-st-extensions-twincat 2023-02-24 12:57:35 +01:00
Henning Dieterichs
3b800d8192
Merge pull request #3583 from madcodelife/main
Fix 'Hover Provider Example' incorrect Promise syntax
2023-02-24 12:54:45 +01:00
Henning Dieterichs
9cb6000aba
Merge pull request #3596 from microsoft/hediet/latin-deer
Improves hello world example
2023-02-24 11:40:39 +01:00
Henning Dieterichs
bdc690af2f
Merge pull request #3595 from microsoft/hediet/blonde-puma
Fixes #3588
2023-02-24 11:39:56 +01:00
Henning Dieterichs
26aff5b514
Improves hello world example 2023-02-24 11:17:59 +01:00
Henning Dieterichs
268f388cfb
Fixes #3588 2023-02-24 11:17:10 +01:00
Henning Dieterichs
f2d1d1d4a1
Merge pull request #3591 from microsoft/hediet/underlying-skink
Updates docs
2023-02-23 16:27:07 +01:00
Henning Dieterichs
b959906fe3
Updates docs 2023-02-23 16:12:54 +01:00
Henning Dieterichs
8c0dd6c726
Merge pull request #3590 from microsoft/hediet/alternative-shark
Fixes playground
2023-02-23 16:09:33 +01:00
Henning Dieterichs
397617aec5
Merge pull request #3589 from microsoft/hediet/numerous-goat
Fixes launch config
2023-02-23 16:03:53 +01:00
Henning Dieterichs
e48d884fb3
Fixes playground 2023-02-23 15:56:23 +01:00
Henning Dieterichs
e031d5e9a9
Fixes launch config 2023-02-23 15:49:16 +01:00
Henning Dieterichs
b67461f194
Merge pull request #3586 from microsoft/hediet/bundleTypescriptServicesWithTsc
bundle typescript services with tsc
2023-02-23 12:02:19 +01:00
Henning Dieterichs
fc2d3334f4
Merge pull request #3585 from microsoft/hediet/restructure-out-release-dirs
Restructures out and release folders.
2023-02-23 12:00:06 +01:00
Henning Dieterichs
d98d3600ef
Bundles typescriptServices.js with tsc, thus getting rid of -amd.js.
This means that `npm run watch` is enough to run the monaco playground.
2023-02-22 18:08:04 +01:00
Henning Dieterichs
5ccfdf7c02
Restructures out and release folders.
out/amd -> out/languages/amd-tsc
out/release -> out/languages/bundled
release -> out/monaco-editor
2023-02-22 17:39:35 +01:00
Floyd Wang
1e541d68dd
Merge branch 'main' into main 2023-02-22 19:00:25 +08:00
Henning Dieterichs
fb0d6bada1
Merge pull request #3584 from microsoft/hediet/regulatory-butterfly
Fixes task config
2023-02-22 11:48:33 +01:00
Henning Dieterichs
c5c197b145
Fixes task config 2023-02-22 11:39:04 +01:00
Floyd Wang
0b9f3c15d2 Fix 'Hover Provider Example' incorrect Promise syntax 2023-02-22 17:51:51 +08:00
Henning Dieterichs
2f556e3f9d
Merge pull request #3581 from microsoft/hediet/theoretical-vole
Fixes http task
2023-02-21 20:22:49 +01:00
Henning Dieterichs
8cb33ff6cb
Fixes http task 2023-02-21 18:36:04 +01:00
Henning Dieterichs
ce0b1b9788
Merge pull request #3578 from PmcFizz/fix-example
fix: fix hover example
2023-02-21 11:27:55 +01:00
pmc
355c1ec992 fix: fix hover example
Signed-off-by: pmc <pangmengchen@gmail.com>
2023-02-21 16:02:18 +08:00
Henning Dieterichs
6e7b4b68dd
Merge pull request #3575 from microsoft/hediet-patch-1
Update README.md
2023-02-17 11:28:18 +01:00
Henning Dieterichs
c6c3d1db73
Merge pull request #3574 from madcodelife/main
Fix the sample 'model-markers-example' compilation failure
2023-02-17 11:23:22 +01:00
Henning Dieterichs
1d48778c0d
Update README.md
Updates playground link
2023-02-17 11:11:22 +01:00
Floyd Wang
e1906cbd8d Fix the sample 'model-markers-example' compilation failure 2023-02-17 15:52:12 +08:00
Henning Dieterichs
8f9c2ecf4f
Merge pull request #3571 from microsoft/xeric-pig
Asks users to provide a monaco editor playground link when they file …
2023-02-16 19:02:36 +01:00
Henning Dieterichs
91f80cd7e2
Asks users to provide a monaco editor playground link when they file a feature request 2023-02-16 18:48:28 +01:00
Henning Dieterichs
008c3074d0 Fixes #3563 2023-02-16 17:58:31 +01:00
Henning Dieterichs
37a683fd0b
Merge pull request #3561 from microsoft/hediet/positive-monkey
Adds launch config to monaco-editor to debug sources in playground.
2023-02-16 10:25:35 +01:00
Henning Dieterichs
e9202665f4
Adds devcontainer.json (#3562) 2023-02-15 19:41:48 +01:00
Henning Dieterichs
34996e6242
Adds launch config to monaco-editor to debug sources in playground. 2023-02-15 19:10:35 +01:00
Henning Dieterichs
f8bdfcbaba Don't load code when not in sandbox. 2023-02-15 16:54:54 +01:00
Henning Dieterichs
6b1ae1c271 Don't minify monaco-editor dev sources 2023-02-15 16:54:54 +01:00
Henning Dieterichs
07a1f8c89a Fixes commit reveal bug 2023-02-15 16:54:54 +01:00
Henning Dieterichs
af2f1c6510
Merge pull request #3548 from microsoft/hediet/managerial-flyingfish
Removes unneeded dependencies.
2023-02-15 15:41:25 +01:00
Andrew Branch
2afaf9e4b1
Update @types/node 2023-02-13 09:46:50 -08:00
Henning Dieterichs
267724fd65
Merge pull request #3551 from microsoft/hediet/smiling-angelfish
Don't build website for nightly/stable release
2023-02-13 16:48:25 +01:00
Henning Dieterichs
7178908069
Merge pull request #3550 from mathedu4all/main
Update api doc url in README.md
2023-02-13 11:47:17 +01:00
Henning Dieterichs
383b675c0e
Merge pull request #3552 from microsoft/hediet/educational-blackbird
Fixes commit reveal bug
2023-02-13 10:59:55 +01:00
Henning Dieterichs
dd59f90b15
Fixes commit reveal bug 2023-02-13 10:45:37 +01:00
Henning Dieterichs
ca9dc14b49
Don't build website for nightly/stable release 2023-02-13 10:33:43 +01:00
Bao Hongchang
9574fdea36
Update api doc url in README.md 2023-02-12 01:37:26 +08:00
Henning Dieterichs
74aea25605
Merge pull request #3547 from microsoft/hediet/marine-whale
Updates bug report form
2023-02-10 23:11:25 +01:00
Henning Dieterichs
6baab4ba0a
Removes unneeded dependencies. 2023-02-10 23:08:41 +01:00
Henning Dieterichs
1a92dc7d3f
Updates bug report form 2023-02-10 19:50:18 +01:00
Raymond Zhao
5411c5e55f
Merge pull request #3545 from microsoft/dependabot/npm_and_yarn/website/loader-utils-1.4.2
Bump loader-utils from 1.4.0 to 1.4.2 in /website
2023-02-10 09:53:02 -08:00
dependabot[bot]
3bbba87147
Bump loader-utils from 1.4.0 to 1.4.2 in /website
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.0...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-10 14:31:37 +00:00
Henning Dieterichs
c3ba46abc7
Merge pull request #3542 from microsoft/hediet/website-rewrite
Rewrites website
2023-02-10 15:30:53 +01:00
Henning Dieterichs
08439de587
Merge pull request #3543 from microsoft/hediet/rough-grouse
Includes monaco-editor-webpack-plugin in azure pipeline
2023-02-10 13:25:19 +01:00
Henning Dieterichs
1b0a30a121
Includes monaco-editor-webpack-plugin in azure pipeline 2023-02-10 11:35:59 +01:00
Henning Dieterichs
abe6f22474
Fixes CI failure. 2023-02-10 11:32:21 +01:00
Henning Dieterichs
376d2872d1
Don't generate unneeded monaco.d.ts.txt. 2023-02-10 11:02:25 +01:00
Henning Dieterichs
6e7a9ae234
Fixes CI 2023-02-10 11:00:12 +01:00
Henning Dieterichs
10577a0641
Rewrites website 2023-02-10 10:56:53 +01:00
Henning Dieterichs
5eff543347
Merge pull request #3541 from microsoft/hediet/important-slug
Include monaco-editor git commit id in release
2023-02-09 19:06:04 +01:00
Henning Dieterichs
c59c649c28
Include monaco-editor git commit id in release 2023-02-09 18:55:14 +01:00
Henning Dieterichs
30f0acb38b
Merge pull request #3540 from microsoft/hediet/agreed-turtle
Trims commitId
2023-02-09 18:48:58 +01:00
Henning Dieterichs
f9c53f16a5
Trims commitId 2023-02-09 18:42:15 +01:00
Henning Dieterichs
beed7d171a
Merge pull request #3539 from microsoft/hediet/live-heron
Set vscodeCommitId in package.json to track which vscode commit the package has been built from.
2023-02-09 16:21:46 +01:00
Henning Dieterichs
ccb646cca9
Set vscodeCommitId in package.json to track which vscode commit the package has been built from. 2023-02-09 16:13:46 +01:00
Henning Dieterichs
71ac097e61
Merge pull request #3535 from microsoft/hediet/fundamental-python
Update vscodeRef
2023-02-07 17:31:14 +01:00
Henning Dieterichs
65955789cc
Update vscodeRef 2023-02-07 17:10:05 +01:00
Henning Dieterichs
accd0df430
Merge pull request #3531 from microsoft/hediet/bugfix
Fixes bug that entries would be marked as deprecated if kindModifiers is undefined.
2023-02-07 16:50:19 +01:00
Logan Ramos
42fe637bc9
Merge pull request #3533 from microsoft/lramos15/voiceless-roadrunner
Update info needed closer
2023-02-07 08:02:28 -07:00
Logan Ramos
c1ea0cd858
Update info needed closer 2023-02-07 07:33:31 -07:00
Henning Dieterichs
2b2dc65777
Merge pull request #3532 from microsoft/hediet/fair-wren
Prepares 0.35.0 release
2023-02-07 13:25:38 +01:00
Henning Dieterichs
1a9fd8b095
Prepares 0.35.0 release 2023-02-06 14:39:00 +01:00
Henning Dieterichs
4ef8a6f97b
Merge branch 'main' into extend-st-extensions-twincat 2023-02-06 13:49:22 +01:00
Henning Dieterichs
f23f4da42b
Merge pull request #3286 from jeremy-rifkin/jr/fix/3284
Add AVX 512 types to C++ syntax highlighting
2023-02-06 12:33:33 +01:00
Henning Dieterichs
d27f113eaa
Fixes bug that entries would be marked as deprecated if kindModifiers is undefined. 2023-02-06 11:52:43 +01:00
Henning Dieterichs
31b21cfea6
Merge branch 'main' into extend-st-extensions-twincat 2023-02-06 11:41:35 +01:00
Henning Dieterichs
d13eeb93d4
Merge pull request #3529 from microsoft/dependabot/npm_and_yarn/samples/http-cache-semantics-4.1.1
Bump http-cache-semantics from 4.1.0 to 4.1.1 in /samples
2023-02-06 11:39:17 +01:00
dependabot[bot]
6cef5301f4
Bump http-cache-semantics from 4.1.0 to 4.1.1 in /samples
Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kornelski/http-cache-semantics/releases)
- [Commits](https://github.com/kornelski/http-cache-semantics/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: http-cache-semantics
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-04 02:19:12 +00:00
Ladislau Szomoru
b4737b60ed
Engineering - Add tasks to create and push a tag with the version number (#3520)
* Engineering - Add tasks to create and push a tag with the version number

* Renames tag to follow v[VERSION] pattern

---------

Co-authored-by: Henning Dieterichs <hdieterichs@microsoft.com>
2023-01-31 05:27:15 -08:00
Henning Dieterichs
831c6b4dbb
Merge pull request #3232 from nnnnoel/patch-1
fix(mysql/tokenizer): Fix single quoted string escape
2023-01-31 14:12:01 +01:00
Henning Dieterichs
e85d06aa9b
Merge pull request #3446 from Jozebel11/main
Add position styling to playground container to equal 'relative'
2023-01-31 14:11:25 +01:00
Henning Dieterichs
1f0d010563
Merge branch 'main' into patch-1 2023-01-31 12:51:07 +01:00
Henning Dieterichs
41e1ee2d52
Merge pull request #3363 from popsql/feat-psql-15
Add new pgsql 15 functions
2023-01-31 12:50:49 +01:00
Henning Dieterichs
c92637e1f1
Merge pull request #3390 from tr3ysmith/patch-1
Fix possible duplicate of editors in vite sample
2023-01-31 12:50:41 +01:00
Henning Dieterichs
e734dd81f7
Merge pull request #3443 from RubenRBS/main
Recognize \0 as an escape sequence
2023-01-31 12:48:58 +01:00
Henning Dieterichs
5afd16be13
Merge pull request #3392 from mofux/draft/upbeat-pascal
Resolve URIs with special characters correctly
2023-01-31 12:48:45 +01:00
Henning Dieterichs
af396f24af
Merge pull request #3402 from JoyceZhu/main
Update import path for `browser-esm-webpack-small`
2023-01-31 12:48:12 +01:00
Henning Dieterichs
1b52a6708c
Merge pull request #3337 from DetachHead/patch-2
add `satisfies` keyword to typescript
2023-01-31 12:42:38 +01:00
Henning Dieterichs
d368cc48cc
Merge pull request #3382 from kirjs/patch-1
Fix broken link in the changelog
2023-01-31 12:39:58 +01:00
Henning Dieterichs
09a12374d2
Merge pull request #3499 from microsoft/dependabot/npm_and_yarn/json5-2.2.3
Bump json5 from 2.2.1 to 2.2.3
2023-01-31 12:35:07 +01:00
Henning Dieterichs
7c569c1687
Merge pull request #3489 from joecarl/implement-3155
Add setModeConfiguration for monaco.languages.typescript.[typescript|javascript]Defaults
2023-01-31 12:29:07 +01:00
dependabot[bot]
20fa01fe60
Bump json5 from 2.2.1 to 2.2.3
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-31 11:26:53 +00:00
Henning Dieterichs
a88f6fc66e
Merge pull request #3494 from microsoft/dependabot/npm_and_yarn/samples/browser-esm-vite-react/json5-2.2.3
Bump json5 from 2.2.1 to 2.2.3 in /samples/browser-esm-vite-react
2023-01-31 12:25:47 +01:00
Henning Dieterichs
847adeaaa4
Merge pull request #3497 from sekedus/patch-1
add homepage url
2023-01-31 12:07:36 +01:00
Henning Dieterichs
ab65824d1c
Merge pull request #3510 from andrewimcclement/aim/props_as_xml_extension
Add .props & .targets as XML extensions
2023-01-31 11:53:32 +01:00
Henning Dieterichs
960f125d45
Merge pull request #3467 from LeoDog896/kts
Add .kts as a file extension
2023-01-31 11:52:22 +01:00
Henning Dieterichs
0ae7f53a7e
Merge pull request #3466 from LeoDog896/prettier-ignore
Ignore dist from vite/parcel in prettier
2023-01-31 11:51:49 +01:00
Henning Dieterichs
8a65d74a3b
Merge pull request #3462 from microsoft/hediet-patch-1
Update MAINTAINING.md
2023-01-31 11:50:45 +01:00
Henning Dieterichs
4d819a8cf8
Merge branch 'main' into hediet-patch-1 2023-01-31 11:28:11 +01:00
dependabot[bot]
629021b16b
Bump json5 from 2.2.1 to 2.2.3 in /samples/browser-esm-vite-react
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-31 10:20:46 +00:00
Henning Dieterichs
4897b74d6d
Merge pull request #3493 from microsoft/dependabot/npm_and_yarn/webpack-plugin/json5-2.2.3
Bump json5 from 2.2.1 to 2.2.3 in /webpack-plugin
2023-01-31 11:18:28 +01:00
Henning Dieterichs
81d9c401a5
Merge pull request #3495 from microsoft/dependabot/npm_and_yarn/samples/browser-esm-webpack-typescript-react/json5-2.2.3
Bump json5 from 2.2.1 to 2.2.3 in /samples/browser-esm-webpack-typescript-react
2023-01-31 11:18:19 +01:00
Henning Dieterichs
476a5e51e4
Merge pull request #3496 from microsoft/dependabot/npm_and_yarn/samples/json5-2.2.3
Bump json5 from 2.2.1 to 2.2.3 in /samples
2023-01-31 11:18:10 +01:00
andrewimcclement
ee30f4e1c5
Include .targets as an XML extension. 2023-01-23 11:16:26 +00:00
andrewimcclement
9cba1bbd3a
Include .props as an XML extension. 2023-01-23 11:12:42 +00:00
Trey Smith
a0a88bd7c6
Merge branch 'main' into patch-1 2023-01-18 11:44:30 -05:00
Trey Smith
8d313a9472 run prettier 2023-01-18 11:13:40 -05:00
Sekedus
55238ee123
add homepage url 2023-01-09 13:19:43 +08:00
dependabot[bot]
141570e7a6
Bump json5 from 2.2.1 to 2.2.3 in /samples
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-09 03:29:16 +00:00
dependabot[bot]
3f380e24a0
Bump json5 in /samples/browser-esm-webpack-typescript-react
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-08 13:53:03 +00:00
dependabot[bot]
1119c51370
Bump json5 from 2.2.1 to 2.2.3 in /webpack-plugin
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-08 13:53:02 +00:00
José Carlos HR
4532feefb7 implemented setModeConfiguration for typescriptDefaults and javascriptDefaults 2023-01-05 22:53:30 +00:00
Remco Haszing
681b38140f
Export custom TypeScript worker variables
A custom TypeScript worker factory function gets passed
`TypeScriptWorker`, `ts`, and `libFileMap`. It also exports `create`
using ESM. However, this can’t be used, because the custom worker
factory is only called if a custom worker path is defined.

Exposing these members, means a worker can be defined using ESM.
2023-01-05 16:52:45 +01:00
Joseph Hardwicke
9e0662ad3e
Merge branch 'main' into main 2023-01-04 15:20:04 +00:00
Rubén Rincón Blanco
bc083f4db3
Merge branch 'main' into main 2022-12-18 17:45:27 +01:00
Tristan F
0a967ad241 Add .kts as a file extension 2022-12-17 15:11:57 -05:00
Tristan F
85b11871a4 Ignore dist from vite/parcel in prettier 2022-12-17 13:58:48 -05:00
Thomas Zilz
c7ea3cf4c9
Merge branch 'main' into draft/upbeat-pascal 2022-12-15 19:24:20 +01:00
Henning Dieterichs
212670ceb4
Merge pull request #3453 from jonatanklosko/jk-elixir-improvements
Update Elixir tokenizer
2022-12-14 13:31:52 +01:00
Henning Dieterichs
02acc28d0e
Merge pull request #3461 from microsoft/dependabot/npm_and_yarn/samples/electron-19.1.8
Bump electron from 19.1.6 to 19.1.8 in /samples
2022-12-14 13:31:36 +01:00
Jonatan Kłosko
b70454a6b9 Tokenizer single-quote docstrings as documentation comments 2022-12-14 00:37:23 +01:00
Jonatan Kłosko
6d9c7ea306 Fix tokenization of bitstrings without spacing 2022-12-14 00:37:23 +01:00
Henning Dieterichs
7261b03e9d
Update MAINTAINING.md 2022-12-13 17:45:59 +01:00
dependabot[bot]
b5df92554d
Bump electron from 19.1.6 to 19.1.8 in /samples
Bumps [electron](https://github.com/electron/electron) from 19.1.6 to 19.1.8.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v19.1.6...v19.1.8)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-13 16:40:24 +00:00
Henning Dieterichs
366b9c38ff Fixes playwright setup issues. 2022-12-13 17:39:33 +01:00
Henning Dieterichs
eac891f9bf Fixes CI 2022-12-13 17:39:33 +01:00
Megan Rogge
90dd955ff5
Merge pull request #3348 from rcjsuen/fix-color-example
Fix the color provider's columns
2022-12-13 10:27:21 -06:00
jozebel11
98674ca321 Add position stylingto playground container to equal 'relative' 2022-12-02 10:50:32 +00:00
RubenRBS
d95ca35e28
Recognize \0 as an escape sequence
Closes microsoft/monaco-editor/issues/3439
2022-11-30 21:19:00 +01:00
Alexandru Dima
415b279fa0
update electron (#3431) 2022-11-22 10:19:03 +01:00
Alexandru Dima
030f5f59f1
update deps (#3430) 2022-11-22 09:47:32 +01:00
Logan Ramos
e4c45ba467
Merge pull request #3429 from microsoft/lramos15/removePrChat-auto
Remove PR Chat
2022-11-21 16:06:18 -05:00
Logan Ramos
d493d9fd8c Remove PR Chat 2022-11-21 15:38:27 -05:00
Henning Dieterichs
a472aae39f
Merge pull request #3428 from microsoft/hediet/nightly-always-true
Set `always` to true to trigger a build even when there are no new commits.
2022-11-21 12:50:40 +01:00
Henning Dieterichs
8f8b47432b
Set always to true to trigger a build even when there are no new commits.
This is because nightly is build from the latest vscode@main.
2022-11-21 12:31:18 +01:00
dependabot[bot]
ed05245a03
Bump loader-utils from 2.0.2 to 2.0.4 (#3416)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 to 2.0.4.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.2...v2.0.4)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-21 09:47:33 +00:00
dependabot[bot]
f53d7f1b98
Bump loader-utils from 2.0.3 to 2.0.4 in /samples (#3424)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.3 to 2.0.4.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.3...v2.0.4)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-21 09:40:20 +00:00
dependabot[bot]
7152c5ed09
Bump loader-utils in /samples/browser-esm-webpack-typescript-react (#3415)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 to 2.0.4.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.2...v2.0.4)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-21 09:32:19 +00:00
dependabot[bot]
d610648458
Bump loader-utils from 2.0.3 to 2.0.4 in /webpack-plugin (#3425)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.3 to 2.0.4.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.3...v2.0.4)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-21 10:24:18 +01:00
Henning Dieterichs
d4c5d185a5
Merge pull request #3422 from microsoft/hediet/pure-junglefowl
Patch monaco-editor-core version
2022-11-16 16:23:53 +01:00
Henning Dieterichs
78bfe772e2
Patch monaco-editor-core version 2022-11-16 15:37:02 +01:00
Henning Dieterichs
d4aa3b8f35
Merge pull request #3421 from microsoft/hediet/pure-junglefowl
Fixes version issue.
2022-11-16 14:39:15 +01:00
Henning Dieterichs
65d13756cf
Fixes version issue. 2022-11-16 14:32:25 +01:00
Henning Dieterichs
41595126ea
Merge pull request #3420 from microsoft/hediet/pure-junglefowl
Adds nightly release
2022-11-16 14:01:14 +01:00
Henning Dieterichs
1160858c06
Adds nightly release 2022-11-16 13:43:43 +01:00
dependabot[bot]
b1eace9857
Bump loader-utils in /samples/browser-esm-webpack-typescript-react (#3400)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.3/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.2...v2.0.3)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-15 11:37:51 +01:00
dependabot[bot]
1a70afe692
Bump loader-utils from 2.0.2 to 2.0.3 in /samples (#3401)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.3/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.2...v2.0.3)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-15 11:37:35 +01:00
dependabot[bot]
a02ad6c9a5
Bump loader-utils from 2.0.2 to 2.0.3 in /webpack-plugin (#3399)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.3/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.2...v2.0.3)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-15 11:37:16 +01:00
Henning Dieterichs
40f82f21aa
Merge pull request #3410 from microsoft/hediet/pure-junglefowl
Migrates github publish action to azure pipeline.
2022-11-14 20:49:48 +01:00
Henning Dieterichs
1dc513ee38
Migrates github publish action to azure pipeline. 2022-11-14 16:37:26 +01:00
Thomas Zilz
22f24b3dde
Merge branch 'main' into draft/upbeat-pascal 2022-11-09 18:48:52 +01:00
Joyce Zhu
12a978900a
Update import path for browser-esm-webpack-small 2022-11-08 23:51:44 -05:00
Ladislau Szomoru
c49fcab8f0
Merge pull request #3398 from microsoft/hediet/pure-junglefowl
Adds pipeline.yml
2022-11-08 15:54:59 +01:00
Henning Dieterichs
6fe0852863
Adds pipeline.yml 2022-11-08 15:44:08 +01:00
Thomas Zilz
0b59e74a02 Resolve URIs with special characters correctly 2022-11-03 15:29:19 +00:00
Nathan Shively-Sanders
0f8ea46080
Update node types for TS 4.9 RC (#3389)
TS 4.9 RC updates AbortSignal again, and requires a matching upgrade to
`@types/node`. Followup to #3334. Required to compile against TS 4.9 RC
or Typescript nightly builds.
2022-11-02 09:12:50 +01:00
Trey Smith
1aa33634de
Fix possible duplicate of editors in vite sample
In testing the vite sample, I could see duplicate editors created on the screen. From what I can tell, this was due to the if statement checking if editor was null in the `useEffect`. However, the editor variable would not be updated on the first re-render causing a double instance. I adjusted the editor check to be inside the `state dispatch` since it would have the most current information. This seems to have fixed the issue on my end.
2022-11-01 10:29:21 -04:00
Kirill Cherkashin
0d94323b00
Fix broken link in the changelog 2022-10-24 16:16:24 -04:00
Alexandru Dima
bc9e8523b5
Run the publish workflow earlier in the day (#3381) 2022-10-24 12:32:23 +02:00
Alexandru Dima
9375d4ba65
Fix publishing CI (#3375) 2022-10-19 08:58:55 +00:00
Alexandru Dima
6e995f7503
Merge pull request #3356 from jakebailey/redo-require-removal
Remove regex replacements from import-typescript
2022-10-18 21:05:19 +02:00
Alexandru Dima
30a85dbf36
Merge branch 'main' into redo-require-removal 2022-10-18 19:59:21 +02:00
Alexandru Dima
8fc2ca540c
Add a smoketest for packaging with parcel (#3371)
* Add a smoketest for packaging with parcel

* Prevent parcel from bundling shims for `process` or `buffer`
2022-10-18 19:49:55 +02:00
Alexandru Dima
2b3d8516c6
Bring smoketest scripts together (#3370) 2022-10-18 14:20:09 +02:00
Alexandru Dima
5d653b2569
Smoketest improvements: (#3369)
- Add a smoketest for packaging with vite
- Re-enable the smoketest for packaging with esbuild
- Re-enable the smoketest on webkit
2022-10-18 10:26:38 +02:00
Alexandru Dima
a3d4b960c5
Fix unit tests (#3368) 2022-10-17 12:26:21 -07:00
Alexandru Dima
547870b688
Prepare for 0.34.1 (#3367) 2022-10-17 09:28:11 -07:00
Matthew Peveler
d9d70cd349 Add new pgsql 15 functions
Signed-off-by: Matthew Peveler <matt@popsql.com>
2022-10-14 11:16:08 -04:00
Jake Bailey
ddbd09d044 Also remove 'this' regex 2022-10-11 11:02:24 -07:00
Jake Bailey
416b686d69 Remove regex replacements from import-typescript 2022-10-10 21:51:43 -07:00
Jake Bailey
d63c89d832 Use typescript.js as source for typescriptServices 2022-10-10 21:50:50 -07:00
PhilippLe
790b6e743d
Merge branch 'main' into extend-st-extensions-twincat 2022-10-05 12:55:18 +02:00
dependabot[bot]
22698f2c1b
Bump vite from 2.8.6 to 2.9.13 in /samples/browser-esm-vite-react (#3274)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.8.6 to 2.9.13.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v2.9.13/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexandru Dima <alexdima@microsoft.com>
2022-10-04 17:18:06 +02:00
Remy Suen
54a4e45a10 Fix the color provider's columns
Fix the example so that the document colors' ranges encompass the entire
word.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
2022-10-03 12:12:01 -04:00
PhilippLe
a31ea7d6c5
Merge branch 'main' into extend-st-extensions-twincat 2022-09-30 19:57:29 +02:00
Andrew Branch
ab889ff2cc
Update @types/node (#3334) 2022-09-30 15:32:54 +02:00
Alexandru Dima
1575bc8ae9
Improve smoke tests resilience towards slow loading of modes (#3342) 2022-09-30 09:29:53 -04:00
Alexandru Dima
9d4574b10b
Handle case when npm would return an error code (#3340) 2022-09-29 12:53:09 +00:00
DetachHead
50d14789db
add satisfies keyword to typescript 2022-09-29 12:10:32 +10:00
BECKHOFF\PhilippLe
b3883c13af add implements keyword 2022-09-15 15:50:49 +02:00
BECKHOFF\PhilippLe
68b964addf add twincat file support for st 2022-09-15 15:49:35 +02:00
Jeremy Rifkin
9d3404c134
Added AVX 512 types to C++ syntax highlighting 2022-09-02 16:30:59 -04:00
Noel Kim (김민혁)
0ddaffa092
Add CommonJS, ESM extension for TS 2022-08-23 21:04:37 +09:00
Dan Boorstein
7bfc150164
add perl module (.pm) extension
The .pm extension is perl's module or library extension by convention.
2022-08-19 17:27:35 -08:00
Alexandru Dima
35eb0efbc0
Switch to yarn which supports overriding resolutions to address vulnerabilities in dependencies of dependencies (#3242)
* Switch to `yarn` which supports overriding resolutions to address vulnerabilities in dependencies of dependencies

* Go back to npm and use `overrides`
2022-08-12 11:31:04 -04:00
Noel Kim (김민혁)
6223b3b279
Update mysql.ts 2022-08-05 17:03:51 +09:00
Noel Kim (김민혁)
fe0d5f5891
Update mysql.ts 2022-08-05 17:00:51 +09:00
Noel Kim (김민혁)
963ea1edeb
Update mysql.ts 2022-08-05 17:00:30 +09:00
Noel Kim (김민혁)
17daab82e0
Fix single quoted string escape 2022-08-05 16:19:32 +09:00
Henning Dieterichs
9d278685b0
Merge pull request #3230 from microsoft/prepare-release-0.34.0
Update changelog and version.
2022-08-04 16:36:26 +02:00
Henning Dieterichs
5c5bdc5c18
Update changelog and version. 2022-08-04 16:32:46 +02:00
Henning Dieterichs
dddcfabb9d
Merge pull request #3228 from microsoft/hediet/update-link
Update MAINTAINING.md
2022-08-03 18:35:47 +02:00
Henning Dieterichs
9d3b549aa6
Update MAINTAINING.md 2022-08-03 17:56:07 +02:00
Henning Dieterichs
9b2e90e2d9
Merge pull request #3227 from microsoft/hediet/workerManager
Refactors workerManager
2022-08-03 17:38:32 +02:00
Henning Dieterichs
4c5552d6a5
Refactors workerManager 2022-08-03 17:34:31 +02:00
Henning Dieterichs
913ae66ad8
Merge pull request #3057 from bsorrentino/main
Fix issue #2295 - Models with "@" in their name do not resolve as dependencies
2022-08-03 17:31:50 +02:00
Henning Dieterichs
acc3d9a8d0
Merge pull request #3226 from luisscholl-at-software-ag/html-syntax-highlighting-script-type-module
Add script type module syntax highlighting to html
2022-08-03 17:23:49 +02:00
Henning Dieterichs
f90ab429ab
Merge pull request #3052 from mhsdesign/patch-1
[DOCS] IEditorOptions.automaticLayout uses ResizeObserver 3051
2022-08-03 14:18:43 +02:00
Henning Dieterichs
12d4d82bdf
Merge pull request #3111 from soof-golan/soof/python-3.10-support
Add Python 3.10 keyword support
2022-08-03 14:18:15 +02:00
Henning Dieterichs
58100e52b8
Merge pull request #3137 from remcohaszing/fix-monaco-environment-types
Fix MonacoEnvironment types
2022-08-03 14:06:34 +02:00
Henning Dieterichs
16d120645d
Merge branch 'main' into fix-monaco-environment-types 2022-08-03 14:03:09 +02:00
Henning Dieterichs
5b7a2eff9d
Merge pull request #3214 from supersonictw/patch-1
Fix menu link in integrate-esm.md
2022-08-03 13:51:44 +02:00
Henning Dieterichs
5be41f8e80
Merge branch 'main' into patch-1 2022-08-03 13:47:59 +02:00
Henning Dieterichs
37703ae1a1
Merge pull request #3222 from anjbur/anburton/update-keywords
Update Q# keywords
2022-08-03 13:39:37 +02:00
Angela Burton
519407a929
Update keywords 2022-08-01 11:30:08 -07:00
SuperSonic
d83a306b9b
Fix menu link in integrate-esm.md 2022-07-23 11:55:53 +08:00
Henning Dieterichs
f57624cdc1
Merge pull request #3213 from microsoft/hediet/inbox-queue
Add inbox queue to MAINTAINING.md
2022-07-22 17:36:07 +02:00
Henning Dieterichs
d943d7040d
Merge branch 'main' into mdx 2022-07-22 15:18:11 +02:00
Henning Dieterichs
b15654dd7a
Formats document. 2022-07-22 15:17:17 +02:00
Henning Dieterichs
80390ce4f0
Add inbox queue to MAINTAINING.md 2022-07-22 14:35:20 +02:00
Alexandru Dima
8830766c43
Merge pull request #2905 from bummoblizard/main
Downgrade css-loader to 5.2.7 in /samples
2022-07-22 14:35:19 +02:00
Alex Dima
8c99f89f93
also update package-lock.json 2022-07-22 14:23:19 +02:00
Henning Dieterichs
19da7ede28
Merge branch 'main' into mdx 2022-07-22 13:45:31 +02:00
Johannes Rieken
39a8b976ff
Merge pull request #3210 from remcohaszing/fix-contributing-instructions
Document samples are needed when adding a language
2022-07-22 11:44:31 +02:00
Remco Haszing
d4ea5f53f1
Mark ( ) as auto closing pair in MDX
This is nice for writing content.
2022-07-22 11:07:26 +02:00
Remco Haszing
dbf74268d3
Add < > to auto closing pairs
They represent JSX elements.
2022-07-22 11:06:21 +02:00
Henning Dieterichs
62aa423a2b
Merge pull request #3211 from microsoft/pr-3102
Add config and tokenizer for query language Cypher
2022-07-21 15:24:00 +02:00
Henning Dieterichs
475c42daa2
Merge branch 'main' into fix-contributing-instructions 2022-07-21 13:52:20 +02:00
Henning Dieterichs
abe52ad13b
Merge branch 'main' into soof/python-3.10-support 2022-07-21 13:51:47 +02:00
Henning Dieterichs
68ac1dda1b
Merge pull request #3133 from vanillajonathan/patch-1
Format code
2022-07-21 13:51:37 +02:00
Alex Dima
45175a565a
Add cypher sample 2022-07-21 13:47:50 +02:00
Alex Dima
c82fd2cd2c
Merge remote-tracking branch 'origin/main' into pr-3102 2022-07-21 13:41:34 +02:00
Alexandru Dima
6a9cec5add
Merge pull request #3138 from popsql/test-mysql-duplicate
Remove duplicate testcases for mysql
2022-07-21 13:36:23 +02:00
Alexandru Dima
12f045c793
Merge pull request #3171 from alexander-zw/patch-1
[webpack readme] Add how to get languages/features
2022-07-21 13:36:02 +02:00
Alexandru Dima
005d096784
Merge pull request #2963 from rcjsuen/model-markers-example
Create example for model markers
2022-07-21 13:34:18 +02:00
Remco Haszing
fbb29873f3
Document samples are needed when adding a language 2022-07-21 13:14:04 +02:00
Henning Dieterichs
936376af3d
Merge branch 'main' into mdx 2022-07-21 13:06:37 +02:00
Henning Dieterichs
22d9e38150
Merge branch 'main' into fix-monaco-environment-types 2022-07-21 12:48:34 +02:00
Jonathan
a23163a1bb
Merge branch 'main' into patch-1 2022-07-21 12:03:31 +02:00
Henning Dieterichs
75927c6de7
Merge branch 'main' into main 2022-07-21 11:31:18 +02:00
Henning Dieterichs
cd5cb50747
Merge branch 'main' into model-markers-example 2022-07-21 11:21:36 +02:00
Henning Dieterichs
aa4b5873ea
Merge pull request #3208 from microsoft/dependabot/npm_and_yarn/samples/browser-esm-parcel/terser-5.14.2 2022-07-21 11:20:14 +02:00
Henning Dieterichs
11aba068ce
Merge pull request #3207 from microsoft/dependabot/npm_and_yarn/samples/browser-esm-webpack-typescript-react/terser-5.14.2 2022-07-21 11:20:11 +02:00
Henning Dieterichs
f3f6b743be
Merge pull request #3149 from microsoft/dependabot/npm_and_yarn/jpeg-js-0.4.4
Bump jpeg-js from 0.4.3 to 0.4.4
2022-07-21 11:20:07 +02:00
Henning Dieterichs
d57a1c5d66
Merge pull request #3209 from microsoft/dependabot/npm_and_yarn/webpack-plugin/terser-5.14.2 2022-07-21 11:19:59 +02:00
Henning Dieterichs
535c89291b
Merge pull request #3148 from microsoft/dependabot/npm_and_yarn/samples/electron-17.2.0
Bump electron from 17.0.0 to 17.2.0 in /samples
2022-07-21 11:19:43 +02:00
dependabot[bot]
9bc4fa9b27
Bump terser from 5.12.1 to 5.14.2 in /webpack-plugin
Bumps [terser](https://github.com/terser/terser) from 5.12.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 12:39:54 +00:00
dependabot[bot]
442439f87f
Bump terser from 5.12.1 to 5.14.2 in /samples/browser-esm-parcel
Bumps [terser](https://github.com/terser/terser) from 5.12.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 12:39:41 +00:00
dependabot[bot]
25ad26c14b
Bump terser in /samples/browser-esm-webpack-typescript-react
Bumps [terser](https://github.com/terser/terser) from 5.12.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 12:39:39 +00:00
Henning Dieterichs
faaf58c790
Merge pull request #3205 from microsoft/dependabot/npm_and_yarn/samples/terser-5.14.2 2022-07-20 14:39:03 +02:00
Henning Dieterichs
788cc9f930
Merge pull request #3204 from microsoft/dependabot/npm_and_yarn/terser-5.14.2 2022-07-20 14:38:52 +02:00
Henning Dieterichs
1ccc3a650d
Merge pull request #3206 from microsoft/hediet/update-monaco-editor-core
Updates monaco-editor-core & updates changelog.
2022-07-20 14:34:50 +02:00
Henning Dieterichs
c6e59c5f43
Updates monaco-editor-core & updates changelog. 2022-07-20 14:30:49 +02:00
dependabot[bot]
81b29ba9ef
Bump terser from 5.10.0 to 5.14.2 in /samples
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 12:25:28 +00:00
dependabot[bot]
b0923a0725
Bump terser from 5.10.0 to 5.14.2
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 12:14:28 +00:00
Henning Dieterichs
e2df88093a
Merge pull request #3199 from microsoft/hediet/update-vscode
Updates vscode version
2022-07-19 16:51:18 +02:00
Henning Dieterichs
b27bccd123
Merge pull request #3200 from microsoft/hediet/template-bug-reproduction-steps
Tweak template to include reproduction steps
2022-07-19 16:11:05 +02:00
Henning Dieterichs
35b3ba2a30
Tweak template to include reproduction steps 2022-07-19 16:06:43 +02:00
Henning Dieterichs
74e568b1ee
Updates vscode version 2022-07-19 13:16:01 +02:00
Alexander Wu
7b152aaad0
[webpack readme] Add how to get languages/features
I had to do a lot of digging in the source code just to know what strings I can use in the features list. Adding this allows users to find out for themselves. I considered adding the list here but I don't know if it might change depending on your build.
2022-06-30 15:27:05 -07:00
dependabot[bot]
73f73a59e8
Bump jpeg-js from 0.4.3 to 0.4.4
Bumps [jpeg-js](https://github.com/eugeneware/jpeg-js) from 0.4.3 to 0.4.4.
- [Release notes](https://github.com/eugeneware/jpeg-js/releases)
- [Commits](https://github.com/eugeneware/jpeg-js/compare/v0.4.3...v0.4.4)

---
updated-dependencies:
- dependency-name: jpeg-js
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-17 03:26:50 +00:00
dependabot[bot]
8c5cfebcc8
Bump electron from 17.0.0 to 17.2.0 in /samples
Bumps [electron](https://github.com/electron/electron) from 17.0.0 to 17.2.0.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v17.0.0...v17.2.0)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-16 23:16:40 +00:00
Matthew Peveler
a3a0153739
Remove duplicate testcases for mysql 2022-06-09 16:39:32 +00:00
Remco Haszing
d1b144b37b
Fix MonacoEnvironment types
Some attempts were made in the past to fix it, but they don’t actually
work, as they don’t override the global Window interface.

Fixes #2958
2022-06-09 14:08:39 +02:00
Jonathan
0ccda7ac4d
Format code 2022-06-07 14:21:13 +02:00
Logan Ramos
a5298e13bb
Merge pull request #3125 from microsoft/lramos15/prChat
Add pr chat bot
2022-06-01 10:20:19 -04:00
Alex Dima
1afc12a341
format yml 2022-06-01 15:17:22 +02:00
Logan Ramos
dd2db387ab
Add pr chat bot 2022-06-01 09:09:52 -04:00
soof-golan
20a1e0750f Add support for keywords from python 3.10
* Update python REPL comment to include the actual `keyword` import
* Add support for `match`, `case`, and `_` soft keywords
2022-05-19 14:45:57 +03:00
Remco Haszing
7755d67b8b
Configure auto closing pairs and on enter rules 2022-05-13 16:32:48 +02:00
Remco Haszing
92a1dad12d
Remove mdx indented code blocks
They aren’t supported.
2022-05-13 16:31:24 +02:00
Remco Haszing
ce7f3259c1
Document samples are needed when adding a language 2022-05-12 10:57:13 +02:00
Remco Haszing
9e1bd604de
Add website mdx sample 2022-05-12 10:57:05 +02:00
Remco Haszing
5e5600bd44
Register mdx contribution 2022-05-12 10:47:28 +02:00
Toni Lastre
0acf88b6b5 Add Monarch config and tokenizer for query language Cypher 2022-05-11 11:44:26 +02:00
Remco Haszing
e87ef8ef11
Update mdx language definition 2022-05-06 18:25:31 +02:00
Remco Haszing
7d2065d55d
Add initial mdx language 2022-05-05 15:48:53 +02:00
Alexandru Dima
ab869e8469
Merge pull request #3094 from microsoft/alex/varlet
`var` -> `let`
2022-05-04 11:13:52 +02:00
Alex Dima
3b048a990b
var -> let 2022-05-04 11:12:33 +02:00
Alex Dima
e36a41dcc4
var -> const 2022-05-04 11:11:10 +02:00
Alexandru Dima
54d5450200
Merge pull request #3089 from microsoft/dependabot/npm_and_yarn/samples/async-2.6.4
Bump async from 2.6.3 to 2.6.4 in /samples
2022-05-03 17:42:55 +02:00
dependabot[bot]
85c81a046c
Bump async from 2.6.3 to 2.6.4 in /samples
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-29 16:32:00 +00:00
Martin Aeschlimann
3a91ce8411
Merge pull request #3078 from Yash-Singh1/main
feat: add fr units for css grid
2022-04-25 09:49:11 +02:00
Yash-Singh1
752a5d56ab feat: add fr units for css grid 2022-04-19 18:15:02 -07:00
Henning Dieterichs
d987b87d6d
Merge pull request #3066 from DetachHead/patch-1
add `out` keyword to typescript
2022-04-11 16:38:35 +02:00
DetachHead
3e936d0e3f
add out keyword to typescript 2022-04-10 01:52:16 +10:00
Henning Dieterichs
e57709f4d9
Merge pull request #3058 from remcohaszing/yaml-indent-action
Add yaml indent action
2022-04-05 11:11:24 +02:00
Remco Haszing
8e34418a64
Add yaml indent action
If a line ends with `:` and a user presses Enter, they are probably
defining an object, which requires indentation.

This rule is taken from `monaco-yaml`, but I intend to remove basic
language support there, since that’s already part of `monaco-editor`.
2022-04-05 11:02:00 +02:00
bsorrentino
675844ac7e fix issue #2295
component: TypeScriptWorker (tsWorker.ts)
- Enable 'skipEncoding' flag on Uri.toString invokation on 
getScriptFileNames() method
- Compare 'fileName' argument provided to _getModel() method both with 
Uri encoded and not
2022-04-04 18:26:12 +02:00
Henning Dieterichs
55edb3fc58
Merge pull request #3022 from CodinGame/fix-missing-changelog-entries-v0.33
Add missing changelog entries
2022-04-04 10:38:00 +02:00
Martin Aeschlimann
2c5c9636a2
update css, new formatting options 2022-04-01 18:07:52 +02:00
Marc Henry Schultz
b22235db9f
[DOCS] IEditorOptions.automaticLayout uses ResizeObserver 3051
fixes: #3051
2022-04-01 16:59:48 +02:00
Martin Aeschlimann
290a62d727
adopt css formatter 2022-03-31 15:12:17 +02:00
Henning Dieterichs
d001070938
Merge pull request #3048 from yoichiro/improve-instruction-for-webpack-plugin
Improve the instruction for each Webpack version.
2022-03-31 12:51:35 +02:00
Yoichiro Tanaka
9f5f254d2e Improve the instruction for each Webpack version. 2022-03-31 14:00:45 +09:00
Raymond Zhao
d3a5ccae5e
Merge pull request #3047 from microsoft/dependabot/npm_and_yarn/samples/minimist-1.2.6
Bump minimist from 1.2.5 to 1.2.6 in /samples
2022-03-30 08:09:44 -07:00
dependabot[bot]
ecc47da2a3
Bump minimist from 1.2.5 to 1.2.6 in /samples
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-30 09:31:28 +00:00
Alexandru Dima
f868933d09
Merge pull request #3045 from microsoft/alex/update-npm-deps
update npm deps
2022-03-30 10:54:00 +02:00
Alex Dima
4090ff3db2
update to node v16 2022-03-29 16:18:16 +02:00
Alex Dima
77e4e30364
update node-forge 2022-03-29 12:33:37 +02:00
Alex Dima
ab386ca3d6
update all deps 2022-03-29 12:31:07 +02:00
Alex Dima
0a5975d046
Add manual test for #3011 2022-03-29 12:23:40 +02:00
Henning Dieterichs
ca2692a0dc
Merge pull request #3023 from andrewbranch/update-03152022
Add new required methods to LanguageServiceHost
2022-03-16 11:55:35 +01:00
Andrew Branch
9119a5bd3d Add new required methods to LanguageServiceHost 2022-03-15 09:40:01 -07:00
Loïc Mangeonjean
567bdb5e1e Add missing changelog entries 2022-03-14 14:36:07 +01:00
Henning Dieterichs
4b1abad427
Includes "thnak you" section in changelog. 2022-03-11 14:55:58 +01:00
Henning Dieterichs
5efb9d63ec
Prepare for 0.33.0 2022-03-11 14:52:56 +01:00
Henning Dieterichs
db5039b702
Merge pull request #3001 from andrewbranch/upgrade-ts-node
Upgrade ts-node
2022-03-02 09:50:21 +01:00
Andrew Branch
5e45f78478
Upgrade ts-node 2022-03-01 10:13:37 -08:00
Henning Dieterichs
18bf1f4658
Fixes prettier issue. 2022-02-25 10:42:38 +01:00
Henning Dieterichs
72b7b1ea3b
Merge pull request #2991 from Dan1ve/patch-using-vite-code
Make Vite sample code Firefox compatible
2022-02-24 13:55:07 +01:00
Daniel Veihelmann
3717a26fcb
FIx formatting 2022-02-23 19:36:48 +01:00
Daniel Veihelmann
f0c47e6e2d
Make Vite sample code Firefox compatible
The current sample code for "Using Vite" works fine in Chrome, but causes errors in Firefox: 

`Error: import declarations may only appear at top level of a module`

In addition to many errors logged to the console, this also causes subtle bugs in Firefox (e.g. the highlighting in the diff editor didn't work).

The problem appears to be that Firefox requires an explicit `type: module` for the web workers.

The revised implementation for Vite takes this into account and has been tested successfully in Chrome and Firefox.
2022-02-23 19:30:08 +01:00
Luis Scholl
83cb8faa8c Add script type module syntax highlighting to html 2022-02-16 10:16:22 +01:00
Alexandru Dima
7826dee4ea
Merge pull request #2970 from microsoft/dependabot/npm_and_yarn/samples/follow-redirects-1.14.8
Bump follow-redirects from 1.14.7 to 1.14.8 in /samples
2022-02-14 12:37:58 +01:00
dependabot[bot]
2905d317af
Bump follow-redirects from 1.14.7 to 1.14.8 in /samples
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-14 11:13:46 +00:00
Henning Dieterichs
0fc0cfdab6
Merge pull request #2971 from microsoft/dependabot/npm_and_yarn/samples/browser-esm-parcel/follow-redirects-1.14.8
Bump follow-redirects from 1.14.7 to 1.14.8 in /samples/browser-esm-parcel
2022-02-14 12:12:42 +01:00
dependabot[bot]
3668ca8977
Bump follow-redirects in /samples/browser-esm-parcel
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-14 10:34:29 +00:00
Henning Dieterichs
36f7110813
Adopts breaking change in nightly monaco-editor-core. 2022-02-14 11:32:52 +01:00
Remy Suen
661b83d7b0 Create example for model markers
This example demonstrates how to listen to model change events so that
the content of the editor can be validated. Any content that is deemed
invalid can be flagged with a model marker.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
2022-02-11 16:20:38 -05:00
Henning Dieterichs
0d48f9fec8
Merge pull request #2957 from philipturner/patch-2
Add `@noDerivative` modifier to Swift
2022-02-11 10:27:05 +01:00
Philip Turner
c03eee3f55
Update swift.ts 2022-02-10 06:30:18 -05:00
Alex Dima
978cfb4258
Remove esbuild smoke test check for now 2022-02-07 09:17:15 +01:00
Alexandru Dima
726cbbecbc
Merge pull request #2942 from microsoft/alex/smoke-test-esbuild
Add smoke test for packaging using esbuild
2022-02-05 00:59:51 +01:00
Alex Dima
208f9218f9
Add smoketest for esbuild packaging 2022-02-05 00:55:28 +01:00
Alex Dima
c0b99e4785
Remove CommonJS export pattern 2022-02-05 00:48:01 +01:00
Alex Dima
53feef5cf5
Update to latest 2022-02-05 00:25:05 +01:00
Alex Dima
eed1e1cf27
Fix script for esbuild sample which cannot import .ts files 2022-02-05 00:23:00 +01:00
Alex Dima
29a2735168
Prepare for 0.32.1 2022-02-04 23:59:14 +01:00
Alex Dima
aa75ddccbb
CRLF -> LF 2022-02-04 14:02:37 +01:00
Alexandru Dima
d7ac67dbf8
Merge pull request #2939 from microsoft/alex/update-dependencies
Update dependencies
2022-02-03 23:02:10 +01:00
Alex Dima
0bc9ebb914
Fix compilation problem 2022-02-03 22:47:10 +01:00
Alex Dima
d8417a5576
Update dependencies 2022-02-03 22:43:53 +01:00
Henning Dieterichs
e1570658ec
Update changelog to prepare release of 0.32.0 2022-02-03 17:00:40 +01:00
Henning Dieterichs
46f20da8c2
Update vscode commit 2022-02-03 17:00:22 +01:00
Henning Dieterichs
a64cfd6ebb
Updates dependencies 2022-02-03 16:55:33 +01:00
Henning Dieterichs
3e9f3304ce
Run import typescript 2022-02-03 16:54:15 +01:00
Henning Dieterichs
50be61163a
Updates typescript dependency 2022-02-03 16:53:49 +01:00
Henning Dieterichs
fa79ad755d
Merge pull request #2929 from ZusorCode/cjs-extension-javascript
Add .cjs extension for javascript files
2022-02-03 15:59:36 +01:00
Henning Dieterichs
c9be1b35fb
Merge pull request #2937 from microsoft/hediet/typify-build
Convert build scripts to JavaScript.
2022-02-03 15:59:14 +01:00
Henning Dieterichs
4bf3b49c41
Convert build scripts to JavaScript. 2022-02-03 15:25:24 +01:00
Henning Dieterichs
a903ac1afc
Fixes publish github action. 2022-02-03 15:01:18 +01:00
Alex Dima
84665761ff
Simplify dev-setup.js 2022-02-03 09:32:42 +01:00
Alex Dima
7138fd1ffb
Inline metadata.js in dev-setup.js 2022-02-02 23:59:13 +01:00
Alex Dima
3a6cbe0787
Avoid using metadata.js in build.js 2022-02-02 23:14:43 +01:00
Alex Dima
f1be014b8f
Remove support for running from file:// 2022-02-02 20:24:39 +01:00
Alexandru Dima
8b3ac48ea1
Merge pull request #2935 from microsoft/hediet/monaco-editor-core-filler-improvement
Don't load editor api from global API but use require directly.
2022-02-02 20:22:03 +01:00
Henning Dieterichs
69809452a8
Don't load monaco.contribution.ts twice.
Fixes #2866, #2931.
2022-02-02 20:03:20 +01:00
Henning Dieterichs
91edee5791
Moves src/{typescript,css,...} to src/language/{typescript,css,...} to align with the released paths 2022-02-02 17:12:13 +01:00
Henning Dieterichs
9eb7c18143
Don't load editor api from global API but use require directly. 2022-02-02 16:22:09 +01:00
Henning Dieterichs
a35721026f
Merge pull request #2934 from microsoft/hediet/gitattributes-normalize-line-endings
Adds .gitattributes to ensure all source files are stored as LF in git.
2022-02-02 15:31:22 +01:00
Henning Dieterichs
24f57fec21
Adds .gitattributes to ensure all source files are stored as LF in git. 2022-02-02 13:07:57 +01:00
Henning Dieterichs
4c068a7b8d
Merge pull request #2926 from popsql/bugfix-workflow-publish
Only run publish workflow on main monaco-editor repo
2022-02-02 10:46:45 +01:00
Tobias Messner
f8066b86df Add .cjs extension for javascript files 2022-01-31 20:48:57 +01:00
Matthew Peveler
259196bc1e
Merge branch 'microsoft:main' into bugfix-workflow-publish 2022-01-30 17:33:47 -05:00
Matthew Peveler
7ec6ac210f
Only run publish workflow on main monaco-editor repo
Signed-off-by: Matthew Peveler <matt@popsql.com>
2022-01-30 22:29:48 +00:00
Alex Dima
bcc7fd43aa
Add 'Needs More Info Closer' 2022-01-28 20:29:05 +01:00
Alex Dima
4268f423e8
Add locker action 2022-01-28 20:16:11 +01:00
Henning Dieterichs
ee5303f9cc
Merge pull request #2924 from philipturner/patch-1
Add @preconcurrency to Swift declaration attributes
2022-01-28 10:46:22 +01:00
Philip Turner
743073476a
Update swift.ts 2022-01-27 19:08:45 -05:00
Alex Dima
75af762db9
Fix paths when running from file:// 2022-01-27 16:56:54 +01:00
Alex Dima
8f2bc4ac98
Add support to run from source using tsc -w 2022-01-27 16:54:45 +01:00
Henning Dieterichs
22c629374e
Fixes path to template for create-an-issue action. 2022-01-27 14:17:43 +01:00
Henning Dieterichs
f3dda000c6
Fixes create-an-issue commit hash. 2022-01-27 14:01:22 +01:00
Henning Dieterichs
c8be2f8782
Creates an issue if npm publish task fails. 2022-01-27 12:47:43 +01:00
Alexandru Dima
9f0a9c263f
Merge pull request #2871 from juan-carlos-diaz/main
Fix #2851 Highlight correctly the attributes and identifiers (with dashes) for Shell language
2022-01-27 11:50:22 +01:00
Alex Dima
1134d5e82b
ESM: Do not append the .js suffix to imports if it's already there 2022-01-26 09:08:30 +01:00
Alex Dima
5330724dff
Adopt changes in vscode repo 2022-01-25 23:54:55 +01:00
Alexandru Dima
3d0ac205d3
Merge pull request #2909 from microsoft/dependabot/npm_and_yarn/webpack-plugin/nanoid-3.2.0
Bump nanoid from 3.1.30 to 3.2.0 in /webpack-plugin
2022-01-24 12:43:55 +01:00
dependabot[bot]
d735c42561
Bump nanoid from 3.1.30 to 3.2.0 in /webpack-plugin
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.30 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.2.0)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 11:43:40 +00:00
Alexandru Dima
3e1050ffd6
Merge pull request #2896 from microsoft/dependabot/npm_and_yarn/samples/browser-esm-parcel/follow-redirects-1.14.7
Bump follow-redirects from 1.14.5 to 1.14.7 in /samples/browser-esm-parcel
2022-01-24 12:43:33 +01:00
Alexandru Dima
f1d2e8e34a
Merge pull request #2911 from microsoft/dependabot/npm_and_yarn/samples/browser-esm-vite-react/nanoid-3.2.0
Bump nanoid from 3.1.30 to 3.2.0 in /samples/browser-esm-vite-react
2022-01-24 12:43:25 +01:00
dependabot[bot]
4ba89c03b1
Bump nanoid from 3.1.30 to 3.2.0 in /samples/browser-esm-vite-react
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.30 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.2.0)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 11:43:09 +00:00
Alexandru Dima
dfd3e884ff
Merge pull request #2910 from microsoft/dependabot/npm_and_yarn/samples/nanoid-3.2.0
Bump nanoid from 3.1.30 to 3.2.0 in /samples
2022-01-24 12:42:57 +01:00
Alexandru Dima
94ee4c9c70
Merge pull request #2912 from microsoft/dependabot/npm_and_yarn/samples/browser-esm-parcel/nanoid-3.2.0
Bump nanoid from 3.1.30 to 3.2.0 in /samples/browser-esm-parcel
2022-01-24 12:42:22 +01:00
Alex Dima
9fac3918b2
Adopt the new editor/contrib layering rules in the esm metadata generation 2022-01-24 12:37:22 +01:00
Henning Dieterichs
2a243d07fe
Fixes nightly release 2022-01-24 11:49:42 +01:00
dependabot[bot]
714038590d
Bump nanoid from 3.1.30 to 3.2.0 in /samples/browser-esm-parcel
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.30 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.2.0)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-22 08:58:59 +00:00
dependabot[bot]
4870c685b1
Bump nanoid from 3.1.30 to 3.2.0 in /samples
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.30 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.2.0)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-22 08:57:55 +00:00
Ken Chung
87c94338e9 Downgrade css-loader to 5.2.7 in /samples 2022-01-21 03:12:28 +08:00
Henning Dieterichs
f50e0abe46
Merge pull request #2894 from forensicmike/small-readme-fix
Add "cd monaco-editor" to the step by step commandline instructions for cloning and running the samples
2022-01-19 09:41:08 +01:00
dependabot[bot]
54bd5fcdaa
Bump follow-redirects in /samples/browser-esm-parcel
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.5 to 1.14.7.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.5...v1.14.7)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-17 10:53:26 +00:00
Henning Dieterichs
7f2428dcb7
Merge pull request #2895 from microsoft/dependabot/npm_and_yarn/samples/follow-redirects-1.14.7
Bump follow-redirects from 1.14.5 to 1.14.7 in /samples
2022-01-17 11:52:45 +01:00
dependabot[bot]
c90e917ae6
Bump follow-redirects from 1.14.5 to 1.14.7 in /samples
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.5 to 1.14.7.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.5...v1.14.7)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-15 20:15:49 +00:00
forensicmike1
b32abff689 Add "cd monaco-editor" to the step by step commandline instructions for cloning and running the samples. 2022-01-15 07:56:49 -07:00
Alexandru Dima
bfb6a42e3d
Merge pull request #2855 from philipturner/main
Update Swift language specification to version 5.5
2022-01-14 09:53:37 +01:00
Alexandru Dima
c9e1c9962b
Merge pull request #2853 from ValeraS/webpack-plugin
tune(monaco-editor-webpack-plugin): expose plugin options type
2022-01-14 09:52:53 +01:00
Alexandru Dima
93c7165c32
Merge pull request #2847 from blutorange/lang-freemarker
Implements #2383 Add syntax modes for FreeMarker template language
2022-01-14 09:47:26 +01:00
Alex Dima
3aebbb1c42
Fail the build when there is a TS compilation error 2022-01-10 09:07:34 +01:00
Alex Dima
3159d3d6c9
Adopt latest monaco-editor-core 2022-01-10 09:07:20 +01:00
Philip Turner
29454a6a53
Update swift.test.ts 2022-01-03 09:42:12 -05:00
Juan C. Diaz
1c19118f82 Fix bug #2851 2022-01-03 08:27:23 -05:00
Philip Turner
22487ca8e1
Changes from prettier 2022-01-03 07:04:02 -05:00
Henning Dieterichs
a385674a34
Merge pull request #2864 from rcjsuen/md-hyphenated-html-tags
Support hyphenated HTML tags in Markdown syntax
2022-01-03 09:19:09 +01:00
Remy Suen
be3ac39fbf Support hyphenated HTML tags in Markdown syntax
Signed-off-by: Remy Suen <remy.suen@gmail.com>
2021-12-30 08:00:31 -05:00
Alexandru Dima
25e85af033
Merge pull request #2862 from microsoft/alex/adopt-20211228
Adopt latest `monaco-editor-core`
2021-12-29 01:12:32 +01:00
Alex Dima
3a58c2a6ba
Adopt latest monaco-editor-core 2021-12-29 01:08:27 +01:00
Alex Dima
6e73daa1d2
Remove unstable webkit 2021-12-27 17:45:17 +01:00
Philip Turner
911545031d
No need for this TODO 2021-12-26 14:14:47 -05:00
Philip Turner
899a8eb798
Add differentiation keywords 2021-12-26 14:13:34 -05:00
Philip Turner
491d70bdaa
Use tabs instead of spaces 2021-12-26 14:07:18 -05:00
Philip Turner
41ff265429
Copy attribute keywords from Xcode 2021-12-26 14:05:44 -05:00
Philip Turner
7fc2b23c7e
Changed spaces to tabs 2021-12-26 14:02:49 -05:00
Philip Turner
3ed28633bd
Add double-underscored keywords (indention is too corrupted to fix - a mess of tabs instead of spaces) 2021-12-26 13:59:16 -05:00
Philip Turner
1943ce5ecc
Or not 2021-12-26 13:54:47 -05:00
Philip Turner
cfa9035aa5
Indentation fixed 2021-12-26 13:54:17 -05:00
Philip Turner
70ff052f2c
Working around glitch with GitHub markdown 2021-12-26 13:52:52 -05:00
Philip Turner
860d306c84
Add "open" access modifier and reorder from most to least restrictive 2021-12-26 13:50:38 -05:00
Philip Turner
c31bb1eab8
Fix the all-caps keywords that changes to words prefixed by # 2021-12-26 13:49:09 -05:00
Philip Turner
e617386720
Copy the basic keyword types from Xcode 2021-12-26 13:44:38 -05:00
ValeraS
fc603de98e tune(monaco-editor-webpack-plugin): expose plugin options type 2021-12-24 18:26:10 +03:00
Alex Dima
684cbae427
update deps 2021-12-22 13:05:51 +01:00
Andre Wachsmuth
94f81dc4ae Implements #2383 Add syntax modes for FreeMarker template language 2021-12-21 22:53:42 +01:00
Alexandru Dima
9af034d1cb
Merge pull request #2845 from microsoft/alex/issue-2843
Fix #2843
2021-12-20 15:53:03 +01:00
Alex Dima
844b726ea2
Fixes #2838: document breakage of parcel v1 2021-12-20 15:52:13 +01:00
Alex Dima
a8878c8cfe
Fix #2843 2021-12-20 15:41:33 +01:00
Henning Dieterichs
6389400e10
Update CONTRIBUTING.md
Contributed languages should have significant relevance
2021-12-20 10:32:57 +01:00
Alex Dima
3ad48dbde4
Update to latest versions 2021-12-16 16:35:39 +01:00
Alex Dima
2b7072d663
More exports for #2834 2021-12-16 16:29:19 +01:00
Alex Dima
d70607de55
Fixes #2834: Export adapter classes 2021-12-16 16:26:54 +01:00
Alex Dima
fc234d6a57
Add a sample that uses transform: scale 2021-12-16 16:08:46 +01:00
Alex Dima
0684241bac
update package-lock.json 2021-12-16 13:50:27 +01:00
Henning Dieterichs
5a58ab7f00
Merge pull request #2832 from resistdesign/doc/simplify-browser-esm-parcel-sample
doc: (samples) Simplify Browser ESM Parcel build
2021-12-16 11:22:34 +01:00
Ryan Graff
e0fbcd2bda doc: (samples) Simplify Browser ESM Parcel build 2021-12-15 11:14:48 -05:00
Alexandru Dima
2ec5fd9d3b
Allow manually triggering publishing the website 2021-12-14 22:05:30 +01:00
Alexandru Dima
5737501c81
Bump version 2021-12-14 21:41:17 +01:00
Alexandru Dima
337587859b
Prepare for 0.31.1 2021-12-14 21:40:24 +01:00
Alexandru Dima
d8c699832b
update vscode repo pointer 2021-12-14 18:20:57 +01:00
Alexandru Dima
94de72c4a9
Merge pull request #2828 from microsoft/alex/issue-2820
Fixes #2820: Export create
2021-12-14 18:13:56 +01:00
Alexandru Dima
87f976a786
Fixes #2820: Export create 2021-12-14 18:07:32 +01:00
Alexandru Dima
888883e33e
Fixes #2705: Call create also from the ESM worker 2021-12-14 18:00:17 +01:00
Alexandru Dima
ad4a942460
Fixes #2815: Remove require reference in typescriptServices 2021-12-14 16:55:59 +01:00
Alexandru Dima
10251b81a0
Merge pull request #2818 from ValeraS/fix/webpack-plugin
fix(monaco-editor-webpack-plugin): load monaco-editor with webpack 4
2021-12-14 14:10:28 +01:00
ValeraS
3ae92d5f1a fix(monaco-editor-webpack-plugin): load monaco-editor with webpack 4
Closes #2817
2021-12-12 01:17:34 +03:00
Alex Dima
3e433551a9
monaco-editor-webpack-plugin@7.0.0 2021-12-10 23:17:40 +01:00
Alex Dima
a6fae61e35
Towards publishing monaco-editor-webpack-plugin 2021-12-10 23:17:03 +01:00
Alex Dima
3afc60f1ac
Add changelog entry for 0.31.0 2021-12-10 22:58:25 +01:00
Alex Dima
252e010eb7
Final tweaks 2021-12-10 22:34:18 +01:00
Alex Dima
103da73f28
Towards publishing 2021-12-10 22:32:20 +01:00
Alex Dima
f1fc190711
Add support for skipping monaco-editor-core 2021-12-10 21:51:49 +01:00
Alex Dima
7e010114fe
Remove extra " 2021-12-10 21:42:40 +01:00
Alex Dima
495aa7f860
Print vscode_branch 2021-12-10 21:39:38 +01:00
Alex Dima
705e60fbf9
Enable echo 2021-12-10 21:27:06 +01:00
Alex Dima
119b4dbe5f
Compute state based on github event 2021-12-10 20:52:34 +01:00
Alex Dima
d5dd935683
Store vscode version in package.json for reproducible builds 2021-12-10 20:41:17 +01:00
Alex Dima
218caac488
Rename folder 2021-12-10 15:59:54 +01:00
Alex Dima
5e40d80881
Consider a scheduled run to be a nightly run 2021-12-10 11:44:35 +01:00
Alex Dima
dda0f6caf9
Try to troubleshoot scheduled events info 2021-12-10 09:15:03 +01:00
Alexandru Dima
d031927599
Merge pull request #2811 from microsoft/alex/metadata
Ship a metadata in the esm folder which can help the webpack plugin
2021-12-10 00:00:48 +01:00
Alexandru Dima
7eee44891f
Merge pull request #2809 from gitpaladin/missing-pb-syntax-directive
Fix token while missing `syntax=` directive
2021-12-09 23:56:48 +01:00
Alex Dima
0abbb2be7d
Ship a metadata in the esm folder which can help the webpack plugin 2021-12-09 23:55:04 +01:00
Alex Dima
e77825074d
Fix some samples 2021-12-09 22:16:35 +01:00
Alex Dima
b84d22c6fb
Fix working directory 2021-12-09 21:48:52 +01:00
Alex Dima
876f3ec018
update package-lock.json 2021-12-09 21:26:24 +01:00
Alex Dima
51ab8d1537
Add a workflow_dispatch input 2021-12-09 21:08:52 +01:00
Alex Dima
c938ee0b32
format file with prettier 2021-12-09 20:59:18 +01:00
Alex Dima
dc0f824c38
Rename workflow 2021-12-09 20:56:26 +01:00
Alex Dima
13a4caf0cd
Generate nightly version based on latest npm version 2021-12-09 20:54:40 +01:00
cmlchen
fbe2b4c7a9 Fix token while missing syntax= directive 2021-12-09 16:04:03 +08:00
Henning Dieterichs
83f13054ad
Fixes CI by formatting markdown document. 2021-12-08 14:08:33 +01:00
Alex Dima
776353f3e3
Remove unused script 2021-12-08 14:04:58 +01:00
Alex Dima
233ecd49b1
Fix paths for running the website from source (#2807) 2021-12-08 14:04:09 +01:00
Alex Dima
6b2f528d9f
Create generated directory if necessary (fixes #2807) 2021-12-08 13:52:31 +01:00
Henning Dieterichs
86cff74999
Merge pull request #2806 from jonatanklosko/jk-elixir-sigils
Update Elixir tokenization of sigil modifiers
2021-12-08 13:10:13 +01:00
Henning Dieterichs
0afd248a29 Update templates 2021-12-08 13:08:14 +01:00
Henning Dieterichs
81276a8df8 Update issue templates 2021-12-08 13:06:08 +01:00
Jonatan Kłosko
1126efe8d2 Tokenize the power operator 2021-12-08 12:27:27 +01:00
Jonatan Kłosko
10bce38a76 Update Elixir tokenization of sigil modifiers 2021-12-08 12:24:13 +01:00
Henning Dieterichs
3f9b0c5573
Splits CONTRIBUTING into CONTRIBUTING and MAINTAINING. 2021-12-07 12:25:29 +01:00
Henning Dieterichs
5414af93ba
Formats documents. 2021-12-07 12:06:37 +01:00
Henning Dieterichs
df492782e2 Updates feature request template. 2021-12-07 11:58:11 +01:00
Henning Dieterichs
c7aa369f6f Update feature request template. 2021-12-07 11:57:31 +01:00
Henning Dieterichs
187bd22d5d
Update bug_report.yaml
Update
2021-12-07 11:44:01 +01:00
Henning Dieterichs
2c2696f124
Update bug_report.yaml 2021-12-07 10:43:56 +01:00
Henning Dieterichs
8908955efd
Rename bug_report.md to bug_report.yaml 2021-12-07 10:43:32 +01:00
Henning Dieterichs
ed3ada771a
Updates bug_report to use GitHub forms 2021-12-07 10:43:12 +01:00
Alex Dima
ee5da3672a
drop the cached node modules 2021-12-03 19:17:40 +01:00
Alex Dima
1f9655af22
Read the latest published version from npm, do not rely on package.json (fixes #2800) 2021-12-03 17:15:37 +01:00
Alex Dima
b4f1ca62dd
Check out vscode-loc too in order to get translations 2021-12-03 17:09:46 +01:00
Alex Dima
3de27fe12d
Publish monaco-editor-core even if the monaco-editor checks do not succeed 2021-11-23 14:21:32 +01:00
Alex Dima
b01c42dd04
More tweaks to nightly workflow 2021-11-23 13:26:27 +01:00
Alex Dima
02a021b217
bump version 2021-11-23 13:26:16 +01:00
Alex Dima
67e1bddc33
Run editor-distro instead of editor-esm-bundle 2021-11-23 11:06:57 +01:00
Alex Dima
88714a7f6b
switch to npm install 2021-11-23 10:37:45 +01:00
Alex Dima
41be945ca5
Check out the monaco-editor repo before 2021-11-23 10:00:02 +01:00
Alex Dima
2fb82fb3ad
Also run monaco-editor checks in nightly 2021-11-23 09:31:51 +01:00
Alex Dima
2379aa505f
Remove DISPLAY env variable from browser unit tests 2021-11-22 23:02:37 +01:00
Alex Dima
850c4820bf
Fix path 2021-11-22 22:04:12 +01:00
Alex Dima
80ded16f54
Check out repos as siblings 2021-11-22 22:03:04 +01:00
Alex Dima
7a9cff59a7
First attempt at nightly 2021-11-22 21:57:39 +01:00
Alex Dima
7318711606
Add esbuild sample 2021-11-18 21:57:24 +01:00
Alexandru Dima
3638651cde
Merge pull request #2779 from emojiiii/website-example-running-error
Fix some errors on the website playground
2021-11-18 12:03:22 +01:00
Chen
dd6b5825eb Fix some errors on the website playground 2021-11-18 15:03:18 +08:00
Alex Dima
37f12e39a3
Add check that there are samples for each language 2021-11-17 22:55:39 +01:00
Alex Dima
f012a2aeee
More cleanup in manual test cases 2021-11-17 16:55:50 +01:00
Alex Dima
bbaa2d846d
Do not check in generated samples file 2021-11-17 16:30:11 +01:00
Alex Dima
91c9c0cec3
Ignore generated files 2021-11-17 16:28:37 +01:00
Alex Dima
979d6a1b26
Do not duplicate samples 2021-11-17 16:22:31 +01:00
Alex Dima
d33ec7c209
Remove unused manual test pages 2021-11-17 16:15:47 +01:00
Alex Dima
2d6b5590c7
Remove unnecessary "use strict" directives 2021-11-17 15:17:14 +01:00
Alex Dima
4f03f6c4bf
Enable strict typescript compilation 2021-11-17 15:13:49 +01:00
Alex Dima
a33b7cee5a
Inline adapters 2021-11-17 15:04:27 +01:00
Alex Dima
8f57069f86
Extract a common SelectionRangeAdapter 2021-11-17 14:58:58 +01:00
Alex Dima
b49f8ffd5f
Extract a common FoldingRangeAdapter 2021-11-17 14:56:24 +01:00
Alex Dima
8d7bf2ad76
Extract a common DocumentColorAdapter 2021-11-17 14:53:34 +01:00
Alex Dima
3cb8acd2e9
Extract DocumentFormattingEditProvider and DocumentRangeFormattingEditProvider 2021-11-17 14:13:05 +01:00
Alex Dima
89d05c5889
Move DocumentLinkAdapter to /common/ 2021-11-17 14:07:39 +01:00
Alex Dima
81023950c6
Extract a common DocumentSymbolAdapter 2021-11-17 14:00:14 +01:00
Alex Dima
6e986e8f96
Extract a common RenameAdapter 2021-11-17 13:53:29 +01:00
Alex Dima
4b2441bf66
Move DefinitionAdapter and ReferenceAdapter to /common/ 2021-11-17 13:47:40 +01:00
Alex Dima
09c6ea48f0
Extract a common DocumentHighlightAdapter 2021-11-17 13:41:00 +01:00
Alex Dima
ca17e09d53
Extract a common HoverAdapter 2021-11-17 11:04:57 +01:00
Alex Dima
1c2358bdf9
Extract a common CompletionAdapter 2021-11-17 10:56:06 +01:00
Alex Dima
0312af769b
Extract a common DiagnosticsAdapter 2021-11-17 10:32:04 +01:00
Alex Dima
54a4ae36e8
Align similar implementations 2021-11-17 09:52:33 +01:00
Alex Dima
955df228dd
Improve suite name 2021-11-17 00:26:50 +01:00
Alexandru Dima
44a956cb42
Merge pull request #2778 from microsoft/alex/back-to-mocha
Go back to using `mocha` for unit tests
2021-11-17 00:26:20 +01:00
Alex Dima
7e766abe78
Adjust smoke test which also uses mocha 2021-11-17 00:21:35 +01:00
Alex Dima
41ded74b37
Go back to using mocha for unit tests 2021-11-17 00:09:58 +01:00
Alex Dima
0322b59e50
Delete unused build definition 2021-11-17 00:01:12 +01:00
Alex Dima
04742ae492
Try to use x-access-token 2021-11-16 23:57:49 +01:00
Alex Dima
58251db14d
Find out remote address 2021-11-16 23:33:24 +01:00
Alex Dima
6f2dc28949
Add publish website workflow 2021-11-16 23:27:17 +01:00
Alex Dima
903a92c7bb
Update links 2021-11-16 23:18:23 +01:00
Alex Dima
97da96fa8c
Move integration guides to /docs 2021-11-16 23:01:55 +01:00
Alex Dima
e425abb5f5
Cross origin web worker support is now builtin 2021-11-16 22:59:38 +01:00
Alexandru Dima
23f5ddfe3a
Merge pull request #2769 from milahu/patch-2
fix link to monaco.d.ts
2021-11-16 22:54:59 +01:00
Alex Dima
cad7e90951
Move typedoc files to /website/typedoc 2021-11-16 22:35:42 +01:00
Alex Dima
33ea399f99
Remove unused typedoc theme 2021-11-16 22:33:13 +01:00
Alex Dima
d9013a86c4
Move website files to /website/ 2021-11-16 22:32:27 +01:00
Alex Dima
430d8e6e17
Move test pages to /test/manual/ 2021-11-16 22:25:24 +01:00
Alex Dima
32f9897bf2
Update parcel sample to use parcel v2 2021-11-16 22:21:12 +01:00
Alex Dima
091f871e65
Rename to /samples/ 2021-11-16 22:01:11 +01:00
Alexandru Dima
c9081ee4f3
Merge pull request #2777 from microsoft/alex/remove-gulp
Move website task out of `gulp`
2021-11-16 21:58:30 +01:00
Alex Dima
207f0cf42a
Move website task out of gulp 2021-11-16 21:51:45 +01:00
Alex Dima
240b684846
Move simpleserver script off of gulp 2021-11-16 20:55:19 +01:00
Alexandru Dima
a06e20f8fe
Merge pull request #2776 from microsoft/alex/release-script
Move release script off of `gulp`
2021-11-16 20:11:36 +01:00
Alexandru Dima
df3ee0f9d7
Merge pull request #2775 from microsoft/ts_faff
Expose full ts object to global ts
2021-11-16 20:08:02 +01:00
Alex Dima
cf27b4665e
Move release script off of gulp 2021-11-16 20:04:55 +01:00
Orta
1b8bf663ae Expose full ts object to global ts 2021-11-16 14:43:02 +00:00
Alexandru Dima
6535feb2a5
Merge pull request #2772 from MasterOdin/patch-1
Remove return from example addAction
2021-11-16 10:22:52 +01:00
Alex Dima
68d7a125ad
Run prettier after importing editor in webpack-plugin 2021-11-16 10:19:16 +01:00
Alex Dima
e1481e0174
small tweaks 2021-11-16 10:18:57 +01:00
Alexandru Dima
512498b487
Merge pull request #2773 from microsoft/alex/update-deps
Update all dependencies
2021-11-16 09:59:57 +01:00
Alexandru Dima
d06ca7bfec
Merge pull request #2770 from microsoft/expose_ts
Expose the TypeScript object inside the ts worker
2021-11-16 09:58:57 +01:00
Alex Dima
8971aa0cb8
Check that ts is exposed as a global on the typescript worker 2021-11-16 09:49:19 +01:00
Alex Dima
009bc9b864
Adopt loader-utils breaking changes 2021-11-16 09:41:37 +01:00
Alex Dima
ed1ee25b7b
Update all dependencies 2021-11-16 09:23:03 +01:00
Matthew Peveler
7bc83ba139
Remove return from example addAction
Signed-off-by: Matthew Peveler <matt@popsql.com>
2021-11-15 15:50:33 -10:00
Orta Therox
892c164a7b
Update tsWorker.ts 2021-11-16 00:30:33 +00:00
Orta
79f4a4cf75 Expose the TypeScript object inside the ts worker 2021-11-15 22:40:59 +00:00
Alex Dima
5bb2a27249
Add website check in CI 2021-11-15 23:14:36 +01:00
Alex Dima
6c96c40148
Fix publicPath in cross origin test 2021-11-15 23:12:17 +01:00
Alex Dima
6e932c3629
Automatically update webpack plugin with latest editor when running release 2021-11-15 23:08:41 +01:00
Alex Dima
7286264340
Move script to /build/ 2021-11-15 23:07:46 +01:00
Alex Dima
1f837fe159
Move metadata.js to root 2021-11-15 23:01:10 +01:00
Alex Dima
e65bc32232
Small tweaks 2021-11-15 22:37:47 +01:00
Alex Dima
45227a089e
Try to enable smoketests also on webkit 2021-11-15 22:21:38 +01:00
Alex Dima
dfe35b15bb
Add webpack as part of the smoketest 2021-11-15 22:16:09 +01:00
Alex Dima
423a55b305
Merge launch configs 2021-11-15 20:24:28 +01:00
Alex Dima
de38109d4c
Always install playwright 2021-11-15 16:34:39 +01:00
Alex Dima
f84185f497
Download Playwright when node_modules are restored from cache 2021-11-15 16:25:47 +01:00
Alex Dima
a21839d00d
Rename to webpack-plugin 2021-11-15 16:16:53 +01:00
Alex Dima
db6aec351b
Remove webkit for now (ubuntu-latest is missing deps) 2021-11-15 16:00:09 +01:00
Alex Dima
78b2edf1e3
Add smoketest and run it in CI 2021-11-15 15:55:37 +01:00
milahu
4b06502eb2
fix link to monaco.d.ts 2021-11-15 14:35:35 +01:00
Alex Dima
ab787465b6
Add prettier check in CI 2021-11-15 11:58:26 +01:00
Alex Dima
6c2ce28dc0
Add gulp launch configs 2021-11-15 11:17:48 +01:00
Alex Dima
321b556878
Minor cleanup 2021-11-15 11:15:16 +01:00
Alex Dima
e8dabe034a
Add pre-commit hooks 2021-11-15 11:13:52 +01:00
Alex Dima
edb439d4f6
Run prettier 2021-11-15 09:37:13 +01:00
Alexandru Dima
a66f20ee2e
Merge pull request #2767 from activeguild/add-vite-react-sample
Add 'browser-ems-vite-react' sample
2021-11-15 09:32:44 +01:00
Alex Dima
43b3d4968c
update package-lock.json and .gitignore 2021-11-15 09:32:13 +01:00
j1ngzoue
4f48e64902 Add 'browser-ems-vite-react' sample 2021-11-15 03:56:17 +09:00
Alex Dima
d901c5b613
update yaserver 2021-11-13 21:38:09 +01:00
Alex Dima
45ae1272ea
Strict checks for json 2021-11-13 21:33:03 +01:00
Alex Dima
6054aa23fc
Repair launch config 2021-11-13 20:53:15 +01:00
Alex Dima
26544b7d01
Restore issue templates 2021-11-13 20:51:37 +01:00
Alex Dima
5c54d2085f
Fix some links 2021-11-13 20:50:13 +01:00
Alexandru Dima
136ce723f7
Merge pull request #2766 from microsoft/alex/merge-src-folders
Merge src folders
2021-11-13 20:44:14 +01:00
Alex Dima
c3ac455fd2
Remove unused functions 2021-11-13 20:41:24 +01:00
Alex Dima
7b371107bf
Remove dev dep npm-run-all 2021-11-13 20:38:47 +01:00
Alex Dima
219b9b25eb
Restore basic-languages unit tests 2021-11-13 20:37:28 +01:00
Alex Dima
0f7286cf55
Move basic languages sources to /src/ 2021-11-13 20:29:32 +01:00
Alex Dima
d5e3af3744
Move out remaining files from monaco-typescript 2021-11-13 20:15:46 +01:00
Alex Dima
8b4f06b8c5
Move typescript sources to /src/ 2021-11-13 20:06:41 +01:00
Alex Dima
c41a5ce8aa
Move json sources to /src/ 2021-11-13 19:46:33 +01:00
Alex Dima
a8df4018f1
Move html sources into /src/ 2021-11-13 19:40:20 +01:00
Alex Dima
d2a70a52f5
Merge remote-tracking branch 'origin/main' into alex/merge-src-folders 2021-11-13 19:29:28 +01:00
Alexandru Dima
02cec3ff0f
Merge pull request #2749 from popsql/mysql_funcs
Update builtin functions for mysql
2021-11-13 19:28:59 +01:00
Alex Dima
88b417d421
Fix package.json scripts 2021-11-13 00:07:01 +01:00
Alex Dima
b3f2986d69
Move css sources into /src/ 2021-11-13 00:04:23 +01:00
Alex Dima
08459beac3
Minor tweaks 2021-11-12 21:55:00 +01:00
Alex Dima
59484624a4
Add CI 2021-11-12 21:48:52 +01:00
Alexandru Dima
e717007697
Remove no longer necessary package.json 2021-11-12 17:50:42 +01:00
Alexandru Dima
57e5156385
Restore monaco-languages test running 2021-11-12 15:27:47 +01:00
Alexandru Dima
cf554e8cf9
Brin watch tasks to root package.json 2021-11-12 14:43:47 +01:00
Alexandru Dima
6b2860b7b0
Simplify buildAMD usages 2021-11-12 14:39:56 +01:00
Alexandru Dima
0278fd481d
Add Copyright Header to release bits 2021-11-12 14:31:18 +01:00
Alexandru Dima
e32c9af809
Run release steps in parallel 2021-11-12 14:27:07 +01:00
Alexandru Dima
84e25e9b41
Fix esbuild warnings 2021-11-12 14:22:44 +01:00
Alexandru Dima
aa5bb2cfa7
Avoid going through separate package.json files 2021-11-12 14:14:05 +01:00
Alexandru Dima
d2e1d5104f
Run prettier 2021-11-12 13:33:36 +01:00
Alexandru Dima
cb84b99583
Remove no longer needed README.md files 2021-11-12 13:33:05 +01:00
Alexandru Dima
8c6103a3b4
Restore test sample 2021-11-12 13:28:19 +01:00
Alexandru Dima
dcbd8121d9
Adopt esbuild for monaco-typescript 2021-11-12 13:26:25 +01:00
Alexandru Dima
c0d4493bd9
Remove unnecessary scripts 2021-11-12 12:53:36 +01:00
Alexandru Dima
0c394c0c7c
Adopt esbuild for monaco-languages 2021-11-12 12:48:50 +01:00
Alexandru Dima
a50081289e
Adopt esbuild for monaco-json 2021-11-12 11:40:18 +01:00
Alexandru Dima
6bfac402fb
Move buildAMD to common build script 2021-11-12 11:31:25 +01:00
Alexandru Dima
8944900f86
Add buildESM to common build script 2021-11-12 11:22:26 +01:00
Alexandru Dima
1ffcd4ae93
Move fillers to /build/ folder 2021-11-12 11:14:31 +01:00
Alexandru Dima
c8344afb94
Adopt esbuild in monaco-html 2021-11-12 11:10:04 +01:00
Alexandru Dima
9a52545094
Run prettier 2021-11-12 10:55:50 +01:00
Alexandru Dima
734e1cb987
Merge pull request #2764 from Pranomvignesh/main
Semantic Tokens Provider Sample is broken in docs
2021-11-12 09:31:54 +01:00
Pranom Vignesh
88fd0a6e7f
Update sample.js 2021-11-12 09:35:06 +05:30
Alex Dima
c8d3fc1fd0
Move build.js outside of scripts folder 2021-11-12 01:05:22 +01:00
Alex Dima
829ee45850
Use esbuild also for AMD variant 2021-11-12 01:02:23 +01:00
Alex Dima
63e425ffe2
Don't generate .d.ts files in the esm folders 2021-11-11 23:14:58 +01:00
Alex Dima
bc3274a7c8
Adopt new scripts in monaco-json 2021-11-11 22:58:25 +01:00
Alex Dima
94ca41beeb
Minor improvements 2021-11-11 22:45:32 +01:00
Alex Dima
c419101f73
Improve monaco-html scripts 2021-11-11 22:35:29 +01:00
Alex Dima
1b00da60ec
small tweaks 2021-11-11 22:19:08 +01:00
Alex Dima
e441fd4498
Improve monaco-css scripts 2021-11-11 22:13:12 +01:00
Alex Dima
67a240a269
Rename LICENSE file 2021-11-11 22:12:50 +01:00
Alex Dima
70d1828179
Adopt esbuild for the esm release of monaco-css 2021-11-11 21:52:33 +01:00
Alex Dima
8430c538b4
Have the webpack plugin tests use the /release/ folder 2021-11-11 19:27:59 +01:00
Henning Dieterichs
8af6bd5f8a
Merge pull request #2757 from popsql/mpeveler/redshift-keywords
Update list of keywords for redshift
2021-11-10 10:44:48 +01:00
Matthew Peveler
8da980ff79 Update list of keywords for redshift
Signed-off-by: Matthew Peveler <matt.peveler@popsql.com>
2021-11-09 14:15:34 -10:00
Alex Dima
e9074202ae
Fixes to website scripts 2021-11-09 16:51:46 +01:00
Alex Dima
5a7ba61be9
0.30.1 2021-11-09 16:30:31 +01:00
Alex Dima
5af2334c5e
Prepare for 0.30.1 2021-11-09 16:30:09 +01:00
Alex Dima
a6ebcecf27
Avoid loading the entire language service on the main thread code 2021-11-08 23:46:03 +01:00
Alex Dima
9eba6e70b8
Skip copying monaco.d.ts to the release folder 2021-11-08 23:20:57 +01:00
Alex Dima
13b1e47f23
Combine .gitignore files 2021-11-08 20:53:02 +01:00
Alex Dima
953db09db8
Move settings.json up to root 2021-11-08 16:49:10 +01:00
Alex Dima
1a21834a97
Simplify paths in metadata.js 2021-11-08 16:32:06 +01:00
Alex Dima
a155838b58
Restore editor release task 2021-11-08 16:07:47 +01:00
Alex Dima
f21d9494a2
Fix compilation errors 2021-11-08 09:58:13 +01:00
Alex Dima
84bdc31efe
run prettier 2021-11-06 00:15:13 +01:00
Alexandru Dima
b4178b1190
Merge pull request #2748 from rramo012/main
Fixing the documentation links
2021-11-05 22:28:25 +01:00
Matthew Peveler
0356594dee Update builtin functions for mysql
Signed-off-by: Matthew Peveler <matt.peveler@popsql.com>
2021-11-05 10:38:19 -10:00
Rafael Ramos
f99eab0ceb
Fixing the documentation links 2021-11-05 13:57:42 -04:00
Alex Dima
7c6062ccf7
Adjust package.json scripts and move all dev deps to the root package.json 2021-11-05 16:53:05 +01:00
Alex Dima
ebcdd4fe0d
Move markdown files 2021-11-05 12:34:11 +01:00
Alex Dima
2029730ddd
Merge the monaco-editor-samples repository 2021-11-05 12:30:21 +01:00
Alex Dima
5b763c4eb0
Merge monaco repositories 2021-11-05 12:28:44 +01:00
Alex Dima
94735b023f
Move into monaco-editor-webpack-plugin folder 2021-11-05 12:13:58 +01:00
Alex Dima
a9ab892f7a
Move into monaco-editor-samples folder 2021-11-05 12:12:35 +01:00
Alex Dima
6bb69eca2b
Move into monaco-typescript folder 2021-11-05 12:11:29 +01:00
Alex Dima
a16b896c3f
Move into monaco-html folder 2021-11-05 12:09:47 +01:00
Alex Dima
fb0da62177
Move into monaco-json folder 2021-11-05 12:08:41 +01:00
Alex Dima
03834eb1ec
Move into monaco-css folder 2021-11-05 12:07:11 +01:00
Alex Dima
497507ffee
Move into monaco-editor directory 2021-11-05 11:59:13 +01:00
Alex Dima
2249f929c6
Move into monaco-languages folder 2021-11-05 11:54:57 +01:00
Alex Dima
06e4658c00
6.0.0 2021-11-05 00:10:16 +01:00
Alex Dima
fe17140a89
prepare for 6.x 2021-11-05 00:10:09 +01:00
Alex Dima
65df6f61dd
🆙 monaco-editor 2021-11-05 00:09:24 +01:00
Alex Dima
eb6034e8a5
0.30.0 2021-11-05 00:06:28 +01:00
Alex Dima
4a8558dcef
Prepare for 0.30.0 2021-11-05 00:06:15 +01:00
Alex Dima
862f1c607e
2.11.1 2021-11-04 23:52:27 +01:00
Alex Dima
9f47a7d964
Fix pla filename 2021-11-04 23:52:17 +01:00
Alex Dima
1f4eda7d11
3.9.0 2021-11-04 23:46:29 +01:00
Alex Dima
a87b3a40b5
🆙 dependencies 2021-11-04 23:46:24 +01:00
Alex Dima
49f367aaca
3.9.0 2021-11-04 23:43:40 +01:00
Alex Dima
d5d0f7e76b
🆙 vscode-json-languageservice 2021-11-04 23:43:29 +01:00
Alex Dima
bb72646030
🆙 monaco-editor-core 2021-11-04 23:42:53 +01:00
Alex Dima
153561d989
3.9.0 2021-11-04 23:41:21 +01:00
Alex Dima
903992dc45
🆙 monaco-editor-core 2021-11-04 23:41:16 +01:00
Alex Dima
4fbf3a1cf2
4.10.0 2021-11-04 23:38:22 +01:00
Alex Dima
cfc503db64
🆙 typescript@4.4.4 2021-11-04 23:38:02 +01:00
Alex Dima
82dcc20042
🆙 monaco-languages@2.11.0 2021-11-04 23:35:38 +01:00
Alex Dima
f650027fc6
🆙 monaco-editor-core@0.30.0 2021-11-04 23:35:24 +01:00
Alex Dima
137ce4ea27
2.11.0 2021-11-04 23:32:33 +01:00
Alex Dima
2d30f7c061
🆙 monaco-editor-core 2021-11-04 23:32:01 +01:00
Henning Dieterichs
b96c33666f
Merge pull request #170 from popsql/pg_all_funcs
Add missing postgresql functions
2021-11-04 10:09:51 +01:00
Matthew Peveler
c1c050eb61 Add missing postgresql functions
Signed-off-by: Matthew Peveler <matt.peveler@popsql.com>
2021-11-03 18:13:00 -10:00
Henning Dieterichs
c23acaa3b7
Merge pull request #169 from popsql/pg-funcs-json
Update json functions for postgresql
2021-11-03 09:23:46 +01:00
Matthew Peveler
4b4125f30d Update json functions for postgresql
Signed-off-by: Matthew Peveler <matt.peveler@popsql.com>
2021-11-02 09:26:03 -10:00
Alexandru Dima
e4eaced459
Merge pull request #168 from popsql/pg-14-funcs
Add new functions in postgresql 14
2021-11-01 16:21:13 +01:00
Matthew Peveler
e9840b1c90 Add new functions in postgresql 14
Signed-off-by: Matthew Peveler <matt.peveler@popsql.com>
2021-10-29 11:34:53 -10:00
Alexandru Dima
c4f2e20471
Merge pull request #167 from arlosi/rawstring
Rust: highlighting raw strings and fix chars with escapes
2021-10-29 08:58:03 +02:00
Arlo Siemsen
767677f0f6 Rust: Add support for highlighting raw strings and fix chars with escapes.
Rust's raw strings were previously not supported, and chars did not correctly handle escapes.

Fixes #2552
Fixes #2481
2021-10-28 20:37:03 -07:00
Alex Dima
4ed52cbd2b
Update mysq, pgsql and sqll keywords (fixes microsoft/monaco-editor#2706) 2021-10-27 09:08:08 +02:00
Alex Dima
ecfdb35cda
0.29.1 2021-10-11 17:45:54 +02:00
Alex Dima
ce367b0b80
Prepare for 0.29.1 2021-10-11 17:45:49 +02:00
Alex Dima
7e1d706f5f
2.10.0 2021-10-11 17:40:28 +02:00
Alexandru Dima
0b103fa28c
Merge pull request #163 from sw23/main
Adding syntax highlighting support for .pla files (Programmable Logic Array)
2021-10-11 08:11:33 +02:00
Alexandru Dima
0e901e285a
Merge pull request #164 from tochicool/protobuf
Add support for Protocol Buffers language
2021-10-11 08:05:10 +02:00
Alexandru Dima
da955efc3d
Merge pull request #165 from sw23/sv_table_highlight_update
SystemVerilog: Adding better syntax highlighting for primitive table definitions
2021-10-11 07:52:16 +02:00
sw23
b763728b60 SystemVerilog: Adding better formatting for primitive definitions 2021-10-10 12:32:46 -04:00
Tochi Obudulu
8876a63cdb
Add support for Protocol Buffers language 2021-10-10 15:57:35 +01:00
sw23
2db4b4ef7f Simplifying .type to recognized any types specified 2021-10-09 11:11:26 -04:00
Spencer Williams
27c31112a6
Merge branch 'microsoft:main' into main 2021-10-09 10:13:47 -04:00
sw23
31cf2775f5 Adding syntax highlighting support for .pla files (Programmable Logic Arrays) 2021-10-09 10:12:58 -04:00
Alex Dima
79ba83e1b5
5.0.0 2021-10-08 18:55:38 +02:00
Alex Dima
9474cac9bf
Adopt latest monaco-editor 2021-10-08 18:55:23 +02:00
Alexandru Dima
493bdc6c1f
Update CONTRIBUTING.md 2021-10-08 18:53:11 +02:00
Alex Dima
7d8e983bac
0.29.0 2021-10-08 18:44:36 +02:00
Alex Dima
8b16286cc3
update monaco.d.ts 2021-10-08 18:44:21 +02:00
Alex Dima
f377e9e7ac
Prepare for 0.29.0 2021-10-08 18:42:13 +02:00
Alex Dima
49ba01f724
run prettier 2021-10-08 18:39:42 +02:00
Alex Dima
25cb9d78a8
run prettier 2021-10-08 18:39:08 +02:00
Alex Dima
b9969d41cb
run prettier 2021-10-08 18:38:24 +02:00
Alexandru Dima
ee57c14cc2
Merge pull request #92 from koto/tt
Added an example of loading Monaco with Trusted Types
2021-10-08 18:37:45 +02:00
Alex Dima
e56acf710a
run prettier 2021-10-08 18:37:20 +02:00
Alexandru Dima
97ff11be97
Merge pull request #2644 from crackalak/feature/shadowdom-aria
Added `ariaContainerElement` to shadow dom test
2021-10-08 18:31:38 +02:00
Alex Dima
64042339ee
4.9.1 2021-10-08 18:24:43 +02:00
Alex Dima
e3a760e054
Add LanguageServiceDefaults.setInlayHintsOptions 2021-10-08 18:24:37 +02:00
Alex Dima
5cba23203c
4.9.0 2021-10-08 17:56:02 +02:00
Alex Dima
4317b5353b
update deps 2021-10-08 17:55:47 +02:00
Alex Dima
d6f84c6e3b
update to latest typescript 2021-10-08 17:54:24 +02:00
Alex Dima
5f40d268df
2.9.0 2021-10-08 17:48:45 +02:00
Alex Dima
c75289c39d
update deps 2021-10-08 17:47:57 +02:00
Alexandru Dima
66f57d0811
Merge pull request #84 from paranoidjk/fix-reference
feat: support find reference to extraLib
2021-10-08 16:46:24 +02:00
Alex Dima
215112db6d
Avoid Uri.parse for fileName equality 2021-10-08 16:45:48 +02:00
Alex Dima
f2e2b1d3a4
Always instantiate .d.ts models as typescript 2021-10-08 16:19:21 +02:00
Alexandru Dima
6b6fc00cc1
Merge pull request #85 from microsoft/priv_pub
Publicly expose getters for the lang server and extra libs
2021-10-08 16:05:24 +02:00
Alex Dima
dcf7a7a058
update workspace file 2021-10-08 09:03:43 +02:00
Alexandru Dima
ed4b7ec250
Merge pull request #2640 from HKalbasi/main
Add example for inlay hints
2021-10-08 08:59:00 +02:00
Orta
85d22afc03 Publicly expose getters for the lang server and extra libs 2021-10-08 07:58:53 +01:00
Alex Dima
9ff1f28566
Add workspace file 2021-10-08 08:55:43 +02:00
Alexandru Dima
c33c68bdcc
Merge pull request #83 from troy351/main
Add type definition of `setInlayHintsOptions`
2021-10-08 07:49:41 +02:00
Alexandru Dima
bb8ac53651
Merge pull request #165 from silverwind/patch-1
Fix letter case in repo URL
2021-10-08 07:42:45 +02:00
Alexandru Dima
8d58a70300
Merge pull request #160 from mbtools/main
Update ABAP syntax
2021-10-08 07:40:29 +02:00
Alexandru Dima
5641b25d8d
Merge pull request #158 from scarolan/patch-1
Replace // with # for line comments
2021-10-08 07:39:17 +02:00
Alexandru Dima
972af31cdb
Merge pull request #159 from aaaaaa2493/main
Support Java 12-17 syntax
2021-10-08 07:38:50 +02:00
Alexandru Dima
4848249f37
Merge pull request #154 from valeriia-melnychuk/main
Implement syntax highlighting for Flow9
2021-10-08 07:38:15 +02:00
Alexandru Dima
3f21d2b2de
Merge pull request #2674 from silverwind/patch-1
Fix letter case in repo URL
2021-10-08 06:51:19 +02:00
Alexandru Dima
34de41a057
Merge pull request #2658 from Un-index/patch-2
chore: Align run button text in playground.css
2021-10-08 06:49:41 +02:00
Marc Bernard
b39800cf5e
Update ABAP syntax (#1)
General update to ABAP 7.55 syntax, bug fixes, enhancements
2021-10-04 09:59:08 -04:00
Krzysztof Kotowicz
107e6c27b8 Added an example of loading Monaco that is compliant with Trusted Types (https://web.dev/trusted-types). 2021-10-01 11:10:11 +02:00
Vladimir Turov
a92176bdfa Support Java 12-17 syntax 2021-09-29 22:23:26 +03:00
Alexandru Dima
d2c65e3b93
Merge pull request #91 from microsoft/dependabot/npm_and_yarn/nth-check-2.0.1
Bump nth-check from 2.0.0 to 2.0.1
2021-09-28 15:58:15 +02:00
silverwind
21b51b4830
Fix letter case in repo URL
The repo url in `package.json` is incorrectly using uppercase in the origanization name, fix that.
2021-09-28 15:43:10 +02:00
silverwind
9f325e1160
Fix letter case in repo URL
The repo url in `package.json` is incorrectly using uppercase in the origanization name, fix that.
2021-09-28 15:41:53 +02:00
Sean Carolan
e877a4355d
Replace // with # for line comments
The Terraform HCL documentation states that the # is the preferred and default setting for single line comments:
https://www.terraform.io/docs/language/syntax/configuration.html#comments
2021-09-27 16:56:58 -05:00
paranoidjk
e8f34f3e53 feat: support find reference to extaLib, treat extraLib as a normal model as well 2021-09-26 14:40:34 +08:00
Henning Dieterichs
6190b68c94
Repairs build script. 2021-09-23 14:59:35 +02:00
troy351
68f15991cd
Add type definition of setInlayHintsOptions 2021-09-23 14:19:23 +08:00
dependabot[bot]
d7bac5ab41
Bump nth-check from 2.0.0 to 2.0.1
Bumps [nth-check](https://github.com/fb55/nth-check) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/fb55/nth-check/releases)
- [Commits](https://github.com/fb55/nth-check/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: nth-check
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-22 16:49:24 +00:00
Henning Dieterichs
e3007c840c
4.2.0 2021-09-22 12:24:30 +02:00
Henning Dieterichs
64925db945
Adds support for monaco-editor 0.28.x 2021-09-22 12:24:27 +02:00
Henning Dieterichs
7752fecda8
Add website publish steps 2021-09-22 12:21:30 +02:00
Henning Dieterichs
44f6296aab
0.28.0 2021-09-22 12:09:25 +02:00
Henning Dieterichs
33cd46150a
Updates changelog. 2021-09-22 12:09:20 +02:00
Henning Dieterichs
563abfd711
Adds option to enable bracketPairColorization and enables typescript inlay hints in test playground. 2021-09-22 12:08:20 +02:00
Henning Dieterichs
6f93540f34
Updates monaco to 0.28.0 2021-09-22 12:08:19 +02:00
Henning Dieterichs
1a0d39eb31
4.8.1 2021-09-21 17:38:50 +02:00
Henning Dieterichs
1b8581c9aa
2.8.1 2021-09-21 17:38:48 +02:00
Henning Dieterichs
1684631ef4
3.8.1 2021-09-21 17:38:47 +02:00
Henning Dieterichs
1196e89298
3.8.1 2021-09-21 17:38:45 +02:00
Henning Dieterichs
38d3d8d988
3.8.1 2021-09-21 17:38:44 +02:00
Henning Dieterichs
7790a3d03c
Update monaco-editor-core to 0.28.1 2021-09-21 17:33:05 +02:00
Henning Dieterichs
7611cdeb2a
Update monaco-editor-core to 0.28.1 2021-09-21 17:33:03 +02:00
Henning Dieterichs
7aff4574f8
Update monaco-editor-core to 0.28.1 2021-09-21 17:33:03 +02:00
Henning Dieterichs
c83422ee30
Update monaco-editor-core to 0.28.1 2021-09-21 17:33:02 +02:00
Henning Dieterichs
632bb45fd7
Update monaco-editor-core to 0.28.1 2021-09-21 17:33:01 +02:00
Henning Dieterichs
fd784d74f6
Update monaco-editor-core to 0.28.1 2021-09-21 17:32:58 +02:00
Henning Dieterichs
bc63fbefe3
4.8.0 2021-09-21 16:50:54 +02:00
Henning Dieterichs
a78014911c
2.8.0 2021-09-21 16:50:52 +02:00
Henning Dieterichs
7864307620
3.8.0 2021-09-21 16:50:51 +02:00
Henning Dieterichs
f31fe819c8
3.8.0 2021-09-21 16:50:50 +02:00
Henning Dieterichs
9533070c7c
3.8.0 2021-09-21 16:50:49 +02:00
Henning Dieterichs
55f6c858e5
Merge pull request #157 from microsoft/dependabot/npm_and_yarn/semver-regex-3.1.3
Bump semver-regex from 3.1.2 to 3.1.3
2021-09-21 16:47:13 +02:00
Henning Dieterichs
e1cadbf946
Update monaco-editor-core 2021-09-21 16:45:56 +02:00
Henning Dieterichs
b6fe2a0292
Update monaco-editor-core 2021-09-21 16:45:46 +02:00
Henning Dieterichs
f1b1350d18
Update monaco-editor-core 2021-09-21 16:45:43 +02:00
Henning Dieterichs
9b343cc756
Update monaco-editor-core 2021-09-21 16:45:41 +02:00
Henning Dieterichs
cd18b89cd8
Update monaco-editor-core 2021-09-21 16:45:38 +02:00
Henning Dieterichs
cd4dbb626d
Update monaco-editor-core 2021-09-21 16:45:33 +02:00
dependabot[bot]
7b894fec0b
Bump semver-regex from 3.1.2 to 3.1.3
Bumps [semver-regex](https://github.com/sindresorhus/semver-regex) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/sindresorhus/semver-regex/releases)
- [Commits](https://github.com/sindresorhus/semver-regex/commits)

---
updated-dependencies:
- dependency-name: semver-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-21 00:52:15 +00:00
Un-index
f2cfcfde71
Update playground.css
make button text aligned
2021-09-11 23:22:52 +03:00
Martin Aeschlimann
b416f4a52b
update service 2021-09-09 09:33:49 +02:00
Martin Aeschlimann
9cc5cee0c5
update service 2021-09-09 09:32:25 +02:00
Alexandru Dima
dfbb6e7c5c
Merge pull request #2609 from microsoft/dependabot/npm_and_yarn/path-parse-1.0.7
Bump path-parse from 1.0.6 to 1.0.7
2021-09-07 18:09:41 +02:00
Alexandru Dima
9ac38db9ad
update deps 2021-09-07 16:15:54 +02:00
Alexandru Dima
59c4bb5939
update dependencies 2021-09-07 16:12:41 +02:00
Alexandru Dima
1ca7184cb4
Merge pull request #90 from microsoft/dependabot/npm_and_yarn/url-parse-1.5.3
Bump url-parse from 1.5.1 to 1.5.3
2021-09-07 15:43:36 +02:00
dependabot[bot]
e199c75c47
Bump url-parse from 1.5.1 to 1.5.3
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.3)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-07 13:39:14 +00:00
Alexandru Dima
0b8ce4d96e
Merge pull request #89 from microsoft/dependabot/npm_and_yarn/path-parse-1.0.7
Bump path-parse from 1.0.6 to 1.0.7
2021-09-07 15:39:07 +02:00
Alexandru Dima
3f99281cb8
Merge pull request #88 from microsoft/dependabot/npm_and_yarn/browser-esm-webpack-typescript-react/path-parse-1.0.7
Bump path-parse from 1.0.6 to 1.0.7 in /browser-esm-webpack-typescript-react
2021-09-07 15:38:50 +02:00
Alexandru Dima
5c14212618
Merge pull request #87 from microsoft/dependabot/npm_and_yarn/browser-esm-parcel/path-parse-1.0.7
Bump path-parse from 1.0.6 to 1.0.7 in /browser-esm-parcel
2021-09-07 15:38:37 +02:00
Henning Dieterichs
3ecea82819
Merge pull request #82 from Kingwl/inlayhints-support
Add inlay hints support
2021-09-06 14:43:30 +02:00
Alexandru Dima
6a882e9569
Merge pull request #160 from six-ponies/fix/import-script-protocol-error
fix: Failed to execute 'importScripts' on 'WorkerGlobalScope': The URL xxx is invalid.
2021-08-30 13:24:51 +02:00
kingwl
10e20baade Update ts 4.4 2021-08-30 13:28:24 +08:00
Dan Hughes
ca3790b68c Added ariaContainerElement to shadow dom test 2021-08-29 17:12:05 +01:00
hamidreza kalbasi
104b0cb587 add example for inlay hints 2021-08-27 12:53:29 +04:30
Alexandru Dima
14965508c7
update generated files 2021-08-26 16:55:47 +02:00
Alexandru Dima
db56675c94
Merge pull request #159 from microsoft/dependabot/npm_and_yarn/path-parse-1.0.7
Bump path-parse from 1.0.6 to 1.0.7
2021-08-25 17:43:26 +02:00
mayingcong
886541ab35 fix: import scripts error when url starts with '//' 2021-08-25 20:21:02 +08:00
Martin Aeschlimann
801e892014
use same trigger characters as in vscode: Fixes microsoft/monaco-editor#2637 2021-08-25 10:44:21 +02:00
Henning Dieterichs
a647a1b617
Merge pull request #2632 from thien-do/patch-1
Add usage with Vite to ESM Integrate doc
2021-08-24 14:40:15 +02:00
Thien Do
a73ab1223b
Add usage with Vite to ESM Integrate doc
Fix #2629
2021-08-24 18:25:50 +07:00
Alexandru Dima
848d5201ae
Merge pull request #2616 from SpaceComet/main
Small update on the website playground
2021-08-23 10:29:06 +02:00
SpaceComet
e42557eac7 Sample in the playground updated. 2021-08-19 17:35:24 -04:00
Henning Dieterichs
49672308d6
Merge pull request #156 from ladyrick/main
fix(cpp): fix cpp language integer suffix
2021-08-19 18:26:56 +02:00
LadyRick
39085a622b
fix(cpp): fix integer suffix regex (CI passed) 2021-08-19 21:21:23 +08:00
LadyRick
1003cde6f7
Merge pull request #1 from ladyrick/ladyrick/fix-cpp-integersuffix
fix(cpp): fix cpp language integer suffix
2021-08-19 17:36:41 +08:00
LadyRick
fd82e6baad
fix(cpp): fix cpp language integer suffix
the old config `/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/` also match some wrong suffix: `lll`, `llLL`, `LLl` and so on.
2021-08-19 17:34:22 +08:00
Henning Dieterichs
54e01d831e
Adds missing changelog entry for version 0.26.1. 2021-08-18 16:36:13 +02:00
Alexandru Dima
a53ac54f4e
Merge pull request #15 from Pranomvignesh/check-worker
fix(workerManager.js) : Added a check for the existence of the worker
2021-08-17 15:41:37 +02:00
Martin Aeschlimann
c8a5be4ee1
quickSuggestions do not trigger when defining a new JSON key. Fixes microsoft/monaco-editor#2579 2021-08-17 11:15:13 +02:00
SpaceComet
5b3c0d0116 Update old information on the website playground 2021-08-16 12:40:13 -04:00
SpaceComet
5204ce8300 Spelling fixed on the website playground. 2021-08-16 12:39:24 -04:00
Martin Aeschlimann
c7c029db8e
support commands 2021-08-16 16:05:17 +02:00
dependabot[bot]
0abbf3cb5c
Bump path-parse from 1.0.6 to 1.0.7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-16 10:22:51 +00:00
Henning Dieterichs
e4629337d5
4.1.2 2021-08-16 12:21:44 +02:00
Henning Dieterichs
971120f29e
Updates monaco-editor 2021-08-16 12:21:40 +02:00
Henning Dieterichs
a40145a4c9
0.27.0 2021-08-16 12:17:56 +02:00
Henning Dieterichs
d0132fe244
Updates changelog & monaco.d.ts. 2021-08-16 12:17:47 +02:00
Henning Dieterichs
05dea33db8
Update dependencies. 2021-08-16 11:58:35 +02:00
Henning Dieterichs
7903958fcc
4.7.0 2021-08-16 11:49:19 +02:00
Henning Dieterichs
ddc2f60c7e
2.7.0 2021-08-16 11:49:16 +02:00
Henning Dieterichs
116c3cf36d
3.7.0 2021-08-16 11:49:15 +02:00
Henning Dieterichs
874d98a040
3.7.0 2021-08-16 11:49:14 +02:00
Henning Dieterichs
0b1dc817dc
3.7.0 2021-08-16 11:49:13 +02:00
Henning Dieterichs
b7b0e10af4
Update monaco-editor-core dependency. 2021-08-16 11:43:11 +02:00
Henning Dieterichs
7670d8d50d
Update monaco-editor-core dependency. 2021-08-16 11:43:06 +02:00
Henning Dieterichs
aa2f269204
Update monaco-editor-core dependency. 2021-08-16 11:40:59 +02:00
Henning Dieterichs
b4b9aa7bc1
Update monaco-editor-core dependency. 2021-08-16 11:40:55 +02:00
Henning Dieterichs
7675187830
Update monaco-editor-core dependency. 2021-08-16 11:40:53 +02:00
Henning Dieterichs
f8845c945c
Merge pull request #155 from microsoft/dependabot/npm_and_yarn/path-parse-1.0.7
Bump path-parse from 1.0.6 to 1.0.7
2021-08-16 11:28:25 +02:00
Henning Dieterichs
dd73e08d19
Merge pull request #151 from kupiakos/patch-1
Remove ' as an auto-closing pair for Rust
2021-08-16 11:25:46 +02:00
Wenlu Wang
5632f5fed3 try rc 2021-08-13 16:41:26 +08:00
Wenlu Wang
39c9674e1d Merge branch 'main' into inlayhints-support 2021-08-13 16:05:36 +08:00
dependabot[bot]
477748c885
Bump path-parse from 1.0.6 to 1.0.7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-13 00:39:20 +00:00
dependabot[bot]
5a86b4a41c
Bump path-parse in /browser-esm-webpack-typescript-react
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-12 21:06:53 +00:00
dependabot[bot]
f2677d4f8e
Bump path-parse from 1.0.6 to 1.0.7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-12 03:33:52 +00:00
dependabot[bot]
27d5b2d06a
Bump path-parse from 1.0.6 to 1.0.7 in /browser-esm-parcel
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-10 19:59:12 +00:00
dependabot[bot]
5aea61bf88
Bump path-parse from 1.0.6 to 1.0.7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-10 17:45:58 +00:00
Valeriia
950497cddf Minor fixes in tests 2021-07-29 17:43:27 +03:00
Valeriia
9d8a7bdf60 Implement syntax highlighting for Flow9 2021-07-28 19:36:15 +03:00
Henning Dieterichs
c31d1933fa
Merge pull request #153 from alefragnani/add-strict-keyword-pascal-language
Adds `strict` keyword to Pascal language
2021-07-28 10:48:06 +02:00
Alessandro Fragnani
87942d7d25 Adds strict keyword to Pascal language 2021-07-27 21:24:38 -03:00
Alyssa Haroldsen
f3cb047e98
Remove ' as an auto-closing pair for Rust
They're bad for Rust lifetimes.

Fixes https://github.com/microsoft/monaco-editor/issues/2585.
2021-07-23 18:08:15 -07:00
Henning Dieterichs
c60db94932
Merge pull request #150 from lofcz/main
Fix razor + liquid render of tags with a dash symbol
2021-07-22 22:09:17 +02:00
Henning Dieterichs
52597f7064
Merge pull request #149 from jonatanklosko/jk-md-fence-closing
Properly tokenize fence closing in GitHub style code blocks
2021-07-22 22:07:55 +02:00
lofcz
d3e1f45a4e Fix razor + liquid render of tags with a dash symbol 2021-07-22 21:18:54 +02:00
Jonatan Kłosko
0ab2dffd3b Properly tokenize fence closing in GitHub style code blocks 2021-07-22 16:10:45 +02:00
Martin Aeschlimann
7099bd75fe
avoid minimatch dependency in json languageservice. Fixes microsoft/monaco-editor/issues/2578 2021-07-16 17:05:08 +02:00
Henning Dieterichs
46bc7435b7
0.26.1 2021-07-16 10:59:40 +02:00
Henning Dieterichs
34888a7d3e
Downgrades monaco-json to 3.5.0 to fix #2578. 2021-07-16 10:59:20 +02:00
Pranomvignesh
ad78615d47 fix(workerManager.js) : Added a check for the existence of the worker before calling withSyncedResources 2021-07-16 13:57:20 +05:30
Henning Dieterichs
2459e4a023
4.1.1 2021-07-16 09:28:52 +02:00
Henning Dieterichs
91dab37cd1
Fix typo. 2021-07-16 09:28:18 +02:00
Henning Dieterichs
1c7cae5c2b
4.1.0 2021-07-15 17:35:38 +02:00
Henning Dieterichs
3767bab049
Adopt monaco-editor 0.26.0. 2021-07-15 17:35:38 +02:00
Henning Dieterichs
a81a06709e
0.26.0 2021-07-15 16:43:40 +02:00
Henning Dieterichs
97afb2259b
Prepares 0.26.0 release. 2021-07-15 16:43:16 +02:00
Martin Aeschlimann
4c5bfeb135
add minimatch 2021-07-15 16:09:30 +02:00
Henning Dieterichs
17582eaec0
4.6.0 2021-07-15 14:21:38 +02:00
Henning Dieterichs
8edbbc5a7b
2.6.0 2021-07-15 14:21:35 +02:00
Henning Dieterichs
791b8223f9
3.6.0 2021-07-15 14:21:34 +02:00
Henning Dieterichs
871c66b451
3.6.0 2021-07-15 14:21:33 +02:00
Henning Dieterichs
cfdc74341d
3.6.0 2021-07-15 14:21:32 +02:00
Henning Dieterichs
219f413d22
Updates monaco-editor-core to 0.26.0 2021-07-15 14:18:11 +02:00
Henning Dieterichs
bd3b9d0442
Updates monaco-editor-core to 0.26.0 2021-07-15 14:18:09 +02:00
Henning Dieterichs
fa0053f154
Updates monaco-editor-core to 0.26.0 2021-07-15 14:18:05 +02:00
Henning Dieterichs
1fc218be40
Updates monaco-editor-core to 0.26.0 2021-07-15 14:17:55 +02:00
Henning Dieterichs
da5f1c127f
Update monaco-editor-core to 0.25.0. 2021-07-15 11:44:16 +02:00
Henning Dieterichs
781d21f954
Merge pull request #147 from nathanrreed/rustcharliteral
fix char literal highlighting #2481
2021-07-15 09:15:53 +02:00
Henning Dieterichs
7be48826ac
Merge pull request #148 from nathanrreed/roxygen
fix rust raw string highlighting #2086
2021-07-15 09:11:47 +02:00
nreed
6bc4008730 fix r roxygen comment highlighting #2086 2021-07-14 17:22:19 -04:00
nreed
c2d74bbc1d fix r roxygen comment highlighting #2086 2021-07-14 17:17:55 -04:00
nreed
e50e2a274b fix r roxygen comment highlighting #2086 2021-07-14 17:16:49 -04:00
nreed
65554d83e3 fix r roxygen comment highlighting #2086 2021-07-14 17:13:57 -04:00
nreed
26a8cec43a removed overlap with other branch 2021-07-14 15:01:26 -04:00
nreed
8c28f5c367 removed overlap with other branch 2021-07-14 14:59:13 -04:00
nreed
3765313249 Added raw string tests 2021-07-14 14:52:09 -04:00
nreed
af103dd2f6 Added byte string escape tests 2021-07-14 14:41:36 -04:00
nreed
416cea65a0 fix rust char literal highlighting #2481 2021-07-14 13:27:26 -04:00
nreed
5fa50ecc21 fix rust char literal highlighting #2481 2021-07-14 12:53:29 -04:00
nreed
075be30f2c fix rust raw string highlighting #2552 2021-07-14 12:38:06 -04:00
Alexandru Dima
96183b6e44
Merge pull request #143 from nathanrreed/main
fix c++ comment continuation highlighting #2497
2021-07-14 09:31:23 +02:00
Alex Dima
f85fd5388e
Add test 2021-07-14 09:30:17 +02:00
Alexandru Dima
772a333a1b
Merge pull request #142 from anjbur/qsharp
Add support for Q#
2021-07-14 09:23:01 +02:00
Henning Dieterichs
b37e7b64b4
Merge pull request #145 from maxwrlr/sparql
Implement Syntax-Highlighting for SPARQL
2021-07-13 09:24:30 +02:00
Martin Aeschlimann
3f845fdad1
fix scope 2021-07-07 14:32:24 +02:00
Angela Burton
781a9eff61 initial test 2021-07-06 11:45:52 -07:00
Martin Aeschlimann
f09f7bbc24
update service 2021-07-06 20:09:56 +02:00
Martin Aeschlimann
d5515f3fae
limit commands to retrigger 2021-07-06 20:02:43 +02:00
Martin Aeschlimann
3853c7d360
update service and support retrigger 2021-07-06 20:02:07 +02:00
Martin Aeschlimann
af1e5fb993
update service 2021-07-05 18:46:59 +02:00
Martin Aeschlimann
04c34d444a
auto trigger vaue completions. For https://github.com/microsoft/monaco-editor/issues/2564 2021-07-05 18:40:39 +02:00
nreed
4dbc07d557 Changed to use linecomment for continuation comments 2021-07-05 11:27:32 -04:00
Henning Dieterichs
5bb59bb0b1
Merge pull request #2563 from PisecesPeng/patch-1
semantic-tokens-provider-example/sample.js code format
2021-07-05 11:59:51 +02:00
PisecesPeng
dee5461cb1
update semantic-tokens-provider-example/sample.js 2021-07-05 17:22:35 +08:00
maxwrlr
eda372028c Implement Syntax-Highlighting for SPARQL 2021-07-04 20:02:16 +02:00
Henning Dieterichs
0b018cd216
Merge pull request #144 from compiler-explorer/swift-fileprivate
Add Swift fileprivate access modifier
2021-07-04 11:52:39 +02:00
Henning Dieterichs
c3927326fc
Merge pull request #2561 from Surm4/fix/playground/exposed-colors/sample-update
Exposed colors sample update in the playground.
2021-07-04 11:43:53 +02:00
SurmaAa
44217a8efe Exposed colors sample update in the playground. 2021-07-03 15:13:08 +02:00
RabsRincon
6247554999
Add missing fileprivate access modifier as keyword 2021-07-03 08:58:29 +02:00
RabsRincon
45a71af3f4
Adds missing Swift fileprivate access modifier
As per https://docs.swift.org/swift-book/LanguageGuide/AccessControl.html#ID5
2021-07-03 08:48:13 +02:00
Angela Burton
ab0f110432 add language configuration 2021-06-29 10:46:23 -07:00
Alexandru Dima
58344d47d1
Merge pull request #2541 from anthony-c-martin/patch-1
Add Bicep sample
2021-06-29 11:15:46 +02:00
Wenlu Wang
f40d79d54d Add inlay hints support 2021-06-29 13:15:15 +08:00
nreed
7b96ed2fbd fix c++ comment continuation highlighting #2497 2021-06-26 11:33:33 -04:00
REDMOND\anburton
16850dd85a onboard qsharp 2021-06-25 21:28:07 -07:00
Anthony Martin
91136c816f Add Bicep sample 2021-06-22 13:48:21 +00:00
Henning Dieterichs
8f6ebdc724
0.25.2 2021-06-17 22:16:58 +02:00
Henning Dieterichs
448f27d22a
Updates monaco-editor-core to 0.25.1 and prepares release of monaco-editor 0.25.2. 2021-06-17 22:15:58 +02:00
Henning Dieterichs
da855e40d5
0.25.1 2021-06-15 10:14:22 +02:00
Henning Dieterichs
45491d1a7e
Updates types caused by monaco-html update. 2021-06-15 10:13:55 +02:00
Henning Dieterichs
cb4199a26d
Updates changelog in preparation for the 0.25.1 release. 2021-06-15 10:10:00 +02:00
Alexandru Dima
bb5255962a
Merge pull request #141 from qwefgh90/main
improve a rule which freeze a page in restructuredText
2021-06-14 21:30:28 +02:00
Martin Aeschlimann
354a9ab899
monaco-html@3.5.1 2021-06-14 16:07:55 +02:00
Martin Aeschlimann
e2a78745d6
3.5.1 2021-06-14 16:03:50 +02:00
Martin Aeschlimann
d27f333f4b
registerHTMLLanguageService not available in AMD version. Fixes microsoft/monaco-editor#2525 2021-06-14 16:01:46 +02:00
Alexandru Dima
5ec642f9f5
Merge pull request #86 from microsoft/dependabot/npm_and_yarn/browser-esm-parcel/ws-5.2.3
Bump ws from 5.2.2 to 5.2.3 in /browser-esm-parcel
2021-06-14 15:21:03 +02:00
dependabot[bot]
58fc636dad
Bump ws from 5.2.2 to 5.2.3 in /browser-esm-parcel
Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/5.2.2...5.2.3)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-14 13:05:34 +00:00
Alexandru Dima
a408a3138c
Merge pull request #85 from microsoft/dependabot/npm_and_yarn/normalize-url-4.5.1
Bump normalize-url from 4.5.0 to 4.5.1
2021-06-14 15:04:58 +02:00
Choe Changwon
57a88a08c2 update the simplreRefName rule to fix freezing the page. microsoft/monaco-editor#2484 2021-06-14 01:06:51 +09:00
dependabot[bot]
5b640ff59d
Bump normalize-url from 4.5.0 to 4.5.1
Bumps [normalize-url](https://github.com/sindresorhus/normalize-url) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/sindresorhus/normalize-url/releases)
- [Commits](https://github.com/sindresorhus/normalize-url/commits)

---
updated-dependencies:
- dependency-name: normalize-url
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-12 03:10:39 +00:00
Alexandru Dima
dda62a58b7
Merge pull request #81 from spahnke/deprecated-hover-fix
Build tag text correctly for all tags
2021-06-11 15:27:15 +02:00
Sebastian Pahnke
a03a8ba908 Handle the case that tag.text is a string 2021-06-11 15:19:48 +02:00
Sebastian Pahnke
b8e0740b41 Build tag text correctly for all tags 2021-06-11 14:43:04 +02:00
Alexandru Dima
b3114eb924
Merge pull request #151 from microsoft/dependabot/npm_and_yarn/browserslist-4.16.6
Bump browserslist from 4.16.3 to 4.16.6
2021-06-11 13:27:32 +02:00
Henning Dieterichs
f3fa8ab7bd
4.0.0 2021-06-11 12:39:53 +02:00
Henning Dieterichs
8589305d82
Adopt monaco-editor 0.25.0. 2021-06-11 12:39:31 +02:00
Henning Dieterichs
9402ad3182
0.25.0 2021-06-11 12:27:41 +02:00
Henning Dieterichs
62fab0cf3c
Prepare for 0.25.0. 2021-06-11 12:27:26 +02:00
Henning Dieterichs
bfcb2c5b77
Merge pull request #2486 from JeanPerriault/fix-for-semantic-token-provider-playground
Fix error message in Safari - Semantic token play
2021-06-11 12:22:39 +02:00
Henning Dieterichs
77b9d171c0
Merge pull request #2491 from jonatanklosko/jk-elixir-sample
Add Elixir sample
2021-06-11 12:19:00 +02:00
Henning Dieterichs
3fb5fa051e
4.5.0 2021-06-11 11:52:36 +02:00
Henning Dieterichs
3161137291
Update monaco-editor-core to 0.25.0. 2021-06-11 11:52:22 +02:00
Henning Dieterichs
19ce286ce4
2.5.0 2021-06-11 11:45:13 +02:00
Henning Dieterichs
6c876fc9f9
Update monaco-editor-core to 0.25.0 2021-06-11 11:44:42 +02:00
Henning Dieterichs
6148b8a130
Merge pull request #139 from spahnke/regexp-match-indices
[JS/TS] Add support for the RegExp Match Indices flag
2021-06-11 11:42:16 +02:00
Henning Dieterichs
d9423be825
Merge pull request #140 from spahnke/override-keyword
[TS] Add override keyword
2021-06-11 11:41:01 +02:00
Henning Dieterichs
aedb82f709
3.5.0 2021-06-11 11:34:14 +02:00
Henning Dieterichs
5be4e6fdc7
Updates monaco-editor-core to 0.25.0 2021-06-11 11:33:38 +02:00
Henning Dieterichs
8c87af57ca
Update monaco-editor-core to 0.25.0. 2021-06-11 11:32:02 +02:00
Henning Dieterichs
14d67a892e
3.5.0 2021-06-11 11:24:23 +02:00
Henning Dieterichs
9e989a9689
Updates monaco-editor-core to 0.25.0 2021-06-11 11:24:02 +02:00
Alexandru Dima
cc4a7ba9b5
Merge pull request #138 from microsoft/dependabot/npm_and_yarn/ws-7.4.6
Bump ws from 7.4.2 to 7.4.6
2021-06-10 22:58:34 +02:00
Martin Aeschlimann
fdd4346891
support custom data. For microsoft/monaco-editor#2284 2021-06-10 20:21:11 +02:00
Martin Aeschlimann
c8b5d5b6d5
Support html custom data. For microsoft/monaco-editor#2284 2021-06-10 18:36:46 +02:00
Martin Aeschlimann
e3f8dd8f34
Merge pull request #14 from microsoft/aeschli/languageservice
API to register additional HTML services
2021-06-10 15:52:22 +02:00
Martin Aeschlimann
3e32a8c020
API to register additional HTML services 2021-06-10 15:49:49 +02:00
Alexandru Dima
fc06a69b8f
Merge pull request #84 from microsoft/dependabot/npm_and_yarn/ws-6.2.2
Bump ws from 6.2.1 to 6.2.2
2021-06-08 10:59:49 +02:00
Alexandru Dima
6574e5e5e5
Merge pull request #2506 from microsoft/dependabot/npm_and_yarn/ws-7.4.6
Bump ws from 7.4.5 to 7.4.6
2021-06-08 10:58:44 +02:00
dependabot[bot]
d24f1a5ad7
Bump ws from 6.2.1 to 6.2.2
Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-06 12:33:03 +00:00
Alexandru Dima
ba7abda22f
Merge pull request #80 from microsoft/more_4_4
Handle the new undefined logic in TypeScript 4.4
2021-06-04 17:47:13 +02:00
Orta
b0e254d257 Handle the new undefined logic in TypeScript 4.4 2021-06-04 12:50:22 +01:00
Alexandru Dima
a59162dbd4
Merge pull request #75 from microsoft/4_3_dev
Adds support for TypeScript 4.3 builds
2021-06-03 17:35:27 +02:00
Alex Dima
f645729aa6
Update to TypeScript 4.3.2 2021-06-03 17:33:04 +02:00
Alex Dima
ebdc056429
Merge remote-tracking branch 'origin/main' into 4_3_dev 2021-06-03 17:22:37 +02:00
Orta
9524853450 Support for TypeScript 4.4 2021-06-03 13:38:25 +01:00
Sebastian Pahnke
ab81f06037 [TS] Add override keyword 2021-06-01 10:17:21 +02:00
Sebastian Pahnke
fb643d08a4 [JS/TS] Add support for the RegExp Match Indices flag 2021-06-01 10:08:27 +02:00
Alexandru Dima
5a6d5776df
Merge pull request #81 from microsoft/dependabot/npm_and_yarn/browser-esm-webpack-typescript-react/browserslist-4.16.6
Bump browserslist from 4.14.3 to 4.16.6 in /browser-esm-webpack-typescript-react
2021-05-31 23:22:00 +02:00
Alexandru Dima
9151c25852
Merge pull request #82 from microsoft/dependabot/npm_and_yarn/browserslist-4.16.6
Bump browserslist from 4.16.3 to 4.16.6
2021-05-31 23:21:50 +02:00
Alexandru Dima
b0505adb10
Merge pull request #83 from microsoft/dependabot/npm_and_yarn/dns-packet-1.3.4
Bump dns-packet from 1.3.1 to 1.3.4
2021-05-31 23:21:40 +02:00
Alexandru Dima
aa82857f6d
Merge pull request #80 from microsoft/dependabot/npm_and_yarn/browser-esm-parcel/browserslist-4.16.6
Bump browserslist from 4.16.3 to 4.16.6 in /browser-esm-parcel
2021-05-31 23:21:29 +02:00
dependabot[bot]
2e49eaa84c
Bump dns-packet from 1.3.1 to 1.3.4
Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4.
- [Release notes](https://github.com/mafintosh/dns-packet/releases)
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mafintosh/dns-packet/compare/v1.3.1...v1.3.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-29 01:13:40 +00:00
dependabot[bot]
072f6c4cd8
Bump ws from 7.4.5 to 7.4.6
Bumps [ws](https://github.com/websockets/ws) from 7.4.5 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.4.5...7.4.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-28 23:52:09 +00:00
dependabot[bot]
45672f7b86
Bump ws from 7.4.2 to 7.4.6
Bumps [ws](https://github.com/websockets/ws) from 7.4.2 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.4.2...7.4.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-28 20:31:03 +00:00
dependabot[bot]
8d1d3da3e5
Bump browserslist from 4.16.3 to 4.16.6
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.16.3 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.16.3...4.16.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-27 01:26:38 +00:00
dependabot[bot]
afad736e9b
Bump browserslist in /browser-esm-webpack-typescript-react
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.14.3 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.14.3...4.16.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-26 18:37:15 +00:00
dependabot[bot]
89b597c1e8
Bump browserslist from 4.16.3 to 4.16.6 in /browser-esm-parcel
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.16.3 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.16.3...4.16.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-24 21:18:32 +00:00
dependabot[bot]
673a74c772
Bump browserslist from 4.16.3 to 4.16.6
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.16.3 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.16.3...4.16.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-24 20:35:48 +00:00
Jonatan Kłosko
bd55cf1f24 Add Elixir sample 2021-05-21 15:45:55 +02:00
El Jùanch0
f01c55a282
Fix error message in Safari - Semantic token play
See https://github.com/microsoft/monaco-editor/issues/2459 for details
2021-05-19 11:25:23 +02:00
Alexandru Dima
319a1ddf56
Merge pull request #137 from akonatala/update-cameligo-language-support
Update cameligo language support
2021-05-18 14:39:01 +02:00
Alex Dima
5f9cbb44b5
Merge remote-tracking branch 'origin/main' into pr/akonatala/137 2021-05-18 14:38:09 +02:00
Alexandru Dima
74dc6cecc0
Merge pull request #136 from anark/main
Add aliases and mimetypes to liquid language
2021-05-18 14:35:13 +02:00
Alex Dima
1a8360be0c
Merge remote-tracking branch 'origin/main' into pr/anark/136 2021-05-18 14:34:40 +02:00
Alexandru Dima
4c864e98d2
Merge pull request #79 from paranoidjk/extraLib
fix: support go to definition for extraLib file
2021-05-18 14:33:33 +02:00
Alexandru Dima
9a0f5e7f3b
Merge pull request #135 from mattvague/patch-1
Fix incorrect filenames for liquid
2021-05-18 14:29:33 +02:00
paranoidjk
e0c11b34f5 fix: support go to definition for extraLib file 2021-05-14 23:12:34 +08:00
Andrew Narkewicz
96f836960b add aliases and mimetypes to liquid language 2021-05-12 19:11:24 -07:00
Matt Vague
c5f090d034
Fix incorrect filenames for liquid
Turns out the convention is to have .liquid after .html. Also, I didn't implement liquid with CSS so removed that
2021-05-12 17:50:43 -07:00
Alex Dima
3517c361e6
3.1.0 2021-05-12 18:49:06 +02:00
Alex Dima
6a8411c30e
Update version matrix 2021-05-12 18:48:54 +02:00
Alex Dima
08dd4fad2b
0.24.0 2021-05-12 18:38:28 +02:00
Alex Dima
3f0fb34244
update .d.ts 2021-05-12 18:37:51 +02:00
Alex Dima
882c65e325
prepare for 0.24.0 2021-05-12 18:37:02 +02:00
Alexandru Dima
21839da687
Merge pull request #147 from k15a/use-compiler-webpack
Use compiler.webpack if available
2021-05-12 18:34:19 +02:00
Martin Aeschlimann
c306027c98
3.5.1 2021-05-12 18:32:41 +02:00
Martin Aeschlimann
cfe53c2e15
fix spec 2021-05-12 18:32:23 +02:00
Martin Aeschlimann
ae9e867dc6
update monaco.d.ts 2021-05-12 18:31:35 +02:00
Alex Dima
7462aef57b
Merge remote-tracking branch 'origin/main' into pr/k15a/147 2021-05-12 18:29:47 +02:00
Martin Aeschlimann
b80471a6bf
add DiagnosticsOptions.comments and DiagnosticsOptions.trailingCommas 2021-05-12 18:26:01 +02:00
Alexandru Dima
a4f5b5248c
Merge pull request #145 from sangmokh/global-api-option
Add globalAPI option to expose the editor API through a global monaco object
2021-05-12 18:22:57 +02:00
Alexandru Dima
02d506ac84
Merge pull request #148 from microsoft/dependabot/npm_and_yarn/postcss-8.2.15
Bump postcss from 8.2.7 to 8.2.15
2021-05-12 18:20:26 +02:00
Alex Dima
85846f57aa
3.4.0 2021-05-12 18:13:31 +02:00
Alex Dima
4bee2e646d
Adopt latest monaco-editor-core 2021-05-12 18:13:22 +02:00
Alex Dima
5bb24cf2ac
3.5.0 2021-05-12 18:11:39 +02:00
Alex Dima
1b8a998f00
Adopt latest monaco-editor-core 2021-05-12 18:11:26 +02:00
Alex Dima
f595049d3d
3.4.0 2021-05-12 18:09:27 +02:00
Alex Dima
4d93e35acf
Adopt latest monaco-editor-core 2021-05-12 18:09:15 +02:00
Alex Dima
e7d5b97033
4.4.0 2021-05-12 18:01:43 +02:00
Alex Dima
50ead0342b
Adopt latest monaco-editor-core 2021-05-12 17:59:37 +02:00
Alex Dima
9084b55571
Update typescript 2021-05-12 17:58:44 +02:00
Alex Dima
2e51a90014
2.4.0 2021-05-12 17:47:53 +02:00
Alex Dima
d78c032a75
Fixes microsoft/monaco-editor#2424: Escape consecutive @@ 2021-05-12 17:47:22 +02:00
Alex Dima
90417ad4ff
Adopt latest monaco-editor-core 2021-05-12 17:46:52 +02:00
Alexandru Dima
a96ba973c1
Merge pull request #79 from microsoft/dependabot/npm_and_yarn/postcss-8.2.15
Bump postcss from 8.2.7 to 8.2.15
2021-05-12 15:37:47 +02:00
Alexandru Dima
b8faeb5ae6
Merge pull request #78 from microsoft/dependabot/npm_and_yarn/browser-esm-webpack-typescript-react/lodash-4.17.21
Bump lodash from 4.17.20 to 4.17.21 in /browser-esm-webpack-typescript-react
2021-05-12 15:37:17 +02:00
Alex Dima
d2adc1dcd9
Fixes #2460 2021-05-12 14:24:55 +02:00
Alex Dima
3a7c892f01
Update to unreleased version of uncss in order to update to postcss@8.2.15 (fixes #2452) 2021-05-12 14:15:01 +02:00
dependabot[bot]
7a150ace74
Bump postcss from 8.2.7 to 8.2.15
Bumps [postcss](https://github.com/postcss/postcss) from 8.2.7 to 8.2.15.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.2.7...8.2.15)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-12 09:47:10 +00:00
dependabot[bot]
f611ddcdaf
Bump postcss from 8.2.7 to 8.2.15
Bumps [postcss](https://github.com/postcss/postcss) from 8.2.7 to 8.2.15.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.2.7...8.2.15)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-12 00:21:46 +00:00
dependabot[bot]
83d3e7abcf
Bump lodash in /browser-esm-webpack-typescript-react
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-11 22:12:39 +00:00
Alex Dima
8989f44eb5
Fixes microsoft/monaco-editor#2416 2021-05-11 19:43:02 +02:00
Alexandru Dima
84f5017333
Merge pull request #2473 from microsoft/dependabot/npm_and_yarn/hosted-git-info-2.8.9
Bump hosted-git-info from 2.8.8 to 2.8.9
2021-05-11 14:34:36 +02:00
Alexandru Dima
9b3954e5c5
Merge pull request #2433 from AmyQianqianwang/main
add version compare link for version greater than V0.14.3
2021-05-11 14:32:30 +02:00
Alex Dima
22e7676a8c
Add DiagnosticsOptions.onlyVisible to limit computing diagnostics to only the visible text models 2021-05-11 14:27:47 +02:00
Alexandru Dima
e9fb83dcb1
Merge pull request #76 from spahnke/related-diagnostic-fix
Deep clone diagnostic objects
2021-05-11 13:59:10 +02:00
Alexandru Dima
b60c47312b
Merge pull request #134 from NullVoxPopuli/patch-1
Add hbs alias to handlebars
2021-05-11 12:46:26 +02:00
Alexandru Dima
1c728100ce
Merge pull request #133 from microsoft/dependabot/npm_and_yarn/lodash-4.17.21
Bump lodash from 4.17.20 to 4.17.21
2021-05-11 12:44:49 +02:00
Alexandru Dima
e67efc904f
Merge pull request #132 from anthony-c-martin/bicep
Add support for Bicep language
2021-05-11 12:44:22 +02:00
Alexandru Dima
3c896884e9
Merge pull request #130 from jonatanklosko/elixir
Add Elixir language definition and tokenizer
2021-05-11 12:42:32 +02:00
Alexandru Dima
ab8e37a748
Merge pull request #128 from goodproblems/liquid
Add basic language support for Liquid
2021-05-11 12:39:10 +02:00
Alexandru Dima
273f426f5b
Merge pull request #127 from compiler-explorer/prepro-fixwes
Handle whitespace within C++ preprocessor comments
2021-05-11 12:06:27 +02:00
NullVoxPopuli
bc9c229a64
Add hbs alias to handlebars 2021-05-10 21:54:48 -04:00
Alex Dima
d6197d6e14
Fixes microsoft/monaco-editor#2398 2021-05-10 16:45:17 +02:00
dependabot[bot]
e658625799
Bump hosted-git-info from 2.8.8 to 2.8.9
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-09 23:09:09 +00:00
dependabot[bot]
e21f2e5629
Bump lodash from 4.17.20 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-07 15:54:36 +00:00
Konstantin Pschera
3e40369a31 Use compiler.webpack if available
This will use compiler.webpack if it is available.
Otherwise, it will fall back to require webpack lazily.
This will make the plugin compatible with NextJS 10.

Closes https://github.com/microsoft/monaco-editor-webpack-plugin/issues/141
2021-05-07 17:27:49 +02:00
Sangmok Han
2469cdddc3 Add globalAPI option to expose the editor API through a global monaco object 2021-05-06 10:05:43 -07:00
Anthony Martin
999aa25f2a
Add support for Bicep language 2021-04-19 15:26:10 -04:00
王倩倩
f792f4c986
Update CHANGELOG.md 2021-04-11 02:17:14 +08:00
王倩倩
5860263c42
Update CHANGELOG.md
add version compare link for version greater than V0.14.3
2021-04-11 02:14:14 +08:00
Jonatan Kłosko
bbcb5b4a55 Add tests for Elixir tokenization 2021-04-09 19:21:21 +02:00
Jonatan Kłosko
ee12401f93 Add Elixir language definition and tokenizer 2021-04-09 18:05:42 +02:00
Matt Vague
9928c69e43 Clean up 2021-04-04 18:19:14 -07:00
Matt Vague
5e4b3f14ae Implement constants, keywords, raw, builtin tags, etc 2021-04-04 16:53:29 -07:00
Matt Vague
408ad69850 First pass at implementing liquid language support 2021-04-04 15:14:02 -07:00
Matt Godbolt
5bca489245 Handle whitespace within C++ preprocessor comments 2021-03-28 16:43:08 -05:00
Alex Dima
822c1ea614
update deps 2021-03-23 11:01:26 +01:00
Your Name
64504b9ffb Handle new JSDoc tag format 2021-03-18 19:18:13 +00:00
Sebastian Pahnke
19071cd8fa Deep clone diagnostic objects
Fixes https://github.com/microsoft/monaco-editor/issues/2392
2021-03-17 12:58:05 +01:00
Alexandru Dima
92d6800a00
Document EOL for Classic Edge 2021-03-12 14:24:51 +01:00
Alex Dima
f40a55fc31
Add SECURITY.md 2021-03-10 15:09:30 +01:00
Alex Dima
c124699f22
Add SECURITY.md 2021-03-10 15:08:56 +01:00
Alex Dima
a1acf858a2
Add SECURITY.md 2021-03-10 15:08:15 +01:00
Alex Dima
8c11afab49
Add SECURITY.md 2021-03-10 15:07:39 +01:00
Alex Dima
57aa9e8a21
Add SECURITY.md 2021-03-10 15:06:54 +01:00
Alex Dima
6cfca9c29d
Add SECURITY.md 2021-03-10 15:04:53 +01:00
Alex Dima
0500e21d95
Add SECURITY.md 2021-03-10 15:04:00 +01:00
Alex Dima
d57e723bb8
Add SECURITY.md 2021-03-10 15:03:05 +01:00
Alex Dima
a3db9c0c16
update deps 2021-03-10 09:40:02 +01:00
Alex Dima
ee3e99c890
update deps 2021-03-09 15:28:18 +01:00
Alexandru Dima
764f93a838
Merge pull request #76 from microsoft/dependabot/npm_and_yarn/browser-esm-parcel/elliptic-6.5.4
Bump elliptic from 6.5.3 to 6.5.4 in /browser-esm-parcel
2021-03-09 15:27:32 +01:00
dependabot[bot]
8a727aa289
Bump elliptic from 6.5.3 to 6.5.4 in /browser-esm-parcel
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-08 22:19:45 +00:00
Alexandru Dima
a6953225a9
3.0.1 2021-03-08 11:10:42 +01:00
Alexandru Dima
9bb8895475
Fixes #142 2021-03-08 11:10:18 +01:00
Your Name
ffd28b299d Adds support for TypeScript 4.3 builds 2021-03-07 08:43:37 +00:00
Alexandru Dima
e602dddb6c
Improve website script 2021-03-05 17:06:47 +01:00
Alexandru Dima
470711442d
Document that the plugin works fine with 0.23.x 2021-03-05 16:50:59 +01:00
Alexandru Dima
2c0b52559b
update deps 2021-03-05 16:50:21 +01:00
Alexandru Dima
398b1e18de
Add Thank you notes 2021-03-05 16:48:35 +01:00
Alexandru Dima
366bbc03fb
0.23.0 2021-03-05 16:45:02 +01:00
Alexandru Dima
80dcc010ae
Prepare for 0.23.0 2021-03-05 16:44:52 +01:00
Alexandru Dima
2a94362905
3.3.0 2021-03-05 16:36:55 +01:00
Alexandru Dima
8dc663d323
update deps 2021-03-05 16:36:50 +01:00
Alexandru Dima
a61dba6bc5
3.4.0 2021-03-05 16:35:24 +01:00
Alexandru Dima
ac0f9cf966
update deps 2021-03-05 16:35:16 +01:00
Alexandru Dima
ed57760e69
3.3.0 2021-03-05 16:33:40 +01:00
Alexandru Dima
0d7f7069ca
update deps 2021-03-05 16:33:29 +01:00
Alexandru Dima
d4e91e07d8
4.3.1 2021-03-05 16:29:01 +01:00
Alexandru Dima
c258dd0cec
update deps 2021-03-05 16:28:40 +01:00
Alexandru Dima
be6a4ef68c
4.3.0 2021-03-05 16:25:36 +01:00
Alexandru Dima
57af10ae01
2.3.0 2021-03-05 16:23:02 +01:00
Alex Dima
126dbe1f6f
Fixes microsoft/monaco-editor#2370 2021-03-02 11:08:12 +01:00
Alexandru Dima
7336c2d0a1
Merge pull request #126 from mwellman17/patch-1
Add text/x-yaml MIME type.
2021-02-25 16:16:43 +01:00
Michael Wellman
0f5dda5820
Add text/x-yaml MIME type. 2021-02-24 14:59:36 -05:00
Alexandru Dima
8e1692b10d
Merge pull request #125 from compiler-explorer/cpp-annotation-fixes
Support better C++ annotation highlighting
2021-02-23 16:44:51 +01:00
Alexandru Dima
1dca22127c
Merge pull request #74 from spahnke/related-filenames
Keep fileName property of diagnostic objects and related information
2021-02-23 16:43:39 +01:00
Sebastian Pahnke
a1f9aeea18 Keep fileName property of diagnostic objects and related information 2021-02-22 10:57:02 +01:00
Alex Dima
a5b4a189c2
Move typedoc related files together 2021-02-17 08:00:17 +01:00
Alex Dima
14192f5c4e
Rename folder to typedoc 2021-02-17 07:58:16 +01:00
Alex Dima
5f1f3bb148
Adopt latest typedoc 2021-02-17 07:57:11 +01:00
Matt Godbolt
c8c2ebc277 Support whitespace between annotation brackets
See compiler-explorer/compiler-explorer#880
2021-02-15 17:39:19 -06:00
Matt Godbolt
265d83f041 Support better C++ annotation highlighting
* Uses some simple highlighting within annotations
* Supports multi-line annotations
  (see compiler-explorer/compiler-explorer#878)
2021-02-15 17:15:34 -06:00
Alexandru Dima
ec67c169a8
Merge pull request #124 from Contentmaudlin/master
Property is not a keyword in C#
2021-02-02 15:36:29 +01:00
Alexandru Dima
5a4476ee8c
update CI to also run on pull requests 2021-02-02 15:30:16 +01:00
Alexandru Dima
e8b0174a8e
update CI to also run on push 2021-02-02 15:29:22 +01:00
Mert Ussakli
262b8b30cf property is not a keyword in C# 2021-02-02 14:05:53 +00:00
Alexandru Dima
c854fa12c6
0.22.3 2021-02-01 14:39:15 +01:00
Alexandru Dima
cf629b9522
Prepare for 0.22.3 2021-02-01 14:39:10 +01:00
Alexandru Dima
4d5d53889d
0.22.2 2021-02-01 11:18:19 +01:00
Alexandru Dima
d4ef80c72e
Prepare for 0.22.2 2021-02-01 11:17:59 +01:00
Alexandru Dima
830839bd5a
Update README.md 2021-02-01 11:05:29 +01:00
Alexandru Dima
f849d3f265
0.22.1 2021-01-29 17:39:27 +01:00
Alexandru Dima
3d742c69ea
Prepare for 0.22.1 2021-01-29 17:39:20 +01:00
Alexandru Dima
9260315042
update to latest monaco-editor-core 2021-01-29 17:38:24 +01:00
Alexandru Dima
f82adbf877
3.0.0 2021-01-29 01:04:20 +01:00
Alexandru Dima
9b5e8d1910
Update dependencies 2021-01-29 01:04:14 +01:00
Alexandru Dima
e76a5b5bbb
Adopt latest monaco-editor 2021-01-29 01:01:22 +01:00
Alexandru Dima
e450fb6641
0.22.0 2021-01-29 00:58:17 +01:00
Alexandru Dima
cb1e32bf2b
prepare 0.22.0 2021-01-29 00:57:07 +01:00
Alexandru Dima
5f483af0ef
Update dependencies 2021-01-29 00:35:23 +01:00
Alexandru Dima
a92b661ea5
3.2.0 2021-01-29 00:33:10 +01:00
Alexandru Dima
c2f8ecbba8
Update dependencies 2021-01-29 00:32:57 +01:00
Alexandru Dima
0469b8fd8b
3.3.0 2021-01-29 00:30:41 +01:00
Alexandru Dima
83ed1f3fb3
Update dev dependencies 2021-01-29 00:30:26 +01:00
Alexandru Dima
34339c7214
3.2.0 2021-01-29 00:28:08 +01:00
Alexandru Dima
ff51196856
Update dev dependencies 2021-01-29 00:27:59 +01:00
Alexandru Dima
f860d7aea6
update to latest css language service 2021-01-29 00:26:43 +01:00
Alexandru Dima
5bce191a0c
Adopt latest monaco-editor-core 2021-01-29 00:25:18 +01:00
Alexandru Dima
82635e7161
4.2.0 2021-01-29 00:23:30 +01:00
Alexandru Dima
d9c66949be
Update dev dependencies 2021-01-29 00:23:12 +01:00
Alexandru Dima
eaa07c08dd
Upgrade to typescript 4.1.3 2021-01-29 00:21:25 +01:00
Alexandru Dima
fb9583ffd7
Adopt latest monaco-editor-core 2021-01-29 00:18:24 +01:00
Alexandru Dima
5294e3e929
2.2.0 2021-01-29 00:16:31 +01:00
Alexandru Dima
88ec202bad
update dev dependencies 2021-01-29 00:16:18 +01:00
Alexandru Dima
ecd888cdc5
Adopt latest monaco-editor-core 2021-01-29 00:13:12 +01:00
Alexandru Dima
d437cf3054
Fixes microsoft/monaco-editor#2182 2021-01-28 23:55:30 +01:00
Alexandru Dima
803466d050
Fixes microsoft/monaco-editor#2172 2021-01-28 22:54:35 +01:00
Alexandru Dima
1be8b30e74
Fixes microsoft/monaco-editor#2162 2021-01-28 22:44:47 +01:00
Alexandru Dima
c9255aa6eb
Fixes microsoft/monaco-editor#2325: Funnel SignatureHelpContext to TypeScript 2021-01-28 21:48:01 +01:00
Alexandru Dima
7a07b3daf7
Merge pull request #123 from arlosi/rust2018
Rust: add support for keywords from the 2018 edition
2021-01-26 15:39:10 +01:00
Arlo Siemsen
74ef32ee32 Rust: add support for keywords from the 2018 edition 2021-01-22 06:21:54 -08:00
Alexandru Dima
c038d3bdf3
0.21.3 2021-01-18 13:47:14 +01:00
Alexandru Dima
461acd159c
update changelog 2021-01-18 13:47:09 +01:00
Alexandru Dima
16f9e444cb
update monaco-editor-core 2021-01-18 13:44:14 +01:00
Alexandru Dima
72e42c9b4b
Add an electron esm sample 2020-12-30 10:04:21 +01:00
Alexandru Dima
830e5bbd42
Share electron in the root package.json 2020-12-30 09:58:39 +01:00
Alexandru Dima
86ee17e305
Improve scripts such that they work also on Windows 2020-12-30 09:51:10 +01:00
Alexandru Dima
fbf099e515
Add repro for #2264 2020-12-30 00:06:13 +01:00
Alexandru Dima
3253e929d5
Add back typescript 2020-12-29 09:02:28 +01:00
Alexandru Dima
1cada068d1
Remove CI workflow since vscode runs it now (e.g. 1619014477) 2020-12-28 22:05:43 +01:00
Alexandru Dima
14c560f898
Remove step which moved to the vscode CI 2020-12-28 18:03:19 +01:00
Alexandru Dima
27336b6fb4
Remove deprecated webpack 5 option 2020-12-28 17:05:59 +01:00
Alexandru Dima
b08878cbb3
Add node module caching 2020-12-28 16:55:20 +01:00
Alexandru Dima
1c659e7dc9
Remove unknown CLI flag 2020-12-28 15:35:51 +01:00
Alexandru Dima
bace074942
Merge pull request #2244 from microsoft/dependabot/npm_and_yarn/highlight.js-10.4.1
Bump highlight.js from 10.2.0 to 10.4.1
2020-12-28 11:00:59 +01:00
Alexandru Dima
1d126b7cfa
Merge pull request #2258 from microsoft/dependabot/npm_and_yarn/ini-1.3.7
Bump ini from 1.3.5 to 1.3.7
2020-12-28 11:00:22 +01:00
Alexandru Dima
1f05ce8a2f
update webpack related deps 2020-12-28 10:18:01 +01:00
Alexandru Dima
3ec5a44918
Merge pull request #2250 from svick/patch-1
Fixed indentation in C# sample
2020-12-28 09:51:08 +01:00
Alexandru Dima
722c968e81
Merge pull request #2186 from luminaxster/patch-1
Missing breaking change
2020-12-28 09:50:40 +01:00
Alexandru Dima
c8755ac4cd
Merge pull request #75 from microsoft/dependabot/npm_and_yarn/ini-1.3.8
Bump ini from 1.3.5 to 1.3.8
2020-12-24 21:10:04 +01:00
Alexandru Dima
63f71c7c3f
Merge pull request #74 from microsoft/dependabot/npm_and_yarn/electron-amd/ini-1.3.8
Bump ini from 1.3.5 to 1.3.8 in /electron-amd
2020-12-24 21:09:33 +01:00
Alexandru Dima
8185c5b348
Merge pull request #73 from microsoft/dependabot/npm_and_yarn/electron-amd-nodeIntegration/ini-1.3.8
Bump ini from 1.3.5 to 1.3.8 in /electron-amd-nodeIntegration
2020-12-24 21:09:12 +01:00
Alexandru Dima
4dfad91ee8
2.1.0 2020-12-24 21:04:48 +01:00
Alexandru Dima
6222e3fdb9
Add support for webpack 5 (fixes #124) 2020-12-24 15:11:04 +01:00
Alexandru Dima
733d68af03
Fix documentation (#2212) 2020-12-24 13:59:29 +01:00
Alexandru Dima
84cb0e62a3
Restore example 2020-12-24 13:52:47 +01:00
Alexandru Dima
9a7dd62fff
Fix samples (microsoft/monaco-editor#2212) 2020-12-24 13:51:58 +01:00
Alexandru Dima
c1b88facf1
Merge pull request #122 from maclockard/patch-1
Fix highlighting of GROUP BY for redshift
2020-12-23 18:10:28 +01:00
Alexandru Dima
e62d8d0d8a
Merge pull request #121 from VarghaSabee/dart/safari-bug
Safari regex error fix (negative lookbehind) #2179
2020-12-23 18:09:34 +01:00
Alexandru Dima
f1f9faf666
Merge remote-tracking branch 'origin/master' into pr/VarghaSabee/121 2020-12-23 18:08:43 +01:00
Alexandru Dima
e4aee3f5a3
Merge remote-tracking branch 'origin/master' into pr/akonatala/120 2020-12-23 18:07:12 +01:00
Alexandru Dima
2fc7f49574
Delete old build config 2020-12-23 17:41:12 +01:00
Alexandru Dima
5f8be27e1e
Add GitHub Action CI 2020-12-23 16:26:24 +01:00
Alexandru Dima
f87a5f32bc
Merge pull request #118 from dehilsterlexis/LEXER-ECL-001
LEXER-ECL-001 Lexer for ECL (Enterprise Control Language)
2020-12-23 15:42:26 +01:00
Alexandru Dima
51f6b59cc3
Fix compilation 2020-12-23 15:41:46 +01:00
Alexandru Dima
494fea68ba
Merge pull request #117 from jcchu/master
Add Modula-3 support
2020-12-23 15:37:06 +01:00
Alexandru Dima
1fd3a99e93
Merge pull request #116 from fonsecas72/fix-heredoc
terraform Fix heredoc
2020-12-23 14:51:35 +01:00
Alexandru Dima
5a17ea5a5d
Merge pull request #73 from Kingwl/jsx_emit_fix
Add new jsx emit option
2020-12-23 14:42:34 +01:00
Alexandru Dima
5413083ae7
Merge pull request #72 from microsoft/41_perf_require
Adds a regex fix for the perf_hooks import in TS 4.1
2020-12-23 14:41:29 +01:00
Alexandru Dima
f1754a3b26
Fix potential NPE 2020-12-23 14:32:45 +01:00
Mac Lockard
9fb1d9e5ae
Fix highlighting of GROUP BY
fixes https://github.com/microsoft/monaco-editor/issues/2275
2020-12-18 13:40:19 -08:00
dependabot[bot]
07c0037bae
Bump ini from 1.3.5 to 1.3.8
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-13 05:58:39 +00:00
dependabot[bot]
35ca8c06e4
Bump ini from 1.3.5 to 1.3.8 in /electron-amd
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-12 04:00:51 +00:00
dependabot[bot]
f29d232c48
Bump ini from 1.3.5 to 1.3.8 in /electron-amd-nodeIntegration
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-12 03:58:58 +00:00
Sabee
5aa272fd25 Safari regex error fix (negative lookbehind) #2179 2020-12-11 18:30:29 +01:00
dependabot[bot]
450c5e9875
Bump ini from 1.3.5 to 1.3.7
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-10 19:05:09 +00:00
Petr Onderka
b45c7b96db
Fixed indentation in C# sample 2020-12-07 15:07:52 +01:00
Wenlu Wang
63defc03a5 Add new jsx emit option 2020-12-07 17:03:06 +08:00
dependabot[bot]
464f3ec4b8
Bump highlight.js from 10.2.0 to 10.4.1
Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 10.2.0 to 10.4.1.
- [Release notes](https://github.com/highlightjs/highlight.js/releases)
- [Changelog](https://github.com/highlightjs/highlight.js/blob/master/CHANGES.md)
- [Commits](https://github.com/highlightjs/highlight.js/compare/10.2.0...10.4.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-04 17:06:24 +00:00
Alexandru Dima
ae46dfbebd
Merge pull request #10 from jpett/patch-1
Fix error Cannot read property 'getModeId' of null
2020-12-02 22:58:19 +01:00
apoorva
e00244ddb5
update 2020-11-27 15:06:38 -08:00
apoorva
eedbbc68ce
Update cameligo.ts 2020-11-27 12:37:39 -08:00
David de Hilster
3ff7e86f8c LEXER-ECL-001 Lexer for ECL (Enterprise Control Language)
Signed-off-by: David de Hilster <david.dehislter@lexisnexisrisk.com>
2020-11-05 11:12:12 -05:00
JC Chu
dffb2ebf1f Add Modula-3 support 2020-10-28 00:24:34 +08:00
Orta
cc8da6b7fb Adds a regex fix for the perf_hooks import in TS 4.1 2020-10-26 11:49:27 -04:00
jpett
a78b94491d
Fix error Cannot read property 'getModeId' of null
When a monaco editor instance is created and destroyed shortly afterwards, the error 'Cannot read property 'getModeId' of null' occurs. As far as I could trace this issue, this happens because in onModelAdd a call to setTimeout is made with a delay of 500ms, which in turn calls _doValidate. If the monaco editor instance is destroyed before the callback is called, _doValidate tries to call model.getModeId(), but model is null. The little additional null-check in this PR ensures no exception is thrown if the model cannot be determined.

Unfortunately, I wasn't able to reproduce this problem using vs code playground or similar. It is easily reproducible in our angular application which uses monaco-editor@0.21.2. Here, we display a monaco editor instance in a property editor on the right side of the screen which is newly instantiated whenever the user selects a new object on the left side of the screen. If you quickly change the items selected the error occurs. I'll be happy to provide a screen recording including the Chrome dev tools console if needed.

Last but not least: Thanks for all your great work! :)
2020-10-22 22:57:25 +02:00
Martin Aeschlimann
22746ae61a adopt schemaValidation and schemaRequest (for https://github.com/microsoft/monaco-editor/issues/1852) 2020-10-12 13:00:47 +02:00
David Gonzalez
c86c7346a8
Missing breaking change
I'm not sure what release starting 0.21.0 caused it, not other methods being static now beyond parse() and file() in monaco.uri.
Regards and keep doing this amazing project awesomER!
2020-10-10 14:36:54 -04:00
Hugo Fonseca
c16c8958e5 terraform Fix heredoc 2020-10-09 17:51:23 +01:00
Alexandru Dima
be30e69ac2
Merge pull request #115 from stla/removedWhiteSpaces
removed white spaces in constants
2020-10-08 00:22:32 +02:00
Alexandru Dima
fd9146b41b
Merge pull request #114 from stla/roxygenTags
completed the list of roxygen tags
2020-10-08 00:22:00 +02:00
stla
e111b302bc removed white spaces in constants 2020-10-07 19:17:45 +02:00
stla
4f3f360837 completed the list of roxygen tags 2020-10-07 19:09:06 +02:00
Alexandru Dima
506dba1e33
Merge pull request #113 from philipsens/master
Add auto indent for xml
2020-10-05 14:49:08 +02:00
Sergi Philipsen
a7400fc99f Add auto indent for xml 2020-10-01 15:06:28 +02:00
Alexandru Dima
d2028b1a75
Merge pull request #2161 from Gittenburg/master
Fix comment in sample
2020-09-27 15:03:04 +02:00
Alex Dima
9605800975
0.21.2 2020-09-27 14:58:23 +02:00
Alex Dima
728fe88d80
Prepare for 0.21.2 2020-09-27 14:58:15 +02:00
Alex Dima
23bd524cc3
3.1.1 2020-09-27 13:44:49 +02:00
Alex Dima
6bf10f7b32
Fixes microsoft/monaco-editor#2158 2020-09-27 13:43:03 +02:00
Gittenburg
b817a5d6b8 Fix comment in sample 2020-09-27 12:08:07 +02:00
Alex Dima
7e0afc8f43
Fixes #2155: Adopt latest typedoc themes 2020-09-25 14:47:31 +02:00
Alex Dima
47ffd256b9
Link to example of editor integrated with vscode-textmate and vscode-oniguruma 2020-09-24 22:53:02 +02:00
Alex Dima
e782cf103f
0.21.1 2020-09-24 20:58:45 +02:00
Alex Dima
2a06ef83d7
Fix version number 2020-09-24 20:58:39 +02:00
Alex Dima
3623161a9c
Prepare for 0.21.1 2020-09-24 20:58:15 +02:00
Alex Dima
bdd3de5f00
3.1.1 2020-09-24 20:48:08 +02:00
Alex Dima
10776a19b8
3.2.1 2020-09-24 20:46:57 +02:00
Alex Dima
425b0e3c9e
2.1.1 2020-09-24 20:45:34 +02:00
Alex Dima
2dcf85a5e8
4.1.1 2020-09-24 20:23:45 +02:00
Alex Dima
68b07de006
update screenshot 2020-09-24 20:19:38 +02:00
Alex Dima
08c64ab616
Fixes #2153: Add a dispose() method to the code lens provider 2020-09-24 17:55:45 +02:00
Alexandru Dima
d456465df5
Merge pull request #112 from mbtools/master
Overhaul of ABAP language based on release 7.54
2020-09-22 23:06:11 +02:00
Marc Bernard
feeaa714aa Fix operators and testcase 2020-09-22 16:40:28 -04:00
Marc Bernard
575f6764c9 Indentation 2020-09-21 18:15:45 -04:00
Marc Bernard
371afd3515 Overhaul of ABAP language based on release 7.54 2020-09-21 18:10:37 -04:00
Martin Aeschlimann
f379dfc153
Merge pull request #12 from pankajk07/master
Fixes microsoft/monaco-editor#2101
2020-09-21 07:15:52 -07:00
Alexandru Dima
6c41187baa
Merge pull request #71 from pgherveou/patch-1
Add missing setWorkerOptions
2020-09-21 15:58:22 +02:00
Alex Dima
bbedc82694
commit generated file 2020-09-21 15:57:58 +02:00
PG Herveou
8664abc331
Add missing setWorkerOptions 2020-09-21 09:54:16 -04:00
Alex Dima
8b9e18c804
Avoid scrollbars in the runner iframe 2020-09-21 15:48:30 +02:00
Pankaj Khandelwal
0b66311655
Fixes microsoft/monaco-editor#2101 2020-09-21 18:59:36 +05:30
pankajk07
f53b683f37
Merge pull request #1 from microsoft/master
Sync
2020-09-21 18:20:23 +05:30
Alex Dima
c5586a25cf
Update printWidth to 100 2020-09-21 14:31:41 +02:00
Alexandru Dima
398fd0eee6
Update CHANGELOG.md 2020-09-21 14:21:31 +02:00
Alex Dima
365af6fa65
Add shadow dom sample 2020-09-21 14:18:25 +02:00
Alex Dima
3c52c0fadf
update deps 2020-09-21 14:07:25 +02:00
Alex Dima
6950069f37
Remove X-UA-Compatible meta 2020-09-21 13:48:37 +02:00
Alex Dima
4b25f66566
Reuse common node_modules (reduce maintenance) 2020-09-21 13:46:13 +02:00
Alex Dima
db4c9f21b4
Add missing samples 2020-09-21 12:18:52 +02:00
Alex Dima
271fd7dcab
2.0.0 2020-09-21 11:51:36 +02:00
Alex Dima
1a0f0274a0
adopt latest monaco-editor 2020-09-21 11:51:11 +02:00
Martin Aeschlimann
cbb9baab8c Support schema relative imports. Fixes microsoft/monaco-editor#2097 2020-09-21 11:16:46 +02:00
Alex Dima
26ff8cb857
0.21.0 2020-09-21 11:14:44 +02:00
Alex Dima
839a3bad24
update to latest deps 2020-09-21 11:14:01 +02:00
Alex Dima
acb1bb306c
3.2.0 2020-09-21 11:00:51 +02:00
Alexandru Dima
46b863d34c
Merge pull request #12 from pankajk07/master
Fixes microsoft/monaco-editor#1999
2020-09-21 10:57:36 +02:00
Alex Dima
bb6231ad91
Replace array with immutable stack 2020-09-21 10:56:39 +02:00
Pankaj Khandelwal
77add4162b
Fixes microsoft/monaco-editor#1999: Use parent stack to keep track of the current parent and previous parents for any particular key or value part 2020-09-21 10:40:48 +02:00
Alex Dima
1ba6bff6f7
update codicons path 2020-09-19 02:35:37 +02:00
Alex Dima
474cd0d01c
Prepare for 0.21.0 2020-09-19 02:28:41 +02:00
Alexandru Dima
a5f5052c05
Merge pull request #2103 from KapitanOczywisty/semanticTokens
Semantic tokens provider example
2020-09-19 02:18:19 +02:00
Alexandru Dima
f4b71344e5
Merge pull request #2102 from fonsecas72/hcl-terraform-sample
Adding terraform / hcl samples
2020-09-19 02:17:58 +02:00
Alex Dima
09fc703127
3.1.0 2020-09-19 01:52:55 +02:00
Alex Dima
47b7fd3e2d
Set printWidth to 100 2020-09-19 01:52:42 +02:00
Alex Dima
e45e533d24
update dependencies 2020-09-19 01:52:17 +02:00
Alex Dima
2372a593b3
3.1.0 2020-09-19 01:50:28 +02:00
Alex Dima
5adfc2c139
Set printWidth to 100 2020-09-19 01:49:57 +02:00
Alex Dima
928e5ba14e
Adopt latest editor, latest language service 2020-09-19 01:49:24 +02:00
Alex Dima
7a8e83e2a0
3.1.0 2020-09-19 01:43:12 +02:00
Alex Dima
966506278e
Set printWidth to 100 2020-09-19 01:42:59 +02:00
Alex Dima
8cc4272694
update deps 2020-09-19 01:41:38 +02:00
Alex Dima
d994aae9f0
4.1.0 2020-09-19 01:36:17 +02:00
Alex Dima
4ec20bbd1f
Adopt latest monaco-editor-core, update to TS 4.0.3 2020-09-19 01:36:03 +02:00
Alex Dima
6d60341672
2.1.0 2020-09-19 01:29:02 +02:00
Alex Dima
bce6fe83af
Define printWidth at 100 2020-09-19 01:28:33 +02:00
Alex Dima
078ee54715
update deps 2020-09-19 01:27:48 +02:00
Alexandru Dima
45ffe716a2
Update CONTRIBUTING.md 2020-09-19 01:15:45 +02:00
Alex Dima
be0f95eaff
Fixes microsoft/monaco-editor#1999: use colon to change previous token to a property name 2020-09-18 23:13:43 +02:00
Alex Dima
49a548240c
var -> let 2020-09-18 23:02:53 +02:00
Alex Dima
441be95ef7
update deps 2020-09-18 22:55:18 +02:00
Alex Dima
f0d9391a9c
1.9.1 2020-09-18 22:50:41 +02:00
Alex Dima
07621e127b
Fixes microsoft/monaco-editor#2110 2020-09-18 22:50:26 +02:00
Alex Dima
60477286f3
Fixes microsoft/monaco-editor#1935 2020-09-18 21:55:20 +02:00
Alexandru Dima
7443e5ef84
Merge pull request #122 from gavinxgu/pr/custom_language_entry
feat: custom language support and absolute entry fallback
2020-09-18 21:23:55 +02:00
Alex Dima
2a73aeb3a6
Small tweaks 2020-09-18 21:23:26 +02:00
Alexandru Dima
30b94b3806
Merge pull request #116 from pwinston/readme-add-require
Add require('path') to README
2020-09-18 21:10:57 +02:00
Alex Dima
ee6d058e66
Fixes microsoft/monaco-editor#1998: make sure to always increase the version number 2020-09-18 20:57:40 +02:00
Alex Dima
0ac03ae5cd
Fixes microsoft/monaco-editor#1638: Protect against failing getCodeFixesAtPosition calls 2020-09-18 20:22:52 +02:00
Alex Dima
8381cb3579
Fixes microsoft/monaco-editor#1937: Remove debugger statement 2020-09-18 20:19:38 +02:00
Alex Dima
e31737a45d
var -> let 2020-09-18 20:14:22 +02:00
Alex Dima
c196027bdc
Increase printWidth 2020-09-18 20:07:20 +02:00
Alex Dima
233f97cde9
Adopt async 2020-09-18 20:06:07 +02:00
Alex Dima
364aa1f427
Fixes microsoft/monaco-editor#2078 2020-09-18 16:18:23 +02:00
Alex Dima
ee8392eb0c
Avoid using internals 2020-09-17 22:44:16 +02:00
Alexandru Dima
45279f68e2
Merge pull request #2112 from KapitanOczywisty/javascriptDefaults
Update example: allow peek definition
2020-09-17 22:24:02 +02:00
Alex Dima
1b39474886
Minor edits 2020-09-17 22:23:21 +02:00
Alex Dima
c564da6793
update package-lock.json 2020-09-17 22:20:15 +02:00
Alex Dima
4cede3f83f
Add test page for 2096 2020-09-17 22:14:16 +02:00
Alex Dima
e104ffa598
update more deps 2020-09-17 21:31:32 +02:00
Alex Dima
6c6bde9595
update deps 2020-09-17 21:28:39 +02:00
Alex Dima
653464ce5f
update to newer node version 2020-09-17 20:55:37 +02:00
Alexandru Dima
937fea0271
Merge pull request #2132 from minhtuanchannhan/develop
Correct url of Microsoft logo
2020-09-17 13:40:29 +02:00
Alexandru Dima
c8a45c5ade
Merge pull request #70 from SpencerSharkey/patch-1
Use typescript language for hover tooltip header
2020-09-17 10:33:26 +02:00
Tuan Le Minh
2166da9e69
Correct url of Microsoft logo 2020-09-16 10:26:34 +07:00
Spencer
3055a6e22e
Use typescript language for hover tooltip header 2020-09-13 05:01:18 -07:00
Alexandru Dima
5389ec04d0
Merge pull request #69 from microsoft/ts_4_1_b
Adds support for the requires in TS 4.1b
2020-09-11 17:19:03 +02:00
Orta
417b141df9 Update import TS 2020-09-11 11:07:41 -04:00
Alex Dima
8316fef208
Add test case for 2040 2020-09-11 13:43:47 +02:00
Alexandru Dima
decded9610
Merge pull request #2121 from xiaoxiangmoe/master
fix: A 'declare' modifier cannot be used in an already ambient context
2020-09-11 13:08:21 +02:00
Alex Dima
5acd328185
update to latest monaco-typescript 2020-09-11 13:07:23 +02:00
Alex Dima
f92998eec0
4.0.2 2020-09-11 12:58:44 +02:00
Alex Dima
a1c30dff82
Remove declare modifiers (microsoft/monaco-editor#2121) 2020-09-11 12:56:24 +02:00
Alex Dima
14ee0314c0
Improve dts script 2020-09-11 12:53:55 +02:00
Alex Dima
2bb6a93576
Improve dts script 2020-09-11 12:53:05 +02:00
Alex Dima
dfb2aaa1f4
Improve dts script 2020-09-11 12:51:36 +02:00
ZHAO Jinxiang
adf97b09cf fix: A 'declare' modifier cannot be used in an already ambient context 2020-09-11 14:29:27 +08:00
Alexandru Dima
ffca8b9634
Merge pull request #2118 from microsoft/ts_amd
Adds support for both quotes in the TS side
2020-09-09 17:27:18 +02:00
Alex Dima
2ff2f65be7
Use a regex for injecting vs/editor/editor.api as a dependency 2020-09-09 17:26:06 +02:00
Orta
c09657381e Adds support for both quotes in the TS side 2020-09-09 10:28:53 -04:00
Alexandru Dima
8a4357c301
Merge pull request #68 from microsoft/lib_shortcuts
Allows setting lib with shortnames
2020-09-09 11:12:41 +02:00
KapitanOczywisty
db327beb63 Update example: allow peek definition 2020-09-08 20:59:15 +02:00
KapitanOczywisty
51fe304f01 Remove ES6 syntax from example 2020-09-08 20:09:04 +02:00
Orta
70d1cb1704 Allows setting lib with shortnames 2020-09-08 11:37:19 -04:00
Alex Dima
2a996151d7
adopt latest monaco plugins 2020-09-08 14:51:11 +02:00
Alex Dima
6a4cd5fe25
2.0.0 2020-09-08 14:15:06 +02:00
Alex Dima
0907d3e800
improve .npmignore 2020-09-08 14:12:15 +02:00
Alex Dima
c4c0a98ef7
improve .npmignore 2020-09-08 14:11:42 +02:00
Alex Dima
cb9d6191f5
improve .npmignore 2020-09-08 14:11:13 +02:00
Alex Dima
4f7c1f574f
improve .npmignore 2020-09-08 14:10:48 +02:00
Alex Dima
ab9b790eba
4.0.1 2020-09-08 14:06:40 +02:00
Alex Dima
bd037a9faf
small style tweaks 2020-09-08 14:06:23 +02:00
Alexandru Dima
926a1051b8
Merge pull request #67 from spahnke/deprecated-api
Adopt "deprecated" API
2020-09-08 14:05:31 +02:00
Alex Dima
d7cc098c48
Use the global monaco only in the AMD case (see microsoft/monaco-editor#1974) 2020-09-08 13:40:42 +02:00
Alex Dima
1af07d9cdb
Remove use strict 2020-09-08 12:18:27 +02:00
Sebastian Pahnke
8cff40cd56 Merge branch 'master' into deprecated-api 2020-09-08 00:08:17 +02:00
Sebastian Pahnke
85c67d753f Align tag representation in suggestion items and hovers 2020-09-07 23:59:30 +02:00
Sebastian Pahnke
5f2d3f73ab Include tags in documentation string of suggestion items 2020-09-07 23:49:30 +02:00
Sebastian Pahnke
a258f3a296 Add deprecated tag to suggestion if entry is marked as deprecated 2020-09-07 22:58:28 +02:00
Alex Dima
f67f0a9cfa
update deps 2020-09-07 22:44:05 +02:00
Sebastian Pahnke
fce6b6161e Add deprecated diagnostic tag if a symbol is reported as deprecated 2020-09-07 22:35:01 +02:00
Alex Dima
8dcc86c73f
4.0.0 2020-09-07 22:30:08 +02:00
Alex Dima
cbf04705ea
3.0.0 2020-09-07 22:19:12 +02:00
Alex Dima
96feaecfa4
update to latest HTML language service 2020-09-07 22:18:53 +02:00
Alex Dima
e77dc655b9
3.0.0 2020-09-07 22:13:18 +02:00
Alex Dima
a972e015fb
update to latest CSS language service 2020-09-07 22:12:04 +02:00
Alex Dima
f6226d37f2
Tweaks for prettier 2020-09-07 22:00:53 +02:00
Alex Dima
ee95401a40
Use the global monaco only in the AMD case (see microsoft/monaco-editor#1974) 2020-09-07 21:52:41 +02:00
Alex Dima
b87c75d7e9
Run prettier 2020-09-07 18:08:18 +02:00
Alex Dima
21ceb6a387
Add prettier 2020-09-07 18:03:57 +02:00
Alex Dima
7509dfc100
update to typescript@4.0.2 2020-09-07 17:58:25 +02:00
Alex Dima
2edd71ff65
update deps 2020-09-07 17:49:49 +02:00
Alexandru Dima
251cec6aa4
Merge pull request #65 from microsoft/custom_worker
Add support for creating a custom webworker subclass
2020-09-07 17:45:08 +02:00
Alex Dima
1a46d23399
Use the global monaco only in the AMD case (see microsoft/monaco-editor#1974) 2020-09-07 16:48:41 +02:00
Alex Dima
d089cc232d
Run prettier 2020-09-07 16:29:09 +02:00
Alex Dima
ff1d221031
Add prettier 2020-09-07 16:27:40 +02:00
Alex Dima
2af61871de
Stop using old polyfills 2020-09-07 16:26:25 +02:00
Alex Dima
98cc547869
Stop using Thenable 2020-09-07 16:25:50 +02:00
Alex Dima
adfd5a1d3c
stick to using npm install for now 2020-09-07 16:23:17 +02:00
Alex Dima
fe14e563ba
3.0.2 2020-09-07 15:56:47 +02:00
Alex Dima
2f06141c30
update to latest JSON language service 2020-09-07 15:56:34 +02:00
Alex Dima
5ebacc725f
Run prettier 2020-09-07 15:48:33 +02:00
Alex Dima
9b90326796
Add prettier 2020-09-07 15:46:02 +02:00
Alex Dima
5db3946e4a
Use the global monaco only in the AMD case (see microsoft/monaco-editor#1974) 2020-09-07 15:44:26 +02:00
Alex Dima
ff1c7a5a5c
Stop using Thenable 2020-09-07 14:44:01 +02:00
Alex Dima
fb0c77cf75
Adopt latest monaco-json 2020-09-07 14:38:10 +02:00
Alex Dima
8f71c6b9a6
update deps 2020-09-07 14:31:02 +02:00
Alex Dima
64d8798d5d
3.0.1 2020-09-07 14:17:07 +02:00
Alex Dima
4f0aec5dd1
Avoid duplicating AMD modules 2020-09-07 14:17:00 +02:00
Alexandru Dima
8eaefdcbad
Merge pull request #1964 from mxschmitt/patch-2
ci: fixed smoke tests by increasing timeout
2020-09-07 13:45:22 +02:00
Alex Dima
31a9c290b4
3.0.0 2020-09-07 13:14:00 +02:00
Alex Dima
0180119c69
Avoid having diffs in monaco.d.ts 2020-09-07 13:13:32 +02:00
Alex Dima
0b344d31d0
Run prettier 2020-09-07 13:12:30 +02:00
Alex Dima
06e3393f83
Add prettier 2020-09-07 13:10:19 +02:00
Alex Dima
d75eee19c6
Adopt terser breaking change 2020-09-07 13:08:15 +02:00
Alex Dima
28d4512f33
Use the global monaco only in the AMD case (see https://github.com/microsoft/monaco-editor/issues/1974) 2020-09-07 12:24:21 +02:00
KapitanOczywisty
0a6d139688 Semantic tokens provider example 2020-09-05 03:29:27 +02:00
Hugo Fonseca
3dc8a37cc3 Adding terraform / hcl samples 2020-09-04 22:04:40 +01:00
Alex Dima
9c57d47b94
Fixes https://github.com/microsoft/monaco-editor/issues/1951 2020-09-04 17:33:05 +02:00
Alexandru Dima
5500b2ea0a
Merge pull request #111 from fonsecas72/patch-1
Adding Gemfile to ruby filenames
2020-09-04 11:24:00 +02:00
Alexandru Dima
406da26cb7
Merge pull request #110 from fonsecas72/improve-hcl 2020-09-04 11:22:12 +02:00
Alex Dima
ec11002385
run prettier 2020-09-04 11:18:50 +02:00
Hugo Fonseca
2dbc016394
Adding Gemfile to ruby filenames 2020-09-02 23:54:25 +01:00
Hugo Fonseca
9d8859a82d Improving terraform hcl 2020-09-02 23:38:01 +01:00
Alexandru Dima
7e6f0bfccb
Merge pull request #66 from spahnke/signature-markdown
Format signature and parameter documentation as Markdown
2020-09-02 17:47:35 +02:00
Alex Dima
3efc637414
Add prettier 2020-09-02 17:44:31 +02:00
Alex Dima
cff50c2a31
Run prettier 2020-09-02 17:36:59 +02:00
Alexandru Dima
256e10bb54
Merge pull request #72 from capaj/prettier 2020-09-02 17:36:09 +02:00
Alex Dima
780a5b6022
Run prettier 2020-09-02 17:35:10 +02:00
Jiří Špác
9dd7846d25
Add prettier 2020-09-02 17:29:22 +02:00
Alexandru Dima
ab8921d09b
Merge pull request #71 from capaj/master
add an example usage with webpack, react and fast refresh
2020-09-02 17:10:19 +02:00
Sebastian Pahnke
b79ec00ec5 Format signature and parameter documentation as Markdown 2020-09-02 13:27:47 +02:00
Orta
5ee395c5ee Tightens the public API 2020-08-31 13:49:34 -04:00
Orta
166e63b991 Adds a vfs project 2020-08-31 13:09:47 -04:00
Orta
89fdcf5424 Merge branch 'master' of https://github.com/microsoft/monaco-typescript into custom_worker 2020-08-31 10:53:34 -04:00
Jiří Špác
701cad7f75 add an example usage with webpack, react and fast refresh 2020-08-31 13:51:09 +02:00
Alexandru Dima
6d0fbd443f
Merge pull request #64 from microsoft/let_ts_resolve_libs 2020-08-28 10:18:06 +02:00
Alex Dima
5577502c1c
Do not load lib.d.ts files on the UI thread 2020-08-28 10:12:54 +02:00
Alex Dima
1272e92acd
Do not ship mixed line endings for .d.ts files 2020-08-28 10:03:13 +02:00
Alex Dima
ea9ddb0a8c
Adopt LibFiles in ReferenceAdapter 2020-08-28 10:00:16 +02:00
Alex Dima
6a18fe6517
Introduce LibFiles and adopt in DefinitionAdapter 2020-08-28 09:58:22 +02:00
Alex Dima
a7f23c2eba
Simplify import typescript script 2020-08-28 09:17:17 +02:00
Alex Dima
151b807fee
run import, minor edits 2020-08-28 09:07:27 +02:00
Alexandru Dima
1ca4a3a0aa
Merge pull request #109 from fonsecas72/terraform-syntax
Adding hcl / terraform language
2020-08-27 13:42:20 +02:00
Alexandru Dima
490c7b6765
Merge pull request #108 from xadegunt/systemverilog_merge_to_master 2020-08-27 13:40:28 +02:00
Alex Dima
bd35c01ba9
Merge remote-tracking branch 'origin/master' into pr/xadegunt/108 2020-08-27 13:39:22 +02:00
Spencer Williams
c77b1099da
Add Systemverilog language support
Co-authored-by: cinnamontoastmafia <brianna.k.loomis@gmail.com>
Co-authored-by: Cinnamontoastmafia <cinnamontoastmafia@users.noreply.github.com>
Co-authored-by: elakkiap <elakkiap@users.noreply.github.com>
Co-authored-by: Fred Chu <freddychu222@users.noreply.github.com>
Co-authored-by: Freddychu222 <43318067+Freddychu222@users.noreply.github.com>
Co-authored-by: NeilW2020 <neil.j.wen@gmail.com>
Co-authored-by: root <xadegunt@users.noreply.github.com>
Co-authored-by: sabalkaw <68864756+sabalkaw@users.noreply.github.com>
Co-authored-by: sago5993 <sago5993@users.noreply.github.com>
Co-authored-by: Vivian Cheng <vccheng@andrew.cmu.edu>
Co-authored-by: xadegunt <62346806+xadegunt@users.noreply.github.com>
2020-08-27 13:33:26 +02:00
Alexandru Dima
2845e42207
Merge pull request #98 from ALANVF/language-scala 2020-08-27 13:09:03 +02:00
Alex Dima
776384e14e
Remove a few left over TODOs 2020-08-27 13:08:12 +02:00
Alex Dima
87864636a3
Rematch in default case 2020-08-27 13:03:41 +02:00
Alex Dima
4b0ccacae8
Merge remote-tracking branch 'origin/master' into pr/ALANVF/98 2020-08-27 12:56:05 +02:00
Alexandru Dima
ce1ef3d8a3
Merge pull request #97 from mulderbaba/scala-support
introduce preliminary Scala support, highly inspired by src/java content
2020-08-27 10:11:50 +02:00
Alexandru Dima
a5738f657a
Merge pull request #96 from taymonbeal/typescript-update
Add asserts, bigint, and unknown to TypeScript keywords
2020-08-27 09:59:35 +02:00
Alexandru Dima
3c5b7f2ddc
Merge pull request #94 from skacurt/vb-string
[vb] fix string literals
2020-08-26 22:53:20 +02:00
Alexandru Dima
fe2c5515e1
Merge pull request #93 from mancusi/fix-handlebars-comment-syntax
Updates the comment tokenization for handlebars syntax.
2020-08-26 22:36:22 +02:00
Alex Dima
b557a57c71
Fix whitespace 2020-08-26 22:35:47 +02:00
Alexandru Dima
5e6333bf4e
Merge pull request #92 from basarat/patch-1
add .mjs support 🌹
2020-08-26 22:33:50 +02:00
Alexandru Dima
7c84b2228b
Merge pull request #91 from bolinfest/python3-keywords 2020-08-26 22:32:55 +02:00
Alex Dima
b9b5743b72
Update dependency 2020-08-26 22:30:08 +02:00
Hugo Fonseca
253d7803bb Adding hcl / terraform language 2020-08-23 22:37:16 +01:00
Orta
471de29a20 Settle on customTSWorkerFactory 2020-08-21 10:33:52 -04:00
Orta
c402ee962f Tidy up 2020-08-21 08:22:27 -04:00
Orta
3e1a236812 Make a useful sample 2020-08-21 08:04:24 -04:00
Orta
26d78129fa Add support for creating a custom webworker subclass 2020-08-21 07:43:59 -04:00
guxiang
577cfae1cf feat: custom language support and absolute entry fallback 2020-08-14 04:00:08 +08:00
Alexandru Dima
94d92a7181
Merge pull request #62 from microsoft/fix_empty_error 2020-08-07 22:33:11 +02:00
Alexandru Dima
dca2041f54
Merge pull request #60 from microsoft/allow_additional_req
Adds support for error messages to include a reference to require
2020-08-07 22:31:20 +02:00
Alex Dima
1396f98763
update deps 2020-08-06 22:27:14 +02:00
Orta
fede24ed75 Add all lib dts files 2020-08-06 13:42:03 -04:00
Orta
7b2cebe6a7 Merge branch 'master' of https://github.com/microsoft/monaco-typescript into let_ts_resolve_libs 2020-08-06 12:47:37 -04:00
Orta Therox
2d5021b402
Merge pull request #63 from microsoft/show_compiler_opts
Adds compiler options to the test page
2020-08-06 12:46:45 -04:00
Alex Dima
c00ccf8b1d
more dependencies updates 2020-08-06 15:04:57 +02:00
Alex Dima
ba1856ae5a
update deps 2020-08-06 14:57:02 +02:00
Alex Dima
7969f65220
update dependencies 2020-08-06 14:38:18 +02:00
Orta
a213b303a6 Create monaco lib models on demand 2020-07-15 18:43:32 -04:00
Orta
577f254aac NOOP 2020-07-15 18:15:10 -04:00
Orta
ca76528ce1 Revert the lib files coming through as monaco models 2020-07-15 18:13:49 -04:00
Orta Therox
0dbccdea3d
Update src/workerManager.ts
Co-authored-by: Wesley Wigham <wewigham@microsoft.com>
2020-07-09 07:28:29 -04:00
Orta
86f6d762df Use JavaScript for the language to get syntax highlighting, but not tooling 2020-07-08 15:26:18 -04:00
Orta
7a46ec2649 Adds monaco models for the lib d.ts files
Co-authored-by: Wesley Wigham <wwigham@gmail.com>
2020-07-08 15:14:38 -04:00
alan.invents
b2e616bc5f Edit monaco.contribution.ts... 2020-07-01 19:15:38 -04:00
alan.invents
b2a10419ce Finish implementing Scala 2020-07-01 18:52:31 -04:00
Orta Therox
1d6f5a0e24 Let TypeScript resolve deps in lib files + allow external tools to extend the lib support 2020-06-26 09:32:08 -04:00
Orta Therox
b717cfe2f1 Adds compiler options to the test page 2020-06-26 06:56:14 -04:00
Orta Therox
3237250330 Fix a crash in getValidSourceFile when the text content is empty 2020-06-18 09:21:07 -04:00
Orta Therox
bb69053ca5 Adds support for error messages to include a reference to require 2020-06-12 13:34:21 -04:00
Mert Caliskan
1cc49e82f5 introduce preliminary Scala support, highly inspired by src/java content. 2020-06-01 01:51:31 +03:00
Taymon A. Beal
a87d0cce83 Add asserts, bigint, and unknown to TypeScript keywords
Also, while I'm in here, consolidate typeKeywords into keywords in order to make it easier to keep this in sync with TypeScript going forward. I'm assuming that typeKeywords is not part of Monaco's public API that third-party integrations are supposed to depend on; if it is, then I can undo this.

Fixes: microsoft/monaco-editor#1978
2020-05-23 14:55:25 -04:00
Philip Winston
7d61f37314 Add require path to README 2020-05-14 08:20:30 -04:00
Max Schmitt
0a5bf64304
ci: fixed smoke tests by increasing timeout 2020-05-12 11:55:52 +02:00
Max Schmitt
1dd0635db4
feat: fix and migrate smoke tests to Playwright (#1961)
* feat: migrate e2e tests to Playwright

* fix: OS dependency

* fix: race condition

* fix: increased launch timeout
2020-05-11 09:21:24 -07:00
skacurt
93f8458ba0 [vb] fix string literals
aims to close microsoft/monaco-editor#1958 and microsoft/monaco-editor#1941
2020-05-09 01:51:10 +03:00
Justin Mancusi
3875ac87b3 Updates the comment tokenization for handlebars syntax.
This updates the tokenization to support mustaches in
block comments per the handlebars documentation [1].

[1] https://handlebarsjs.com/guide/#template-comments
2020-05-06 16:50:19 -04:00
Alex Dima
f6505d22f2
Load the editor after <body> is defined 2020-04-25 15:33:46 +02:00
Alex Dima
778ace10c0
Strip sourceMappingURL directives 2020-04-25 14:19:49 +02:00
Basarat Ali Syed
553eddf6b3
add .mjs support 🌹 2020-04-22 11:03:47 +10:00
Michael Bolin
99f2e84186 Update Python grammar to include keywords introduced in Python 3
This supports https://github.com/microsoft/monaco-editor/issues/1762.

Note the new Python 3 keywords are:

* `async`
* `await`
* `nonlocal`

I also reorganized the list a bit because it seems like it contains
a mixture of keywords and builtins (and `self`, which is neither...),
so it is helpful to be specific to illustrate how to properly maintain
the list.
2020-04-21 14:29:09 -07:00
Alex Dima
618f2cff2d
Fix compilation 2020-03-16 16:41:51 +01:00
Alex Dima
f697f2e5ba
Replace mocha with tape (for security issue) 2020-03-16 16:38:43 +01:00
Alex Dima
e47349321a
update deps 2020-03-16 14:53:18 +01:00
Alex Dima
3f5e937cf1
update deps 2020-03-16 11:40:41 +01:00
Alex Dima
0dd8a91422
update deps 2020-03-16 11:14:13 +01:00
Alexandru Dima
0c36fc7eb7
Merge pull request #105 from KevLeong/fix/monaco_path
fix: monaco path by cwd
2020-03-10 10:13:09 +01:00
Alex Dima
2ea08783c2
Fall back to looking in node_modules folder in cwd 2020-03-10 10:11:59 +01:00
Alexandru Dima
6d7b03a1de
Merge pull request #53 from Mashpoe/master
update monaco-editor
2020-03-09 11:10:21 +01:00
lianghang
849d676919 fix: monaco path by cwd 2020-03-08 15:08:20 +08:00
Mashpoe (Jacob DeHart)
30bf6e2449 update monaco-editor 2020-03-07 13:41:14 -07:00
Alexandru Dima
61a0941817
Merge pull request #57 from orta/bundle_libs
Ensure that the default es2015 libraries include dom, webworker, and scripthost
2020-03-02 17:48:25 +01:00
Alex Dima
35454d834d
Add a note to all generated files 2020-03-02 17:46:10 +01:00
Alexandru Dima
a4e1adf141
Merge pull request #88 from larshp/mocha
Mocha, fix deprecation warning regarding mocha.opts
2020-03-02 15:01:22 +01:00
Alexandru Dima
9f0b007faf
Merge pull request #87 from larshp/abap2
[ABAP] Language fixes
2020-03-02 14:59:34 +01:00
Alexandru Dima
8cd0490d1e
Merge pull request #102 from xoob/patch-1
Fix invalid regex in getWorkerUrl
2020-03-02 14:53:23 +01:00
Orta Therox
e0992c9470 Update the lib generator instead of editing the libn file directly 2020-03-01 12:39:42 -05:00
larshp
4673efd4c4 Mocha, fix deprecation warning regarding mocha.opts 2020-03-01 13:28:02 +01:00
larshp
ce6687e23b [ABAP] Language fixes 2020-03-01 13:05:52 +01:00
Orta Therox
05f3891fd1 Bump the TypeScript version, and fix the changes to the monaco API 2020-02-29 18:17:05 -05:00
Orta Therox
4fefe8993f Ensure that the default es2015 libraries include dom, webworker, and scripthost 2020-02-28 10:42:01 -05:00
Alex Brausewetter
88eef5d7d2
Fix invalid regex in getWorkerUrl
Fixes a typo introduced in #101 where the rendered regex was not escaped correctly.

```
$ npm run test
ERROR in ../node_modules/monaco-editor/esm/vs/editor/editor.api.js (include-loader!../node_modules/monaco-editor/esm/vs/editor/editor.api.js) 9:15
Module parse failed: Invalid regular expression: /^((http:)|(https:)|(file:)|(/: Unterminated group (9:15)
File was processed with these loaders:
 * ../out/loaders/include.js
You may need an additional loader to handle the result of these loaders.
|           var pathPrefix = typeof __webpack_public_path__ === 'string' ? __webpack_public_path__ : "";
|           var result = (pathPrefix ? stripTrailingSlash(pathPrefix) + '/' : '') + paths[label];
>           if (/^((http:)|(https:)|(file:)|(//))/.test(result)) {
|             var currentUrl = String(window.location);
|             var currentOrigin = currentUrl.substr(0, currentUrl.length - window.location.hash.length - window.location.search.length - window.location.pathname.length);
 @ ./index.js 2:0-77 4:0-13
```

Tested on local.
2020-02-28 14:36:16 +01:00
Alexandru Dima
77e39dbd1e
Merge pull request #86 from lexon-foundation/master
Implemented Lexon highlighting
2020-02-26 18:20:28 +01:00
Alex Dima
8589ee2ccd
Code formatting 2020-02-26 18:19:32 +01:00
Alex Dima
128d4befd8
Remove unnecessary change 2020-02-26 18:19:27 +01:00
Alexandru Dima
250984b6d2
Merge pull request #84 from VarghaSabee/feature/language-dart
Feature - dart language support
2020-02-26 18:14:44 +01:00
Arjan van Eersel
6655a9028e Implemented Lexon highlighting 2020-02-25 15:18:05 +02:00
Sabee
609014d4e6 dart - test tokenization 2020-02-24 10:10:52 +01:00
Alexandru Dima
b8e34b6913
Merge pull request #1844 from nrayburn-tech/master
Monarch documentation changes
2020-02-23 22:52:56 +01:00
Alex Dima
fa74fe012c
Add test page for running the editor-esm-bundle output 2020-02-23 22:36:33 +01:00
nrayburn
274c1c3dfc Monarch documentation changes 2020-02-22 14:00:09 -06:00
alan.invents
a467bb0774
Create scala.ts 2020-02-21 20:33:04 -05:00
Alexandru Dima
9548c68804
Merge pull request #101 from caohuilin/fix-worker-url
Fix getWorkerUrl Regex
2020-02-21 00:00:46 +01:00
caohuilin
0625d2630b fix getWorkerUrl regex 2020-02-20 19:58:39 +08:00
Alexandru Dima
209730c94f
Merge pull request #83 from LinKCoding/master
Added ".rmd" file extension to R's list of supported languages
2020-02-17 17:01:17 +01:00
Alexandru Dima
85de95e643
Merge pull request #82 from ALANVF/master
Add support for Julia
2020-02-17 17:00:25 +01:00
Alexandru Dima
6d49c51b83
Merge pull request #56 from orta/allow_access_to_dts
Allow access to read files which workers host, notably the default dts
2020-02-17 16:57:11 +01:00
Alex Dima
aee134f9c1
Add API to .d.ts 2020-02-17 16:56:39 +01:00
Alexandru Dima
d7dfa0431f
Merge pull request #55 from orta/es2015
Bump default dts to 2015
2020-02-17 16:52:46 +01:00
Orta Therox
a5b927fca1 Allow access to read files which workers host, notably the default dts 2020-02-15 13:50:30 -05:00
Sabolch Varha
9dfddf5bdc
Merge pull request #1 from nrayburn-tech/master
Dart syntax highlighting improvements
2020-02-15 00:20:49 +02:00
nrayburn
da4b0a6136 Improvements to dart syntax highlighting 2020-02-14 15:01:42 -06:00
nrayburn
5c9694ce6d Merge branch 'feature/language-dart' of https://github.com/VarghaSabee/monaco-languages 2020-02-14 14:56:28 -06:00
linkcoding
fbff7ddb9f alphabetized R extensions array 2020-02-13 22:28:11 -05:00
linkcoding
d1895cea2c added .rmd as an R file extension 2020-02-13 22:23:25 -05:00
Orta Therox
950c06f26e Bump default dts to 2015 2020-02-13 21:47:01 -05:00
alan.invents
266e2c1a39
Fixed typo 2020-02-13 18:59:43 -05:00
alan.invents
8c06e270cd
Added missing comma 2020-02-13 18:54:00 -05:00
alan.invents
7509953880
add julia 2020-02-13 18:37:29 -05:00
alan.invents
75b2a69851
Create julia.contribution.ts 2020-02-13 18:36:04 -05:00
alan.invents
39003d4b56
Create julia.test.ts 2020-02-13 18:33:44 -05:00
alan.invents
1e47fbb52a
Create julia.ts 2020-02-13 18:20:46 -05:00
Alex Dima
daabff0021
Remove usage of X-UA-Compatible 2020-02-13 17:07:01 +01:00
Alex Dima
53909ad4e9
Clarify IE11 state 2020-02-13 16:57:24 +01:00
Alex Dima
916bd49bbf
Clarify IE11 support 2020-02-13 16:34:43 +01:00
Alex Dima
8617e98da3
1.9.0 2020-02-13 10:06:47 +01:00
Alex Dima
9251a98a55
Update version matrix 2020-02-13 10:06:35 +01:00
Alex Dima
67177e284b
Fix #98: ^ works on minor, so use explicit minor versions 2020-02-13 10:05:46 +01:00
Alexandru Dima
5624ce9124
Merge pull request #81 from nrayburn-tech/master
Add _ as a supported character for Python tags/keywords
2020-02-13 10:01:48 +01:00
Sabee
ee0e0a7846 basic dart syntax support (#1827) 2020-02-12 12:30:45 +01:00
nrayburn
9deb43ba53 Add _ as a supported item for tags and keywords 2020-02-11 21:45:44 -06:00
Alexandru Dima
c299715eea
Update CHANGELOG.md 2020-02-11 09:16:44 +01:00
Alex Dima
88e57802f2
Update deps, add version matrix 2020-02-11 08:43:20 +01:00
Alex Dima
47c383a1da
Fixes #1826 (downgrade typedoc) 2020-02-11 08:28:21 +01:00
Alex Dima
5f2025c7c3
0.20.0 2020-02-11 00:23:48 +01:00
Alex Dima
fce1d2eed8
Prepare for 0.20.0 2020-02-11 00:18:08 +01:00
Alex Dima
7d0bb2e5e3
2.7.0 2020-02-10 23:51:34 +01:00
Alex Dima
2540fc020e
Adopt latest monaco-editor-core & other deps 2020-02-10 23:51:26 +01:00
Alex Dima
47ee25bf88
2.9.0 2020-02-10 23:48:17 +01:00
Alex Dima
a76443c23b
Adopt latest deps 2020-02-10 23:48:11 +01:00
Alex Dima
cbf1d6a12b
2.7.0 2020-02-10 23:46:20 +01:00
Alex Dima
1bab4e14fe
Adopt latest monaco-editor-core 2020-02-10 23:45:54 +01:00
Alex Dima
887411e17c
Adopt editor breaking changes around WorkspaceTextEdits 2020-02-10 23:34:53 +01:00
Alex Dima
dd8427dac0
3.7.0 2020-02-10 23:25:25 +01:00
Alex Dima
a9bc75441d
update deps & TS version 2020-02-10 23:25:04 +01:00
Alex Dima
1b4729c63b
1.10.0 2020-02-10 23:22:42 +01:00
Alex Dima
b54a35c660
Update dependencies 2020-02-10 23:22:32 +01:00
Alex Dima
551115f82d
Fix issue where test page does not run in IE 2020-02-10 18:10:55 +01:00
Alex Dima
46d7bf8522
Add link to diff.html 2020-02-06 22:58:37 +01:00
Alexandru Dima
05b5aa1df0
Merge pull request #80 from nrayburn-tech/master
Add support for multiline comments in Swift
2020-02-05 22:07:37 +01:00
nrayburn
28741d3741 Add support for multiline strings in Swift 2020-02-04 11:52:40 -06:00
nrayburn
fcc397a6f5 Add whitespace token to swift and update test to match 2020-02-04 11:50:53 -06:00
Alexandru Dima
4cd57f6ca3
Merge pull request #1807 from JoshuaKGoldberg/monarch-token-docs
Added section in Monarch docs for Inspect Tokens development helper
2020-02-04 16:04:39 +01:00
Josh Goldberg
cf927a9e2c Updated h2 id 2020-02-04 09:17:25 -05:00
Josh Goldberg
32926a385a Added section in Monarch docs for Inspect Tokens development helper 2020-02-04 09:15:24 -05:00
Alexandru Dima
d2577bf88c
Highlight function definitions better (#79)
Highlight function definitions better
2020-01-28 10:25:12 +01:00
Alexandru Dima
5620c27122
Update bug_report.md 2020-01-28 10:21:31 +01:00
Peng Lyu
d7ddf03fde
Validate typings can be imported correctly in simple ts project (#1785) 2020-01-27 11:30:09 -08:00
alan.invents
ff60b4a68d
Highlight function definitions better 2020-01-26 17:14:43 -05:00
Alexandru Dima
e623bb9f76
Add types for TypeScriptWorker and missing LanguageServiceDefault… (#54)
Add types for TypeScriptWorker and missing LanguageServiceDefaults methods
2020-01-23 10:00:37 +01:00
Alex Dima
b8b1a20578
Remove .d.ts generation also from esm variant 2020-01-23 09:59:03 +01:00
Alex Dima
3b7054deed
Ensure types stay in sync (check that the API is implemented) 2020-01-23 09:58:36 +01:00
Alex Dima
6a5f2c1d98
Remove synchronous methods that cannot be proxied 2020-01-23 09:48:38 +01:00
Elizabeth Craig
0d4ee9bd62 No generated declaration files 2020-01-22 15:28:24 -08:00
Elizabeth Craig
1ff72394c1 Only include a few interfaces 2020-01-22 02:13:42 -08:00
Elizabeth Craig
3f8210652c Add types for TypeScriptWorker and some missing methods from LanguageServiceDefaults 2020-01-22 00:46:17 -08:00
Alex Dima
45f731f75a
Add shadow dom test page 2020-01-20 11:00:47 +01:00
Alexandru Dima
71bbf3f7a5
Use native promises (fixes microsoft/monaco-editor#1766) 2020-01-15 16:44:09 +01:00
Alexandru Dima
01a31541c7
0.19.3 2020-01-14 16:10:08 +01:00
Alexandru Dima
736ab4b0c4
Check monaco.d.ts in 2020-01-14 16:10:02 +01:00
Alexandru Dima
cdde8b405f
Prepare for 0.19.3 2020-01-14 16:08:25 +01:00
Alexandru Dima
48bed9874a
1.9.2 2020-01-14 15:32:41 +01:00
Alexandru Dima
0994d6746c
add tokenizer for graphql language variables (#78)
add tokenizer for graphql language variables
2020-01-14 15:32:24 +01:00
Rikki Schulte
7eb550521a adjust tests for additional graphql tokenizer 2020-01-13 23:49:20 -05:00
Rikki Schulte
3655d9a96a add tokenizer for graphql language variables 2020-01-13 21:59:54 -05:00
Alexandru Dima
d6a0637288
Playground: Add keyboard shortcut to run playground code (#1756)
Playground: Add keyboard shortcut to run playground code
2020-01-10 15:06:11 +01:00
Alexandru Dima
ec24aa6171
tweaks to issue template 2020-01-10 12:31:20 +01:00
Brijesh Bittu
a279c9d743 Add keyboard shortcut to run playground code 2020-01-08 11:38:06 +05:30
Alexandru Dima
8805903bf0
1.8.2 2020-01-06 16:15:57 +01:00
Alexandru Dima
77c3f5bcb3
Adopt latest editor version (new restructuredtext language) 2020-01-06 16:15:45 +01:00
Alexandru Dima
de7d5bb2d6
Prefer https 2020-01-06 16:14:11 +01:00
Alexandru Dima
b5a0ee71c2
0.19.2 2020-01-06 16:09:36 +01:00
Alexandru Dima
7adfb57575
Prepare for 0.19.2 2020-01-06 16:09:30 +01:00
Alexandru Dima
5d26fa656f
0.19.1 2020-01-06 15:53:43 +01:00
Alexandru Dima
fe81c9998b
Add 0.19.1 changelog 2020-01-06 15:53:34 +01:00
Alexandru Dima
ae93394351
Prepare for 0.19.1 2020-01-06 15:47:24 +01:00
Alexandru Dima
65473735f8
Format sample code 2020-01-06 15:45:56 +01:00
Alexandru Dima
03db2f621f
1.9.1 2020-01-06 15:44:16 +01:00
Alexandru Dima
632bab3968
Prefer https 2020-01-06 15:42:06 +01:00
Alexandru Dima
c620a60f78
Use initial year in Copyright 2020-01-06 15:41:18 +01:00
Alexandru Dima
7bde413e17
Fixes #90: Add rule for .ttf file 2020-01-06 13:58:53 +01:00
Alexandru Dima
dc47a2706e
Update example to correctly package .ttf (microsoft/monaco-editor-webpack-plugin#90) 2020-01-06 13:57:29 +01:00
Alexandru Dima
bcd7a108ac
add support for reStructuredText (#77)
add support for reStructuredText
2020-01-06 13:54:27 +01:00
Alexandru Dima
24f923b7c0
Follow naming patterns & sort imports 2020-01-06 13:53:41 +01:00
Alexandru Dima
e2b1aa8169
Prefer https 2020-01-06 10:08:57 +01:00
Alexandru Dima
38b4e2ec0e
Fixes microsoft/monaco-editor#1729: Fix running the build on Windows (files with \r\n) 2020-01-06 10:08:36 +01:00
Alexandru Dima
ea43fa272c
Merge pull request #1738 from larshp/patch-2
Playground: fix codelens provider example
2020-01-06 09:39:06 +01:00
Alexandru Dima
592f026771
Merge pull request #1737 from larshp/patch-1
Playground: add ABAP sample
2020-01-06 09:37:24 +01:00
CHOE
c1c7d4b76a add support for reStructuredText 2019-12-30 22:31:01 +09:00
Lars Hvam
207f8be3f0
Playground: fix codelens provider example 2019-12-29 11:56:45 +01:00
Lars Hvam
3f0ee1c537
Playground: add ABAP sample 2019-12-29 10:06:57 +01:00
Alex Dima
b665c1b566
1.8.1 2019-12-21 15:19:55 +01:00
Alex Dima
7eda0d0948
Fixes #89 2019-12-21 15:18:14 +01:00
Alexandru Dima
0c05f6af28
Removes trailing comma in the tsconfig (#53)
Removes trailing comma in the tsconfig
2019-12-21 15:10:12 +01:00
Orta
f9b88b3fb8
Update tsconfig.json 2019-12-21 08:06:11 +00:00
Alex Dima
2ed113477e
Update samples to latest monaco-editor 2019-12-20 22:26:57 +01:00
Alex Dima
25ac8dca69
1.8.0 2019-12-20 22:05:01 +01:00
Alex Dima
eaacb00bb4
Handle .ttf 2019-12-20 22:04:54 +01:00
Alex Dima
98a8d5a06a
Update to latest monaco-editor-core 2019-12-20 21:54:56 +01:00
Alex Dima
2b259d70e0
0.19.0 2019-12-20 21:44:05 +01:00
Alex Dima
ccfa555758
Prepare for 0.19.0 2019-12-20 21:38:35 +01:00
Alex Dima
c4d683af71
2.6.0 2019-12-20 21:09:48 +01:00
Alex Dima
a0b002fb34
Adopt latest monaco-editor-core 2019-12-20 21:09:07 +01:00
Alex Dima
3bbef09ccf
2.8.0 2019-12-20 21:06:42 +01:00
Alex Dima
1f2a253bd5
Adopt latest monaco-editor-core 2019-12-20 21:06:35 +01:00
Alex Dima
b7f134d98b
3.6.1 2019-12-20 21:04:04 +01:00
Alex Dima
11abbeebb2
Avoid huge .d.ts files 2019-12-20 21:03:59 +01:00
Alex Dima
5b08a3733e
2.6.0 2019-12-20 20:59:33 +01:00
Alex Dima
f98e0fdff0
Adopt latest monaco-editor-core 2019-12-20 20:59:19 +01:00
Alex Dima
3b600204b8
1.9.0 2019-12-20 20:46:44 +01:00
Alex Dima
8267281d21
Fixes microsoft/monaco-editor#1708 2019-12-20 20:45:42 +01:00
Alex Dima
cdf8b88e35
3.6.0 2019-12-20 20:30:13 +01:00
Alex Dima
14fbd7c2e0
Keep idle models, do not terminate worker on idle (fixes microsoft/monaco-editor#1310) 2019-12-20 20:28:33 +01:00
Alex Dima
e4ab9e4360
Adopt strict checking (fixes microsoft/monaco-editor#1715) 2019-12-20 19:47:49 +01:00
Alexandru Dima
bc8541448a
Fix needs more info label 2019-12-20 16:14:22 +01:00
Alex Dima
4ec9d1e432
Also generate README default values 2019-12-20 15:56:59 +01:00
Alex Dima
00036c08f3
Stronger typing for the options 2019-12-20 15:46:40 +01:00
Alex Dima
bad4bcfe35
Minor tweaks 2019-12-20 15:32:02 +01:00
Alex Dima
6a5c30039f
Also generate features.ts from the monaco-editor npm module 2019-12-20 15:20:48 +01:00
Alexandru Dima
89aa3dceaa
Update README.md 2019-12-20 12:43:53 +01:00
Alexandru Dima
6ca3dba45e
Merge pull request #47 from domoritz/patch-1
Add syntax highlighting to readme
2019-12-20 12:41:29 +01:00
Alex Dima
17072a2c36
Have two electron samples: with and without nodeIntegration 2019-12-20 12:39:28 +01:00
Alex Dima
f90097dbbc
Adopt yaserver, which works on Windows 2019-12-20 12:14:33 +01:00
Alexandru Dima
10a995c595
Add import editor script 2019-12-19 17:24:19 +01:00
Alexandru Dima
f94e9a43f3
Reduce peerDependency requirement 2019-12-19 16:43:38 +01:00
Alexandru Dima
1caefef64b
Update deps 2019-12-19 16:42:52 +01:00
Alexandru Dima
802217b877
Fixes #42: Handle cross origin web workers automatically 2019-12-19 12:26:26 +01:00
Alexandru Dima
f6223d69e6
Remove worker:undefined 2019-12-19 10:41:50 +01:00
Alexandru Dima
78aceedb37
Add bot integration 2019-12-19 10:23:19 +01:00
Alexandru Dima
53f4ab5b0f
Remove unused fallback field 2019-12-18 17:52:10 +01:00
Alexandru Dima
33b130172d
Simplify code 2019-12-18 17:50:58 +01:00
Alexandru Dima
0bd24b523b
Convert to TypeScript 2019-12-18 17:42:47 +01:00
Alexandru Dima
e032f77fb9
Add support for dynamic filenames (#83)
Add support for dynamic filenames
2019-12-18 12:36:02 +01:00
Alexandru Dima
d71d21ec6f
Merge remote-tracking branch 'origin/master' into pr/jimmydief/83 2019-12-18 12:35:07 +01:00
Alexandru Dima
dfa3f22cc6
Add support for plugin-specific public path (#81)
Add support for plugin-specific public path
2019-12-18 12:21:17 +01:00
Alexandru Dima
da92d8fcc8
Merge remote-tracking branch 'origin/master' into pr/jimmydief/81 2019-12-18 12:20:22 +01:00
Alexandru Dima
e76c7068a0
Merge pull request #74 from nikeee/master
Add loader-utils and make @types/webpack a dev dependency
2019-12-18 12:14:46 +01:00
Alexandru Dima
8aa2205ff3
Simplify code since alias is no longer used 2019-12-18 12:09:59 +01:00
Alexandru Dima
5c82c65ae8
Remove more undefined fields 2019-12-18 11:53:07 +01:00
Alexandru Dima
f9a577ee8b
Remove unused field 2019-12-18 11:51:47 +01:00
Alexandru Dima
71919c681e
There is no need to list all the languages in the README 2019-12-18 11:20:12 +01:00
Alexandru Dima
eee394ef11
Use glob for bundling 2019-12-18 11:18:31 +01:00
Alexandru Dima
9ca6cef477
Sort alphabetically 2019-12-18 11:08:41 +01:00
Alexandru Dima
b16a1195eb
Discover tests via glob 2019-12-18 11:07:37 +01:00
Alexandru Dima
2811880280
Switch to terser 2019-12-18 10:59:13 +01:00
Alexandru Dima
06d7cfe314
Merge remote-tracking branch 'origin/master' into pr/rkrasiuk/67 2019-12-18 10:53:08 +01:00
Alexandru Dima
491bd2a849
Merge pull request #62 from domoritz/patch-1
Bump to 0.16
2019-12-18 10:51:37 +01:00
Alexandru Dima
f6a2196885
Fix __webpack_public_path__ within getWorkerUrl method (#63)
Fix __webpack_public_path__ within getWorkerUrl method
2019-12-18 09:44:10 +01:00
Alex Dima
f9a8e60122
Fixes #1444: Add a schema to extra lib paths 2019-12-17 16:22:45 +01:00
Alex Dima
483a447093
Add a reset sample button 2019-12-17 16:04:58 +01:00
Alexandru Dima
72321822f4
register multiple extra libs at once (#24)
register multiple extra libs at once
2019-12-17 15:57:30 +01:00
Alex Dima
1f15497486
Merge remote-tracking branch 'origin/master' into pr/DenysVuika/24 2019-12-17 15:56:31 +01:00
Alexandru Dima
ec203f864f
Merge pull request #76 from Serhioromano/master
Improvements to ST language
2019-12-17 15:37:23 +01:00
Alex Dima
07cbd6dacb
Update deps 2019-12-17 14:11:48 +01:00
Sergey Romanov
7e0f9bc899 Merge branch 'master' of https://github.com/Microsoft/monaco-languages 2019-12-17 19:08:47 +06:00
Alex Dima
4f6fa314b0
Switch to terser 2019-12-17 14:08:46 +01:00
Sergey Romanov
0400efce32 Fix tests 2019-12-17 19:04:16 +06:00
Alex Dima
9092951419
Do not bundle typescriptServices in tsMode 2019-12-17 14:00:38 +01:00
Alexandru Dima
92762e4a36
Merge pull request #52 from kisstkondoros/patch-1
Add documentation to signature help
2019-12-17 13:42:04 +01:00
Alexandru Dima
4228d13957
Update TypeScript to 3.7.2 (#51)
Update TypeScript to 3.7.2
2019-12-17 13:41:22 +01:00
Alex Dima
75b57d7643
Remove hack 2019-12-17 13:40:01 +01:00
Martin Aeschlimann
a914f02a54 update dependencies, fix selection range issue 2019-12-17 13:00:17 +01:00
Martin Aeschlimann
1e5e7200b0 polish 2019-12-17 11:51:32 +01:00
Martin Aeschlimann
f4ce69dad7 add mode configuration 2019-12-17 11:46:35 +01:00
Martin Aeschlimann
c9ee73f793 switch to terser 2019-12-17 11:35:43 +01:00
Martin Aeschlimann
de56cb86c2 add mode configuration 2019-12-17 11:33:14 +01:00
Martin Aeschlimann
972bdb614d switch to terser 2019-12-17 11:32:42 +01:00
Martin Aeschlimann
3835b013c3 add selection ranges 2019-12-17 11:17:08 +01:00
Martin Aeschlimann
adf61a891c adopt selection provider & rename provider 2019-12-17 11:04:54 +01:00
Martin Aeschlimann
1f303216a8 update dependencies 2019-12-17 11:04:25 +01:00
Alex Dima
9f9255e30e
Merge remote-tracking branch 'origin/master' into pr/katis/51 2019-12-17 11:00:50 +01:00
Martin Aeschlimann
16f88ea8e7 add selection range provider 2019-12-17 10:51:39 +01:00
Alexandru Dima
33e9ac3a88
Merge pull request #50 from ecraig12345/types
Generate and publish typings for package
2019-12-17 10:48:01 +01:00
Alexandru Dima
40dcf9d8a0
Merge pull request #49 from ecraig12345/remove-require
Remove another require call
2019-12-17 10:45:35 +01:00
Alexandru Dima
2bbb4ed4b9
Provide related information to diagnostics (#48)
Provide related information to diagnostics
2019-12-17 09:00:37 +01:00
Alex Dima
fd244a1577
Merge remote-tracking branch 'origin/master' into pr/spahnke/48 2019-12-17 08:59:09 +01:00
Alexandru Dima
92c4b95f7e
Merge pull request #47 from spahnke/mark-unnecessary
Adopt monaco.MarkerTag API
2019-12-17 08:56:49 +01:00
Alexandru Dima
e91b33e295
Add support to ignore certain diagnostics (#46)
Add support to ignore certain diagnostics
2019-12-17 08:55:09 +01:00
Alex Dima
5b9ff27ef8
Better issue templates 2019-12-17 00:05:44 +01:00
Alex Dima
a943d3d0b0
Fix comment content 2019-12-16 23:53:44 +01:00
Alex Dima
3947765710
Tweak wording 2019-12-16 23:52:59 +01:00
Alex Dima
1fb6a3ccbb
generate files 2019-12-16 22:17:13 +01:00
Alex Dima
d6706a2e60
Fixes #1352: Ensure completion items have a range set 2019-12-16 22:17:05 +01:00
Alexandru Dima
20287c8392
Merge pull request #1703 from rcjsuen/snippet-example
Add CompletionItem with snippet support to the example
2019-12-16 17:57:26 +01:00
Alexandru Dima
9ce99e38b0
Merge pull request #1617 from larshp/contributing
contributing: add details for running website locally
2019-12-16 17:53:42 +01:00
Alexandru Dima
7e5825c355
Merge pull request #1616 from larshp/symbols
playground: update symbols-provider-example
2019-12-16 17:53:03 +01:00
Alex Dima
9de193a100
Fixes microsoft/monaco-editor#1479 2019-12-16 17:43:16 +01:00
Alex Dima
b6b3e0a0db
Fixes microsoft/monaco-editor#1123 2019-12-16 17:28:57 +01:00
Alex Dima
229378ae98
Fixes microsoft/monaco-editor#1216 2019-12-16 17:23:04 +01:00
Alexandru Dima
4e2ba08fc6
Fixes microsoft/monaco-editor#557: VB can have mult-line strings 2019-12-16 16:52:02 +01:00
Martin Aeschlimann
24a660f022 update dependencies, adopt textdocument 2019-12-16 16:05:31 +01:00
Alexandru Dima
998a8b2efb
Merge pull request #75 from mbykovskyy/master
Adds cameligo language support
2019-12-16 15:15:19 +01:00
Alexandru Dima
4370bf50c7
Merge pull request #74 from spahnke/nullish-coalesce
[JS/TS] Add support for the nullish-coalesce operator
2019-12-16 15:14:09 +01:00
Alexandru Dima
307c82d5c4
Adds Markdown Table syntax highlighting (#73)
Adds Markdown Table syntax highlighting
2019-12-16 15:13:27 +01:00
Alexandru Dima
c50642f89b
Fixes microsoft/monaco-editor#1607: Add support for nested comments 2019-12-16 15:09:18 +01:00
Martin Aeschlimann
97beb02321 update service & dependencies 2019-12-16 15:08:02 +01:00
Alexandru Dima
c6b50fc678
bump deps 2019-12-16 15:01:54 +01:00
Alexandru Dima
c0fb272a34
Add strict TS checking 2019-12-13 15:16:19 +01:00
Alexandru Dima
75cb14f8f0
register tokenizers early (with promises) 2019-12-13 15:16:03 +01:00
Remy Suen
3a3d0106b6 Add CompletionItem with snippet support to the example
Many users are asking about snippet support in Monaco. Enhancing the
example on in the playground with a snippet CompletionItem will help
users learn about the feature more easily without having to dig through
Stack Overflow and GitHub issues.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
2019-12-13 08:41:19 -05:00
Martin Aeschlimann
b445fa011e update css-lsservice 2019-12-13 10:57:49 +01:00
Alex Dima
5b7c0c4bbb
Fixes #1271: Remove missing colors 2019-12-12 22:38:40 +01:00
Alexandru Dima
1e25eedcf4
Update commands.yml 2019-12-12 16:27:53 +01:00
Alexandru Dima
fc473a7565
Fixes #1561: Add graphql sample 2019-12-11 16:35:27 +01:00
Alexandru Dima
e19a56f9e1
Recreate package-lock 2019-12-11 16:11:17 +01:00
Alexandru Dima
5aeade9285
Fixes #1588: Remove overflow: hidden rule 2019-12-11 16:07:55 +01:00
Alexandru Dima
03a2082bc2
Move off deprecated uglifyjs-webpack-plugin 2019-12-11 12:52:18 +01:00
Alexandru Dima
730a8dbc40
update yaserver 2019-12-11 12:51:07 +01:00
Alexandru Dima
524549df30
update deps 2019-12-11 12:43:22 +01:00
Alexandru Dima
79b845efb7
update yaserver 2019-12-11 12:38:15 +01:00
Alexandru Dima
d8296a49bb
more deps update 2019-12-10 16:48:33 +01:00
Alexandru Dima
8dc9857968
update deps 2019-12-10 16:45:37 +01:00
Tamas Kiss
6e6f809173
Add documentation to signature help
Resolves microsoft/monaco-editor#1698
2019-12-07 11:51:36 +01:00
James Diefenderfer
5e3cec5520
add explicit loader-utils dependency 2019-11-21 13:45:12 -08:00
James Diefenderfer
3bab84bf28
add support for dynamic filenames
Add support for custom filename template for worker scripts.
2019-11-21 13:44:50 -08:00
Alex Dima
ac6f4773fc
Tweaks for #1492 2019-11-20 15:36:06 +01:00
Peng Lyu
4aeb9fb47a
Revert change log change. 2019-11-18 11:51:30 -08:00
Peng Lyu
3d0dae8fe1
CI testing for editor distro, webpack bundling and smoke test (#1675)
Bundle/Test with latest VS Code.
2019-11-18 11:50:42 -08:00
James Diefenderfer
e7551d3bf9
reference free variable 2019-11-15 12:53:28 -08:00
James Diefenderfer
c9c13e7b55
add support for plugin-specific public path
Override the public path from which files generated by this plugin will be served. This wins out over Webpack's dynamic runtime path and can be useful to avoid attempting to load workers cross-origin when using a CDN for other static resources.
2019-11-15 12:47:26 -08:00
Alexandru Dima
68d9e00fbe
switch to yaserver 2019-11-13 11:45:19 +01:00
Joni Katajamäki
74707cb636 Update TypeScript to 3.7.2 2019-11-09 17:56:19 +02:00
Sergey Romanov
fba61ffccf Changes 2019-11-03 12:00:13 +06:00
Maksym Bykovskyy
c123d330e7 Added cameligo language support 2019-10-30 23:37:00 -07:00
Alexandru Dima
1ac58eb592
Enable VS Code Bot 2019-10-29 17:15:11 +01:00
Elizabeth Craig
a3a6f7981a Generate and publish typings for package 2019-10-26 00:43:57 -07:00
Elizabeth Craig
99f7b1185c Remove another require call 2019-10-26 00:29:21 -07:00
Sebastian Pahnke
aff86cc64c Add support for the nullish-coalesce operator 2019-10-14 08:54:33 +02:00
Niklas Mollenhauer
f397fae745
npm audit fix 2019-10-08 21:59:05 +02:00
Niklas Mollenhauer
21fb24c290
Resolve #70 2019-10-08 21:58:42 +02:00
Niklas Mollenhauer
adc49310ee
Resolve #73 2019-10-08 21:57:58 +02:00
Sebastian Pahnke
8b18d160db Provide related information to diagnostics 2019-10-07 14:33:21 +02:00
Sebastian Pahnke
933c7faef2 Support diagnostics of type unnecessary 2019-10-07 13:37:40 +02:00
Sebastian Pahnke
d5b5ce14f4 Add support to ignore certain diagnostics 2019-10-07 12:09:31 +02:00
Lars Hvam
1732115bbd
contributing: clarify "running website locally"
contributing: clarify "running website locally" section
another step is required to start the local webserver
2019-10-06 16:00:35 +02:00
larshp
d869590a5e playground_ update symbols-provider-example 2019-10-06 15:45:57 +02:00
Steven Degutis
5b64fd4938
Adds Markdown Table syntax highlighting
New styles used are `keyword.table.{header,left,middle,right}`.
2019-10-03 10:04:29 -05:00
Alexandru Dima
b7194c4617
run in IE11 2019-10-03 15:34:00 +02:00
Alexandru Dima
c050127710
Adds a CodeAction provider to support fixits (#40)
Adds a CodeAction provider to support fixits
2019-10-02 22:27:36 +02:00
Alex Dima
91e9a453c9
Merge remote-tracking branch 'origin/master' into pr/orta/40 2019-10-02 22:26:11 +02:00
Alex Dima
7104a97f34
Use etag 2019-10-02 22:22:11 +02:00
Alexandru Dima
a5ee0c964f
Merge pull request #45 from larshp/typo
fix typo
2019-10-02 22:10:03 +02:00
Alexandru Dima
f7d75e139c
Update ci.yml 2019-10-02 22:08:59 +02:00
Alexandru Dima
301d809ebb
Merge pull request #43 from microsoft/actions_ci
Adds a CI to check that the build compiles
2019-10-02 22:07:09 +02:00
Alexandru Dima
155292c59d
Merge pull request #44 from orta/store_code
Let changes to the test file persist
2019-10-02 22:06:36 +02:00
Alexandru Dima
558be96998
Merge pull request #42 from orta/remove_daily
Remove daily infrastructure
2019-10-02 22:05:18 +02:00
Orta Therox
c6ad8230be Use the code deltas from TS only, and use the right kind name to trigger the popover 2019-10-01 09:15:27 -04:00
larshp
274cc4a172 fix typo 2019-10-01 07:52:11 +02:00
Alexandru Dima
e0636d94ff
Adopt latest API breakage 2019-09-30 15:46:51 +02:00
Orta Therox
75e4622b1e Adds a CI to check that the build compiles 2019-09-26 11:41:52 -04:00
Orta Therox
53be7ba6a0 Let changes to the test file persist 2019-09-26 11:37:17 -04:00
Orta Therox
e86c4f00bf Merge branch 'master' of https://github.com/microsoft/monaco-typescript into add_code_actions 2019-09-26 08:04:49 -04:00
Orta Therox
02af058977 Remove daily infrastructure 2019-09-21 07:55:30 -04:00
Alex Dima
dc793af002 0.18.1 2019-09-19 11:19:43 +02:00
Alex Dima
94fad9287a more tweaks to the changelog 2019-09-19 11:19:04 +02:00
Alex Dima
d3fdf3bfc7 Fixes #1305: avoid pointing to missing source maps 2019-09-19 11:12:59 +02:00
Alex Dima
c854d18c35 prepare for 0.18.1 2019-09-19 11:04:00 +02:00
Alex Dima
aa757660ec check in generated samples 2019-09-19 10:54:02 +02:00
Alex Dima
6b6ddf11a7 Generate samples 2019-09-19 10:53:50 +02:00
Alexandru Dima
e93745ede8
Merge pull request #1537 from zhanghongnian/issue#1180
fix demo: completion provider example
2019-09-19 10:53:43 +02:00
Alexandru Dima
9ac4ec836b
Structured text example (#1552)
Structured text example
2019-09-19 10:45:45 +02:00
Alexandru Dima
e647012c72
Merge pull request #1543 from mradkov/master
Add Sophia ML example
2019-09-19 10:45:25 +02:00
Alexandru Dima
356e291d1b
Merge pull request #1387 from ehsan-mohammadi/master
Updated html sample code
2019-09-19 10:43:44 +02:00
Alexandru Dima
40cf59faad
Add Pascal samples (#1358)
Add Pascal samples
2019-09-19 10:41:25 +02:00
Alexandru Dima
1579cafcad
Merge pull request #1351 from datou0412/master
Add koltin sample for website
2019-09-19 10:40:34 +02:00
Alex Dima
b3ca1387e1 Update deps 2019-09-19 10:37:21 +02:00
Alex Dima
a819bbcf45 2.5.3 2019-09-19 10:32:43 +02:00
Alex Dima
098e45a0cc Adopt latest monaco-editor-core 2019-09-19 10:32:33 +02:00
Alex Dima
f3afc1b721 2.7.0 2019-09-19 10:24:52 +02:00
Alexandru Dima
fbf2532136
Upgrade dependencies (#11)
Upgrade dependencies
2019-09-19 10:24:07 +02:00
Alex Dima
f8b00d3a06 Merge remote-tracking branch 'origin/master' into pr/domoritz/11 2019-09-19 10:23:13 +02:00
Alexandru Dima
58c8efef50
Add config to disable default formatter (#10)
Add config to disable default formatter
2019-09-19 10:19:56 +02:00
Alex Dima
5300c90f58 Merge remote-tracking branch 'origin/master' into pr/domoritz/10 2019-09-19 10:18:10 +02:00
Alex Dima
aeab384123 2.5.1 2019-09-19 10:07:52 +02:00
Alex Dima
3fec0c1bcf Adopt latest monaco-editor-core 2019-09-19 10:07:38 +02:00
Alex Dima
0ed9a6c3e9 1.8.0 2019-09-19 09:54:13 +02:00
Alex Dima
39e73742b4 Adopt latest monaco-editor-core 2019-09-19 09:54:00 +02:00
Alexandru Dima
f67f33d8bb
Merge pull request #72 from larshp/abap
[ABAP] Add ABAP language support
2019-09-19 09:50:06 +02:00
Alexandru Dima
1cea151b6b
Merge pull request #71 from ocrampete16/twig-support
Add support for the Twig template language
2019-09-19 09:49:27 +02:00
Alexandru Dima
ee734dd791
Merge pull request #70 from larshp/guide
readme: align "add new language" example
2019-09-19 09:48:07 +02:00
Alexandru Dima
577406a3f5
Merge pull request #69 from DefinitelyNotAGoat/master
pascaligo: adding pascaligo language support
2019-09-19 09:47:24 +02:00
Alex Dima
3596f46e41 3.5.1 2019-09-19 09:44:28 +02:00
Alex Dima
0dd1066fc4 formatting options & source formatting 2019-09-19 09:43:26 +02:00
Alex Dima
559bc5255a Merge remote-tracking branch 'origin/master' into pr/orta/40 2019-09-19 09:19:03 +02:00
Alexandru Dima
7d4d30f874
Merge pull request #39 from spahnke:rename-provider
Add a rename provider
2019-09-19 09:12:29 +02:00
Sebastian Pahnke
ceff666ed1 Add a rename provider 2019-09-19 07:14:19 +02:00
Alex Dima
374dc8fd95 Move off broken http-server (on Windows) 2019-09-18 17:55:03 +02:00
Alex Dima
01ce7f0d4c update deps 2019-09-18 17:11:57 +02:00
Alexandru Dima
2c0cc512fa
Merge pull request #41 from blutorange/master
Fix microsoft/monaco-editor#1576 update dependency to core
2019-09-18 16:30:52 +02:00
Lars Hvam
a73e4de7be
Update README.md 2019-09-12 16:32:48 +02:00
larshp
70dcf9020c more tests and fixes 2019-09-12 16:27:20 +02:00
larshp
5bdff0c4a7 add tests 2019-09-11 08:12:16 +02:00
Marco Petersen
63e076eb1f Add HTML rules w/ substate 2019-09-10 14:13:27 +02:00
Alex Dima
c9cd029f2a update deps 2019-09-10 14:03:58 +02:00
Marco Petersen
b708d609d0 Add back HTML substate to tests 2019-09-10 13:52:48 +02:00
Marco Petersen
5883288970 Add HTML lexing info 2019-09-10 12:48:43 +02:00
Marco Petersen
8c432bf06e Add HTML rich language config 2019-09-10 12:48:28 +02:00
Marco Petersen
737b9e4b88 Add HTML tests minus the substate 2019-09-10 12:48:04 +02:00
Marco Petersen
78ce549566 Discard unnecessary test 2019-09-10 12:47:20 +02:00
Marco Petersen
b83621ff68 Finish Twig test cases 2019-09-10 12:13:41 +02:00
Marco Petersen
bcb9eb1b11 Add preliminary tests 2019-09-10 11:58:39 +02:00
Marco Petersen
1cd7f1a301 And true and false as keywords 2019-09-10 11:54:22 +02:00
Marco Petersen
e0342a7ec6 Add empty token postfix to prevent postfixing 2019-09-10 11:30:00 +02:00
Marco Petersen
3623a3a509 Add rich language configuration for Twig 2019-09-10 11:22:28 +02:00
Marco Petersen
67969886ec Add Twig substates where its missing 2019-09-10 11:20:33 +02:00
Marco Petersen
532285bcf5 Add rudimentary Twig support 2019-09-10 10:45:32 +02:00
Lars Hvam
727d782748
readme: align add new language example 2019-09-10 08:26:48 +02:00
larshp
b995fa2c05 add ABAP language 2019-09-10 08:21:29 +02:00
Andre Wachsmuth
37f6c649ba Fix microsoft/monaco-editor#1576 update dependency to core
* Update dependency to monaco-editor-core to 0.18.0
* Fix typing errors:
    * SignatureHelpAdapter#provideSignatureHelp return a wrapped SignatureHelpResult
    * monaco.languages.DocumentSymbol has got a new property: tags

The tags are an array SymbolTags, and the only existing SymbolTag is "Deprecated".
I did not find any information about that in the ts.NavigationBarItem, so the tags
are always an empty array for now.
2019-09-06 18:49:49 +02:00
Dominik Moritz
d98a11a696
Add syntax highlighting to readme 2019-09-04 21:54:15 -07:00
Peng Lyu
0a4ed9a829 0.18.0 2019-09-04 11:33:44 -07:00
Peng Lyu
d511bfdcc7
Merge pull request #68 from mradkov/master
add `None` and `Some` keywords to SophiaML
2019-09-04 10:44:35 -07:00
Peng Lyu
603e672661 2.6.0 2019-09-04 10:37:18 -07:00
Alexandru Dima
c9f75d56c2
Updates to support the TS 3.6.0 beta, and adds a daily run-script (#36)
Updates to support the TS 3.6.0 beta, and adds a daily run-script
2019-08-30 14:57:45 +02:00
Alex Dima
c86307ab92 Remove TS 3.5 compatibility since this project will never use TS 3.5 again ... 2019-08-30 14:55:55 +02:00
Alex Dima
6dce21c4e5 The version of monaco-typescript is independent of the version of typescript it ships and reflects its own API surface 2019-08-30 14:49:59 +02:00
Alex Dima
55e809cc72 The version of monaco-typescript is independent of the version of typescript it ships and reflects its own API surface 2019-08-30 14:48:51 +02:00
Orta Therox
b8063f957f Adds a CodeAction provider to support fixits 2019-08-29 13:43:19 -04:00
Orta Therox
c8b92c097f Adds backwards compatability for diagnostic chains 2019-08-29 13:00:09 -04:00
DefinitelyNotAGoat
65602c1a09 pascaligo: adding pascaligo language support
Pascaligo is a layer 2 smart contract language for the Tezos blockchain.
For more info please see: https://ligolang.org/
2019-08-26 22:58:16 -04:00
Milen Radkov
f102b6067a
add None and Some keywords 2019-08-21 18:13:19 +03:00
Martin Aeschlimann
6ca4958538 more polish 2019-08-21 10:12:55 +02:00
Martin Aeschlimann
de8bd2ba4f fix typo 2019-08-21 08:54:36 +02:00
Martin Aeschlimann
bdc9560718 generalize as mode configuration 2019-08-20 18:03:47 +02:00
Martin Aeschlimann
22dcdaf5e5
Merge pull request #9 from wesinator/patch-1
Add .har extension
2019-08-20 16:32:11 +02:00
Dominik Moritz
002037408a Add Capabilities, add change handler. 2019-08-19 13:55:20 +02:00
Dominik Moritz
19ec8cd768 Upgrade dependencies 2019-08-17 10:43:13 +02:00
Dominik Moritz
f1b2e50e7c Move disableDefaultFormatter to LanguageServiceDefaults 2019-08-17 10:30:05 +02:00
Alexandru Dima
e5f64ddfef
Adding an example with the monaco webpack plugin (#42)
Adding an example with the monaco webpack plugin
2019-08-14 16:05:39 +02:00
Alex Dima
c79ea537b5 Simplify sample, update npm deps to remove npm security errors 2019-08-14 16:05:10 +02:00
Alexandru Dima
9c63f2d1a6
Add typescript webpack sample (#41)
Add typescript webpack sample
2019-08-14 12:57:54 +02:00
Alex Dima
59a35665b3 Add package-lock 2019-08-14 12:57:30 +02:00
Sergey Romanov
847025bc6a Structured text example 2019-08-13 23:19:39 +06:00
Alex Dima
7e5cb3e7ac Fix indentation 2019-08-13 14:51:04 +02:00
Alexandru Dima
2389ae38aa
Make it can be compressed by uglify-js (#34)
Make it can be compressed by uglify-js
2019-08-13 14:23:37 +02:00
Alex Dima
bb70a4ba02 Merge remote-tracking branch 'origin/master' into pr/Javey/34 2019-08-13 14:22:43 +02:00
Alexandru Dima
ce7745700e
Expose TypeScript version via `monaco.languages.typescript.typeSc… (#31)
Expose TypeScript version via `monaco.languages.typescript.typeScriptVersion`
2019-08-13 14:07:25 +02:00
Alex Dima
18f80838f6 Use consistent casing, rerun import on top of master 2019-08-13 14:06:19 +02:00
Alex Dima
7e126d7c02 Merge remote-tracking branch 'origin/master' into pr/ulrichb/31 2019-08-13 14:04:49 +02:00
Alexandru Dima
d033572249
Merge pull request #67 from mradkov/master
Add support for Sophia ML
2019-08-12 15:26:51 +02:00
Alexandru Dima
0ff5946bfd
[ST] Some updated for Structured Text Language support (#66)
[ST] Some updated for Structured Text Language support
2019-08-12 14:57:51 +02:00
Alexandru Dima
1c6738c96e
Merge pull request #63 from finalfantasia/master
[clojure] treat comma as whitespace
2019-08-12 14:55:48 +02:00
Alexandru Dima
7da3699622
[Feat] MIPS: Support for Syntax Highlight and Basic Colorization (#65)
[Feat] MIPS: Support for Syntax Highlight and Basic Colorization
2019-08-12 14:54:44 +02:00
Alexandru Dima
e9de765a1e
[xml] Add OPF and XSL file extensions (#64)
[xml] Add OPF and XSL file extensions
2019-08-12 11:33:24 +02:00
Alexandru Dima
e28160f19e
Merge pull request #62 from spahnke/bigint
[JS/TS] Add support for BigInt
2019-08-12 11:28:08 +02:00
Milen Radkov
c2dba464fa
add sophia example 2019-08-09 17:49:33 +03:00
Milen Radkov
b4e9a75a8b
remove comments 2019-08-09 15:33:53 +03:00
Milen Radkov
987f04155a
add sophia syntax 2019-08-09 14:09:49 +03:00
zhanghongnian
bf113cc059 fix demo: completion provider example 2019-08-08 08:14:12 +08:00
Sergey Romanov
1857fa19bb More changed to regex 2019-08-07 18:04:46 +06:00
Sergey Romanov
1b01285899 Updates 2019-08-07 17:59:03 +06:00
Sergey Romanov
329cadd860 Merge remote-tracking branch 'upstream/master' 2019-08-07 15:19:42 +06:00
Progyan Bhattacharya
29ef43ce53
[Feat] MIPS: Support for Syntax Highligh and Basic Colorization
Defined rules for statements and declaration. Provided with set of keywords and variable declaration technique.

Signed-off-by: Progyan Bhattacharya <bprogyan@gmail.com>
2019-08-03 16:41:07 +05:30
Dominik Moritz
f558b8f4ff add config to disable default formatter
fixes Microsoft/monaco-editor#889
2019-08-02 12:54:47 +02:00
Orta Therox
8e01f87054 Improvements to the monaco-typescript daily deploy 2019-07-31 11:32:33 -04:00
Orta
adacbd1951
Update azure-pipelines.yml 2019-07-31 11:19:51 -04:00
Orta
3121f853a4 Set up CI with Azure Pipelines
[skip ci]
2019-07-31 11:11:22 -04:00
Peng Lyu
02fb6bfd43 Symbols provider sample 2019-07-24 12:03:20 -07:00
Orta Therox
e7291e938a Adds WIP support for a daily job pipeline 2019-07-24 11:05:54 -04:00
Orta Therox
8440cba727 Adds support for running on TS 3.6.0, and adds a daily update script 2019-07-24 09:02:34 -04:00
Alf Eaton
989b7a9e71 Add .xsl to xml file extensions 2019-07-19 08:47:41 +01:00
Alf Eaton
c002f7424f
Add .opf to xml file extensions
Add support for EPUB 3 .opf files as XML
2019-07-18 23:27:59 +01:00
Orta Therox
34095b6b55 Adds new enum values for ts 3.6 2019-07-18 11:23:32 -04:00
Alex Dima
7814d873bd Update dependencies 2019-07-12 22:28:43 +02:00
Alex Dima
949255ee32 Update dependencies 2019-07-12 22:20:57 +02:00
Alex Dima
dfaf55beb9 Update dependencies 2019-07-12 16:34:22 +02:00
Ԝеѕ
d48ba11f8a
Add .har extension 2019-06-29 11:21:23 -04:00
Matt Bierner
e42100cd9b 0.17.1 2019-06-24 16:47:50 -07:00
Matt Bierner
ad24e28a8e Pick up new monaco-typescript 2019-06-24 16:41:52 -07:00
Matt Bierner
4753ef058d 3.5.0 2019-06-24 14:58:43 -07:00
Matt Bierner
d6f43f7fc6
Merge pull request #33 from russelldavis/ts-3.5.1
Upgrade to typescript 3.5.1
2019-06-24 14:44:20 -07:00
Matt Bierner
c30e98acab
Merge pull request #32 from russelldavis/fix-dev-instructions
Add required `npm run compile` step to development instructions
2019-06-24 14:34:58 -07:00
rkrasiuk
01040633ae indentation 2019-06-17 13:17:30 -05:00
rkrasiuk
7bce3f3c92 restore package json defaults for plugin 2019-06-17 13:13:05 -05:00
rkrasiuk
584f788a42 bump monaco-editor version and add graphql 2019-06-17 13:04:18 -05:00
Javey
1f3bf27460 remove es6 syntax for buddle file, microsoft/monaco-editor#1263 2019-06-14 13:19:45 +08:00
Russell Davis
c13c791795 Upgrade to typescript 3.5.1
I followed the procedure at https://github.com/microsoft/monaco-typescript#updating-typescript

The only manual change I had to make was to add "es2015.iterable" to the
lib section of tsconfig.json (and tsconfig.esm.json).
2019-06-07 14:55:45 -07:00
Russell Davis
06afa62cde Add required npm run compile step to development instructions
Without this, `release/dev/lib/typescriptServices.js` won't exist, resulting
in errors.
2019-06-07 14:47:59 -07:00
Ulrich Buchgraber
d199064a4b Expose TypeScript version via monaco.languages.typescript.typeScriptVersion 2019-05-23 01:16:11 +02:00
atomicpages
27b10e31fa Adding examples
Adding an example with the monaco webpack plugin
2019-05-22 08:07:16 -07:00
Satish Babariya
5253d46b5b missing dependency added 2019-05-19 13:19:58 +05:30
Satish Babariya
f04c54d0f3 Add typescript webpack sample 2019-05-19 12:49:01 +05:30
Abdussalam Abdurrahman
67eac92a0c [clojure] treat comma as whitespace 2019-05-16 22:18:28 -07:00
Alex Dima
bdf46a7551 Remove travis 2019-05-09 15:33:52 +02:00
Alexandru Dima
347d55eb96 Set up CI with Azure Pipelines
[skip ci]
2019-05-09 15:31:45 +02:00
Peng Lyu
0e0cf007e2 0.17.0 2019-05-05 16:43:41 -07:00
Peng Lyu
b1993078c4 update d.ts version. 2019-05-05 16:43:34 -07:00
Peng Lyu
fd2ab300e9 Update monaco-editor-core and dependencies. 2019-05-05 16:29:10 -07:00
Peng Lyu
19e24b67be 2.5.2 2019-05-05 15:57:23 -07:00
Peng Lyu
b9f61a5750 adopt monaco-editor-core@0.17.0 2019-05-05 15:56:46 -07:00
Martin Aeschlimann
ce5a045dbd
Merge pull request #1388 from jonas/patch-1
CHANGELOG: Fix year for releases made in 2019
2019-04-23 09:20:46 +01:00
Martin Aeschlimann
646bf45257
Update CHANGELOG.md 2019-04-01 10:22:40 +02:00
Martin Aeschlimann
37035ef372
Update CHANGELOG.md 2019-04-01 10:22:02 +02:00
Alex Dima
daafcb4ce8 nls example 2019-03-26 12:32:35 +01:00
Jonas Fonseca
3027cf0994
CHANGELOG: Fix year for releases made in 2019 2019-03-23 13:07:01 -04:00
Ehsan
ea5b064df6
Update sample.html.txt 2019-03-22 10:19:58 +04:30
unknown
18fd7687ce Updated html sample code 2019-03-21 23:00:52 +03:30
Martin Aeschlimann
af895106ca 0.16.2 2019-03-19 15:21:01 +01:00
Martin Aeschlimann
4a39951383 update html & json 2019-03-19 15:20:51 +01:00
Martin Aeschlimann
b4d1a1e6b2 2.5.1 2019-03-19 15:15:57 +01:00
Martin Aeschlimann
22c0d87c23 2.5.1 2019-03-19 15:13:55 +01:00
Martin Aeschlimann
40c2b11e24 Exceptions when trying to remove a registered JSON schema and disposing a model. Fixes Microsoft/monaco-editor#1254 2019-03-18 13:03:06 +01:00
Martin Aeschlimann
be400caee9
Merge pull request #8 from Microsoft/aeschli/polyfill-ie11
polyfill assign for ie11
2019-03-18 12:40:40 +01:00
Martin Aeschlimann
1702ca1c07 polyfill assign 2019-03-18 12:39:32 +01:00
Peng Lyu
9f6ee398d6 missing info for 0.16.1 2019-03-14 15:03:29 -07:00
Peng Lyu
712d09735f 0.16.1 2019-03-14 14:55:05 -07:00
Peng Lyu
4c037e5a51 Update monaco-editor-core. 2019-03-14 14:54:16 -07:00
Sebastian Pahnke
5e89da1eef Add support for BigInt 2019-03-14 21:02:14 +01:00
Mike Greiling
4273b13ac4
Webpack property __webpack_public_path__ must be a free var 2019-03-13 09:54:45 -05:00
Alessandro Fragnani
dc033aecd9 Add Pascal samples 2019-03-11 23:47:33 -03:00
二凢
94a5d3b9db Add koltin sample for website 2019-03-08 11:28:35 +08:00
Dominik Moritz
59d1dd0941
Bump to 0.16 2019-03-05 18:04:58 -08:00
Alex Dima
ddbd7148e4 0.16.0 2019-03-05 16:39:15 +01:00
Alex Dima
0c045ae782 Prepare for 0.16.0 2019-03-05 16:38:51 +01:00
Martin Aeschlimann
7df6821309 2.5.0 2019-03-05 12:30:16 +01:00
Martin Aeschlimann
ee3edd1bd5 update service 2019-03-05 12:30:12 +01:00
Martin Aeschlimann
19554e0f06 2.5.0 2019-03-05 12:29:00 +01:00
Martin Aeschlimann
d818518649 update service 2019-03-05 12:28:56 +01:00
Martin Aeschlimann
d9372e4944 2.5.0 2019-03-05 12:27:03 +01:00
Martin Aeschlimann
124925af44 update service 2019-03-05 12:26:39 +01:00
Martin Aeschlimann
20a7a99557 2.4.0 2019-03-04 23:24:44 +01:00
Martin Aeschlimann
485bb60924 update & adapt 2019-03-04 23:24:27 +01:00
Martin Aeschlimann
8b7da30623 2.4.0 2019-03-04 22:56:41 +01:00
Martin Aeschlimann
f94dca207a 2.4.0 2019-03-04 22:52:51 +01:00
Martin Aeschlimann
4db1f4f9f2 update & adopt 2019-03-04 22:52:17 +01:00
Martin Aeschlimann
f962c6ee6f add hover, document symbols 2019-03-04 22:51:59 +01:00
Martin Aeschlimann
e9a6b14c7b remove unused var 2019-03-04 21:59:55 +01:00
Martin Aeschlimann
7605b1802a update and adopt 2019-03-04 21:42:21 +01:00
Alex Dima
7625391590 3.4.1 2019-03-04 15:59:29 +01:00
Alex Dima
c0f4050960 Adopt TypeScript@3.3 2019-03-04 15:58:50 +01:00
Alex Dima
0f97f5fd54 Adopt monaco-editor-core@0.16.0 2019-03-04 15:57:23 +01:00
Alex Dima
ff32e4a315 3.4.0 2019-03-04 15:48:05 +01:00
Alexandru Dima
f39458d794
Merge pull request #30 from stefan-lacatus/extraLibOptimizations
Optimize how external libs are handled and allow for custom languages
2019-03-04 15:14:07 +01:00
Alex Dima
6b2271c1c1 Changes for PR #30 2019-03-04 15:09:02 +01:00
Alexandru Dima
e9381f692d
Merge pull request #29 from Geloosa/extra-libs-filepath
more safe extra lib filePath generation
2019-03-04 14:18:27 +01:00
Alex Dima
06ba3ff7e8 1.7.0 2019-03-04 14:11:39 +01:00
Alexandru Dima
125ea00813
Merge pull request #61 from samghelms/master
allows annotation in markdown language block headers
2019-03-04 13:04:03 +01:00
Alexandru Dima
8612cdf3fc
Merge pull request #60 from alefragnani/pascal
Pascal language support
2019-03-04 13:03:03 +01:00
Alex Dima
5f5ad5056f Update to latest and simplify docker 2019-03-04 12:58:13 +01:00
Alex Dima
e174b96db8 Fixes Microsoft/monaco-editor#1213 2019-03-04 12:44:03 +01:00
Alex Dima
c362bfab0e Fixes Microsoft/monaco-editor#1278 2019-03-04 12:38:58 +01:00
Alexandru Dima
d064a46b48
Merge pull request #1339 from cancerberoSgx/patch-1
fix worker paths in parcel
2019-03-04 09:57:50 +01:00
Sebastián Gurin
7e0bb7aa51
fix worker paths in parcel
I just tried this instructions and I found this small detail for they to work perfectly
2019-03-02 11:42:46 -03:00
Alexandru Dima
8d80dc2f52
Update integrate-esm.md 2019-03-02 01:22:06 +01:00
Alexandru Dima
945211a03e
Update integrate-esm.md 2019-03-02 01:21:41 +01:00
Alex Dima
3ec5c9d2e3 Improve parcel sample 2019-03-02 01:19:58 +01:00
Alexandru Dima
5d97a5f16e
Merge pull request #1337 from datou0412/master
Fix lineDecoration example css error
2019-03-01 22:55:39 +01:00
Alexandru Dima
ef9c54d884
Merge pull request #1309 from Kedstar99/HTMLFixes
Fixed various HTML errors with the various webpages
2019-03-01 22:54:09 +01:00
Alex Dima
c35fbebb5a Minor tweaks to PR #1309 2019-03-01 22:53:38 +01:00
Alexandru Dima
d23fd1e0a0
Merge pull request #1303 from swarnava/copyright-year
Make copyright year dynamic
2019-03-01 22:49:29 +01:00
Alex Dima
78076d9bf8 2018 -> 2019 2019-03-01 22:48:57 +01:00
Alex Dima
7edb4d6f13 Use PATH_PREFIX correctly in dev-setup 2019-03-01 22:39:49 +01:00
Alexandru Dima
f0832de23a
Merge pull request #1329 from jbsulli/javascript-regexp-range-close-bug
Fix JavaScript RegExp range closing bracket
2019-03-01 22:27:48 +01:00
Alex Dima
ba44226434 Port over Microsoft/monaco-editor#1329 2019-03-01 22:26:59 +01:00
二凢
e4d55a9189 Fix lineDecoration example css error 2019-03-01 17:21:33 +08:00
placatus
6c73d7f708 Fixed typos and other improvements per code review 2019-03-01 00:01:35 +02:00
Joshua Sullivan
185a9d5052 Fix javascript regexp range closing bracket 2019-02-26 07:16:04 -08:00
placatus
292108c5ee Fixed creating the LanguageServiceDefaultsImpl twice 2019-02-22 17:31:09 +02:00
placatus
357f54c652 Trigger an event when the extra libs changed, redoing all colorization and diagnostics 2019-02-22 15:16:21 +02:00
Alex Dima
a5c9de82be Fix build 2019-02-19 13:15:56 +01:00
Alex Dima
24b8c98534 Downgrade event-stream 2019-02-19 13:09:11 +01:00
Alex Dima
43c84303ac More dependency upgrades 2019-02-19 13:07:47 +01:00
Alex Dima
440404716e Upgrade to gulp 4 2019-02-19 11:16:39 +01:00
Krish De Souza
4c2b07fb31 Fixed various HTML errors with the various webpages based against w3 html validator 2019-02-10 02:45:46 +00:00
Johannes Rieken
70e48eeb52 debt - more promise cleanup 2019-02-08 15:19:17 +01:00
placatus
e39fa719bc Optimize how external libs are handled and allow for custom languages:
* Adding/removing extra libs does not trigger a full worker refresh
* Manual control over when the extra libs are sent to the worker
* Adding a new lib with the same name replaces it inplace
Also included, the capability to define custom languages
2019-02-06 00:50:50 +02:00
Swarnava Sengupta
5c2439210d Make copyright year dynamic 2019-02-05 23:33:50 +05:30
Samuel Helms
b1fe6ca63e allows annotation in markdown language block headers (matches the behavior in vscode) 2019-02-03 10:20:19 -05:00
Olga Lesnikova
6d8ff4c54f more safe extra lib filePath generation 2019-01-28 17:24:23 +03:00
Alessandro Fragnani
3e3d229435 Strings in Pascal can also be #number 2019-01-18 00:41:40 -02:00
Alessandro Fragnani
735ae599dc Pascal does not have "escape" - remove it 2019-01-18 00:18:25 -02:00
Alessandro Fragnani
e132721b08 Adds Pascal language in README 2019-01-12 23:47:50 -02:00
Alessandro Fragnani
f5b48af525 Register, Load and Ship Pascal language 2019-01-12 23:41:06 -02:00
Alessandro Fragnani
34c155adaa Adds Pascal language files 2019-01-12 23:32:20 -02:00
Alexandru Dima
a404c91e22
Merge pull request #1268 from AaronGillBraun/parcel-docs
Added documentation for using parcel.
2019-01-11 08:20:14 +01:00
Aaron Gill-Braun
20f1b5a2ab
Added documentation for parcel.
The sample using parcel (https://github.com/Microsoft/monaco-editor-samples/tree/master/browser-esm-parcel) does not work due the how parcel handlers workers. Added documentation showing how parcel can still be used by bundling workers separately.
2019-01-10 10:58:57 -05:00
Alexandru Dima
ec16c9c01a
Merge pull request #59 from ALANVF/master
Add Tcl support
2019-01-10 15:31:17 +01:00
Alex Dima
22d999d519 Merge remote-tracking branch 'origin/master' into pr/ALANVF/59 2019-01-10 15:25:42 +01:00
alan.invents
9d51b7ced9 Add Tcl support 2019-01-10 15:23:38 +01:00
Alex Dima
c4eea357d9 Remove usage of monaco.Promise 2019-01-10 12:58:32 +01:00
Alexandru Dima
438b87cf17
Merge pull request #58 from brijeshb42/master
Update ruby auto indentation rules
2019-01-10 12:56:32 +01:00
Alexandru Dima
1336ea407f
Merge pull request #57 from creativedrewy/add-kotlin-support
Add Kotlin Language Support
2019-01-10 12:55:46 +01:00
Alexandru Dima
f9595842a3
Merge pull request #56 from finalfantasia/master
[clojure] Improve the regular expressions for various symbols
2019-01-10 12:40:07 +01:00
Alex Dima
a103c438d4 Adopt native promises 2019-01-09 16:27:23 +01:00
Alex Dima
da22aff470 Adopt native promises 2019-01-09 16:25:17 +01:00
Alex Dima
3c3465db29 More native promises 2019-01-09 16:14:57 +01:00
Alex Dima
35c57b5990 Adopt native promises 2019-01-09 16:14:15 +01:00
Alex Dima
8a2b406930 Adopt native promises 2019-01-09 16:13:35 +01:00
Alex Dima
505232c7c8 Adopt native promises 2019-01-09 15:51:42 +01:00
Alexandru Dima
a9a96f4382
Merge pull request #1226 from langpavel/graphql
Add graphql code sample
2019-01-09 11:35:29 +01:00
Alexandru Dima
03a82594d2
Merge pull request #54 from langpavel/graphql
GraphQL language support
2019-01-09 11:34:00 +01:00
Alexandru Dima
b923f46ad6
Merge pull request #28 from langpavel/upgrade-packages
chore: upgrade packages
2019-01-08 14:43:06 +01:00
Abdussalam Abdurrahman
6b675164e5
Add ".edn" to the list of file name extensions 2018-12-17 21:01:26 -08:00
Brijesh Bittu
ea1dd2c5cf Update ruby auto indent rules
Copied rules from `vscode/extensions/ruby/language-configuration.json`
2018-12-15 10:11:04 +05:30
Caleb Tseng
2683160fab Adding class highlighting and unit tests 2018-12-10 14:58:22 -08:00
Pavel Lang
e493629099
chore: upgrade packages
npm i typescript@^3.2.2 monaco-editor-core@^0.15.5
2018-12-08 08:13:20 +01:00
Pavel Lang
4b680d4874
feat(graphql): add graphql code sample 2018-12-08 06:38:55 +01:00
Pavel Lang
4ab50c667e
fix(graphql): add implements to keywords 2018-12-08 03:47:39 +01:00
Pavel Lang
1ff4648d05
feat(graphql): treat block strings as markdown 2018-12-08 03:35:28 +01:00
Andrew Watson
0eed4aa652 Add language to bundle js 2018-12-07 17:55:55 -08:00
Andrew Watson
a6f2e04d34 Finish up getting tests working 2018-12-07 17:54:35 -08:00
Andrew Watson
140cba979d Lotsa upates getting tests to pass 2018-12-07 17:25:08 -08:00
Andrew Watson
41797ecbbb Update the language now, add monaco contrib 2018-12-07 16:56:35 -08:00
Andrew Watson
c071453275 Add operators 2018-12-07 16:45:09 -08:00
Andrew Watson
0d3e237e27 Add keywords 2018-12-07 16:35:14 -08:00
Andrew Watson
faf8fd35c1 Add kotlin-related files, start introducing language constructs 2018-12-07 16:19:01 -08:00
Pavel Lang
d605a30cc7
docs(readme): Add graphql to list of languages 2018-12-08 01:18:29 +01:00
Pavel Lang
d4687537fd
test(graphql): more complex test 2018-12-08 01:01:42 +01:00
Pavel Lang
3dd748c39c
test(graphql): query 2018-12-08 00:35:00 +01:00
Pavel Lang
f7abfe5a37
build(graphql): add graphql to bundle 2018-12-07 23:29:23 +01:00
Pavel Lang
f0df74079c
WIP: GraphQL first shot 2018-12-07 23:29:23 +01:00
Abdussalam Abdurrahman
3f16600ec1 [clojure] Fix tokenization of escapes in strings
The notation for escapes in strings follows that of the host platforms
which is different from the notation for character literals in Clojure
(e.g., "\n" vs `\newline`).
2018-12-07 12:30:10 -08:00
Abdussalam Abdurrahman
4061962186 [clojure] Remove an file name extension that's uncommon 2018-12-06 17:40:33 -08:00
Abdussalam Abdurrahman
223c3eb54f [clojure] Improve the regular expressions for various symbols. 2018-12-06 17:36:06 -08:00
Abdussalam Abdurrahman
c77f11b1b0 [clojure] Add a word boundary to ensure exact matches for (comment ...). 2018-12-06 17:36:06 -08:00
Abdussalam Abdurrahman
6f6f1b43f0 [clojure] Add ".cljs" and ".cljc" to source file extension list 2018-12-06 17:36:05 -08:00
Alex Dima
8f7537dee5 Fixes Microsoft/monaco-editor#1224 2018-12-05 23:40:54 +01:00
Alexandru Dima
4054a20fdc
Merge pull request #55 from futurejones/update-keywords
Solidity - add "constructor" to main keywords
2018-11-28 15:38:35 +01:00
Alex Dima
fbc966ab1b update dev dependencies 2018-11-27 10:10:26 +01:00
Neil Jones
854a28ccc8
add "constructor" to main keywords 2018-11-25 17:55:23 +09:00
Alex Dima
1d1473de8e 1.7.0 2018-11-23 12:54:35 +01:00
Alex Dima
ca9e6a49ed Fixes #52 2018-11-23 12:53:39 +01:00
Alex Dima
e8b7ffdcac Update to test with latest editor 2018-11-23 12:48:42 +01:00
Alexandru Dima
9941fe08ed
Merge pull request #53 from pimterry/patch-1
Mark all options as optional in the type definitions
2018-11-23 12:47:02 +01:00
Alexandru Dima
9d7497846a
Merge pull request #51 from kube/webpack-plugin-type-compat
Webpack Plugin Type Compatibility. Solves #49
2018-11-23 12:46:11 +01:00
Alex Dima
9af2ead38d Fix completion item provider sample 2018-11-23 12:40:22 +01:00
Alex Dima
094013374c 0.15.6 2018-11-23 11:52:37 +01:00
Alex Dima
c17896b800 Prepare for 0.15.6 2018-11-23 11:52:24 +01:00
Alex Dima
6096325b12 Push package-json generated with latest npm 2018-11-23 11:49:07 +01:00
Tim Perry
71728e7e92
Mark all options as optional in the type definitions 2018-11-22 14:23:41 +01:00
Peng Lyu
3acd0a1fad 0.15.5 2018-11-16 14:28:14 -08:00
Peng Lyu
65b61b69ca Prepare for 0.15.5 2018-11-16 14:27:52 -08:00
Alex Dima
63f764226e 0.15.4 2018-11-15 15:43:25 +01:00
Alex Dima
5de8ee67af Prepare for 0.15.4 2018-11-15 15:43:18 +01:00
Chris Feijoo
5f51fd24f3 Use CommonJS export 2018-11-15 15:39:03 +01:00
Chris Feijoo
5ac536ca6e Make MonacoEditorWebpackPlugin definition extend Webpack.Plugin 2018-11-15 15:08:33 +01:00
Chris Feijoo
d7b9a173c1 Add @types/webpack dependency 2018-11-15 15:07:57 +01:00
Alex Dima
fe422fea5a 0.15.3 2018-11-15 10:08:19 +01:00
Alex Dima
8aef99d4dc Prepare for 0.15.3 2018-11-15 10:08:12 +01:00
Alex Dima
5fb5b8462f 0.15.2 2018-11-14 11:40:48 +01:00
Alex Dima
49cad96dad Prepare for 0.15.2 2018-11-14 11:39:42 +01:00
Alex Dima
00eb81a04a Minor edits 2018-11-14 11:37:40 +01:00
Alex Dima
cf85c0785a Fixes #1180 2018-11-13 19:39:07 +01:00
Alex Dima
d558cab174 1.6.0 2018-11-13 15:08:10 +01:00
Alex Dima
9eb201f72f Improve type definition 2018-11-13 15:07:55 +01:00
Alex Dima
d8a6aaf6a0 Update deps 2018-11-13 15:05:11 +01:00
Alexandru Dima
9c27a942ca
Merge pull request #48 from dturcotte/dturcotte/module-typings
Bare minimum module declaration for compatibility with TypeScript web…
2018-11-13 15:04:58 +01:00
Alex Dima
6e721355cc 0.15.1 2018-11-13 14:41:22 +01:00
Alex Dima
5900e034e9 Prepare for 0.15.1 2018-11-13 14:41:08 +01:00
Alex Dima
f137ccee65 Fixes #1178: Use slashes even on Windows 2018-11-13 13:36:48 +01:00
Alex Dima
dbbf697250 3.3.1 2018-11-13 13:31:35 +01:00
Alex Dima
a25eb9ea65 Eliminate another require() call from typescriptServices 2018-11-13 13:31:19 +01:00
Alex Dima
96f41a5292 Improve typings 2018-11-12 19:05:10 +01:00
Alex Dima
9fbc8242ca 0.15.0 2018-11-12 19:04:35 +01:00
Alex Dima
98e17d3990 Prepare for new version 2018-11-12 19:02:03 +01:00
Doug Turcotte
2a88406fe7 Bare minimum module declaration for compatibility with TypeScript webpack configs with noImplicitAny 2018-11-12 12:39:42 -05:00
Alex Dima
f3174dba95 2.3.0 2018-11-12 17:20:27 +01:00
Alex Dima
3731f02b7f Adopt new editor & new npm deps 2018-11-12 17:20:19 +01:00
Alex Dima
f70f178c03 2.3.0 2018-11-12 17:14:30 +01:00
Alex Dima
527c95f016 Adopt latest editor & new npm deps 2018-11-12 17:14:18 +01:00
Alex Dima
a450f6054c 2.3.0 2018-11-12 16:59:14 +01:00
Alex Dima
f6d638686b Adopt latest editor & new npm deps 2018-11-12 16:59:07 +01:00
Alex Dima
3b8ad270d8 3.3.0 2018-11-12 16:51:09 +01:00
Alex Dima
27f5823a7e Adopt new editor, bump TypeScript 2018-11-12 16:50:08 +01:00
Alex Dima
858705e742 1.6.0 2018-11-12 16:44:32 +01:00
Alex Dima
ad86fb7954 Adopt new npm modules 2018-11-12 16:43:59 +01:00
Alex Dima
ad77f86a8c Fixes Microsoft/monaco-editor#1175 2018-11-12 14:01:28 +01:00
Alex Dima
9961f06110 Fixes Microsoft/monaco-editor#1170 2018-11-12 13:52:04 +01:00
Alex Dima
70f12687bb Inline constants 2018-11-12 13:44:24 +01:00
Alex Dima
e054e6cb4c Update package-lock 2018-11-12 11:15:01 +01:00
Alex Dima
f537e6e183 Fixes #1014: Update monarch example grammars 2018-11-12 11:11:29 +01:00
Alex Dima
20a36a1d87 Fixes Microsoft/monaco-editor#1148 2018-11-12 10:36:49 +01:00
Alexandru Dima
ab9e0b371b
Merge pull request #44 from kandl/cra-v2
make it work with create-react-app v2
2018-11-11 00:16:30 +01:00
Alexandru Dima
3e322e5dfb
Merge pull request #32 from ravikesh4/patch-1
added title
2018-11-10 23:23:29 +01:00
Alex Dima
62ba0daa6c Recreate generated samples 2018-11-09 21:21:00 +01:00
Alexandru Dima
35f3f99ff2
Merge pull request #1161 from dabockster/master
Added better Java sample (FizzBuzz instead of JUnit)
2018-11-09 21:19:04 +01:00
Alexandru Dima
9e08d445f3
Merge pull request #1160 from arvind0598/patch-1
Updated C# sample code for a simpler game.
2018-11-09 21:18:42 +01:00
Alexandru Dima
db8a6cb237
Merge pull request #1155 from Mera-Gangapersaud/issue-1154
Fixed prerequisites link in Contributing.md
2018-11-09 21:17:34 +01:00
Alexandru Dima
d9ca7d5c2a
Merge pull request #1153 from shivanshs9/issue-typos
Fixed typos in website page and CHANGELOG
2018-11-09 21:16:55 +01:00
Alex Dima
2d499618df restore memoized 2018-11-09 21:16:15 +01:00
Alexandru Dima
44afc8fef1
Merge pull request #1152 from JoaquimCMH/update-changelog
Update CHANGELOG
2018-11-09 21:10:27 +01:00
Alexandru Dima
ded449e13e
Merge pull request #1141 from flash76/patch-1
Update README.md
2018-11-09 20:59:38 +01:00
Alexandru Dima
f0cb9d9ece
Merge pull request #1133 from krototype/master
changed the license block of readme
2018-11-09 20:58:55 +01:00
Alexandru Dima
82bf4ac472
Merge pull request #1131 from thetinygoat/fix
hacktoberfest fix
2018-11-09 20:56:50 +01:00
Alex Dima
4f84652df4 Tweaks 2018-11-09 17:43:21 +01:00
Alex Dima
d5857b5e08 More tweaks 2018-11-09 17:20:54 +01:00
Alex Dima
c04fb4f942 Actually publish 2018-11-09 17:04:10 +01:00
Alex Dima
f3261d3c1b Tweak build 2018-11-09 13:01:07 +01:00
Alex Dima
ce396439a4 More tweaks 2018-11-09 12:59:11 +01:00
Alex Dima
f7439f5aaf Tweak publish script 2018-11-09 12:56:47 +01:00
Alex Dima
ac6675b8b8 CRLF -> LF 2018-11-09 12:51:43 +01:00
Alex Dima
12717ff7d5 Tweak build 2018-11-09 12:48:41 +01:00
Alex Dima
3664cb4445 Break up the gulp website task 2018-11-09 12:26:36 +01:00
Alexandru Dima
0f4f663181
Merge pull request #1173 from willsmythe/master
Add Azure Pipelines for building and publishing monaco-editor website
2018-11-09 11:51:52 +01:00
Will Smythe
2a0508fc89 Initial azure-pipelines.yml for monaco-editor website 2018-11-08 09:32:17 -05:00
Steven Bock
76520b7330 Added better Java sample (FizzBuzz instead of JUnit). 2018-10-31 20:09:32 -07:00
Arvind S
2000b63fa4
Fixed namespace and indentation 2018-10-31 23:20:34 +05:30
Arvind S
9c914da118
Updated to simpler example.
Now prints prime numbers from 1 to 100.
2018-10-31 23:15:03 +05:30
Alex Dima
609b93eb01 Fix typo 2018-10-31 15:11:41 +01:00
Alex Dima
6653d96ddd Fix typo 2018-10-31 15:10:31 +01:00
Alex Dima
76a8299ad5 Fix typo 2018-10-31 15:10:11 +01:00
Alexandru Dima
074a0cc08b
Merge pull request #1121 from chrishelgert/issue-template
Move issue template to '.github' folder and add some styling for better readability
2018-10-31 15:02:10 +01:00
Alexandru Dima
45f9bf94f0
Merge pull request #1119 from chintogtokh/clarify-readme
Clarify that repo doesn't contain source code
2018-10-31 15:01:36 +01:00
Mera-Gangapersaud
0a5a23ac39 Fixed prereq link 2018-10-29 22:23:42 -04:00
Shivansh Saini
cad50490f4 Fix typos and grammar mistakes. 2018-10-28 19:45:19 +05:30
Joaquim Honório
4f669bd261 Update CHANGELOG 2018-10-27 17:37:35 -03:00
Ravikesh yadav
86be4222b6
added title 2018-10-27 22:15:20 +05:30
Alexandru Dima
f4280b21d6
Merge pull request #53 from pascalberger/patch-1
Use C# highlighting for Cake scripts
2018-10-24 19:04:18 +02:00
flash76
078dafa41e
Update README.md 2018-10-24 09:59:07 -04:00
Abhinav Srivastava
87f8ec98d8
changed the license block of readme
changed the license block, to make it similar to other microsoft repositories
2018-10-22 23:44:11 +05:30
Sachin Saini
520bf9a506 hacktoberfest fix 2018-10-20 22:00:39 +05:30
Pascal Berger
0a2434505e
Use C# highlighting for Cake scripts 2018-10-18 14:17:23 +02:00
Chris Helgert
7def6c908f Move issue template to '.github' folder and add some styling for better readability 2018-10-17 19:48:32 +02:00
Chintogtokh Batbold
94b11619c0 Clarify that repo doesnt contain source code 2018-10-17 10:19:34 +00:00
Alexandru Dima
4c16f5e7c6
Merge pull request #1114 from jerdog/patch-1
correct README grammar
2018-10-17 11:34:00 +02:00
Alex Dima
6fd52304fb Merge remote-tracking branch 'origin/master' into pr/jerdog/1114 2018-10-17 11:32:52 +02:00
Alexandru Dima
bb79ae01c1
Merge pull request #1113 from KadoBOT/patch-1
Remove commented code
2018-10-17 11:29:09 +02:00
Alexandru Dima
8c298b270d
Merge pull request #1111 from buzzcola/master
Correct comma splice in README.md
2018-10-17 11:28:44 +02:00
Alexandru Dima
e92950d10f
Merge pull request #1102 from dynamick/master
Added Ruby
2018-10-17 11:23:47 +02:00
Alexandru Dima
5383ed83a6
Merge pull request #1096 from evanwaltersdev/master
issue guidelines
2018-10-17 11:22:11 +02:00
Alexandru Dima
a0b747d9a4
Merge pull request #1089 from brooksbecton/removeNoteAboutMonarchCSS
Removing obsolete Note in Monarch Docs
2018-10-17 11:19:25 +02:00
Alexandru Dima
fb53cb7cb4
Merge pull request #1088 from EdNgulele/master
style: Updated CONTRIBUTING.md
2018-10-17 11:18:57 +02:00
Alexandru Dima
c8948d74e4
Merge pull request #1087 from gempir/master
fix 2 of 7 npm package vurnerabilities
2018-10-17 11:17:36 +02:00
Alex Dima
a22f240a65 Update package-lock.json 2018-10-17 11:17:00 +02:00
Alexandru Dima
30d6d921c8
Merge pull request #1086 from Hotlar/master
lingual fixes to readme
2018-10-17 11:10:04 +02:00
Alex Dima
a808a5ea93 right -> good 2018-10-17 11:09:35 +02:00
Alexandru Dima
00ea4e300e
Merge pull request #52 from AasthaGupta/master
Fix markdown bug #1107
2018-10-17 11:03:21 +02:00
Alexandru Dima
21376c35de
Merge pull request #51 from GeekAb/master
Markdown bug fix for #1107
2018-10-17 11:03:01 +02:00
Alexandru Dima
2c18c1e799
Merge pull request #50 from goober99/hacktoberfest
Added support for Perl quote-like operators to fix #1101
2018-10-17 10:58:01 +02:00
Alexandru Dima
8d039c9816
Merge pull request #48 from TiagoDanin-Forks/StringYAML
New rule for non-teminated string in yaml
2018-10-17 10:50:16 +02:00
Alex Dima
290e35d7b2 Merge remote-tracking branch 'origin/master' into pr/TiagoDanin/48 2018-10-17 10:49:21 +02:00
Alexandru Dima
45d4471447
Merge pull request #47 from grzegorz-wcislo/fix_yaml_string_tokenization
Fix yaml string tokenization
2018-10-17 10:40:12 +02:00
Alex Dima
57e85c6274 Update deps 2018-10-17 09:59:29 +02:00
Aastha Gupta
6182bc8a42 Fix markdown bug
Fixes issue: https://github.com/Microsoft/monaco-editor/issues/1107
2018-10-16 19:36:28 +05:30
Abhishek
8ddd2b62eb
Markdown bug fix.
Coloring was failing in a specific condition.
2018-10-15 10:52:51 +05:30
Jeremy Meiss
97aed2f33a
correct README grammar
update grammar and include links where appropriate
2018-10-13 19:16:02 +01:00
Ricardo Ambrogi
2428149f99
Remove commented code
Commented code should be avoided. There are more downsides then upsides on keeping it. If this piece of code is needed in the future, `git diff` is a better option.
2018-10-13 19:34:59 +02:00
James Orr
0e412306eb
fix comma splice 2018-10-12 13:54:28 -04:00
Matyas Kandl
43c8a14805 make it work with create-react-app v2 2018-10-12 11:46:30 +02:00
Michele Gobbi
b48262b8c1
Added Ruby
Added Ruby lang in Syntax colorization languages list, one of the most used language (mostly in web with the framework Ruby on Rails). It could be attractive for the Ruby developers see their preferred language in the list.
2018-10-11 08:30:06 +02:00
Matthew D. Miller
8694e28edb Modified original regex rule to only catch instances of bare /regex/ 2018-10-10 14:27:36 -05:00
Matthew D. Miller
3928208ab4 Fixed failing tests due to regexp modifiers being handled differently 2018-10-10 14:16:45 -05:00
Peng Lyu
5428f8a943
Merge pull request #49 from spahnke/octal 2018-10-10 10:42:25 -07:00
Matthew D. Miller
40fdb5d594 Added support for Perl quote-like operators to fix #1101 2018-10-10 11:06:04 -05:00
Matthew D. Miller
80e9270d80 Separated quote-like operators from other keywords 2018-10-10 10:37:28 -05:00
Matthew D. Miller
6feaf43d1d Added tests for quoted strings and regexes using alternative delimiters 2018-10-10 10:33:49 -05:00
Evan Walters
64751cb70d
issue guidelines 2018-10-09 07:12:41 +01:00
Brooks Becton
8aa75f66b5 Removing obsolete Note in Monarch Docs 2018-10-06 09:15:54 -05:00
Edilson Ngulele
2bc43e14fd
style: Updated CONTRIBUTING.md
* removed the repetition of "being able to build"
2018-10-06 02:52:28 +02:00
gempir
301adcdf4a fix 2 of 7 npm package vurnerabilities 2018-10-05 20:49:56 +02:00
Sebastian Pahnke
623dbc1acc Add more tests for hex and binary integer literals 2018-10-05 17:29:11 +02:00
Sebastian Pahnke
79ad5abdb3 Add support for alternate octal integer syntax 2018-10-05 17:28:43 +02:00
Martin Aeschlimann
39e2f4e709
Merge pull request #7 from nesterone/on-demand-schema-loading
Provide diagnostic option to enable on-demand schema loading
2018-10-05 03:38:32 -07:00
Igor Nesterenko
ce94995e72 - revert version from master 2018-10-05 13:35:50 +03:00
Igor Nesterenko
22dd0fcb8c Merge branch 'master' into on-demand-schema-loading 2018-10-05 13:29:18 +03:00
Hotlar
921b01ffe1
Merge pull request #1 from Hotlar/Hotlar-patch-1
lingual fixes to readme
2018-10-04 14:43:37 +02:00
Hotlar
1dba6e9904
Update README.md 2018-10-04 14:42:35 +02:00
TiagoDanin
c59dd6a01e
New rule for non-teminated string in yaml 2018-10-03 14:48:00 -03:00
Grzegorz Wcisło
4b0d5c54d2 Fix yaml string tokenization 2018-10-03 17:59:21 +02:00
Martin Aeschlimann
1d4b425215
Merge pull request #7 from ricsam/master
Fix indentation on the CSS test page
2018-10-03 00:20:49 -07:00
Richard Samuelsson
4f984dbade Fix indentation in the CSS test page 2018-10-02 21:48:00 +02:00
Denys Vuika
e556e53389 raise onDidChange only when needed 2018-10-02 08:53:32 +01:00
Denys Vuika
c6c45135c2 definition and docs 2018-10-02 07:19:43 +01:00
Denys Vuika
ff09e59985 support bulk libs setup 2018-10-02 07:14:10 +01:00
Peng Lyu
2086fa380f
Merge pull request #23 from Parikshit-Hooda/master
fixed typo in line 11
2018-10-01 16:06:29 -07:00
Peng Lyu
4792444361
Merge pull request #8 from Fer0x/master
Update vscode json deps
2018-10-01 15:52:41 -07:00
Peng Lyu
66b5497f3c
Merge pull request #46 from spahnke/regex-flags
Improve tokenization of regular expressions
2018-10-01 15:46:21 -07:00
Parikshit Hooda
2ec7e51c73
Merge pull request #1 from Parikshit-Hooda/Parikshit-Hooda-typo-patch-1
fixed typo in line 11. concering changed to concerning .
2018-10-02 03:53:57 +05:30
Parikshit Hooda
b476163b69
fixed typo in line 11
updated readme.MD . concering->concerning (typo fixed)
2018-10-02 03:47:58 +05:30
rebornix
110bd6562f We now have js and ts basic language support. 2018-10-01 15:04:52 -07:00
rebornix
64498cc8cd Fix #29. Update parcel sample. 2018-10-01 15:01:41 -07:00
Matt Bierner
8d98c752ca
Merge pull request #22 from spahnke/suggestion-markdown
Render documentation in suggestion widget as Markdown
2018-10-01 14:41:21 -07:00
Sebastian Pahnke
ce3a0652b3 Tokenize regex flags as 'keyword.other' like VS Code does 2018-10-01 08:30:48 +02:00
Sebastian Pahnke
3e6c3ee653 Allow the 's' flag in regular expressions 2018-10-01 08:29:37 +02:00
Sebastian Pahnke
744e2f25af Render documentation in suggestion widget as Markdown 2018-09-24 17:51:35 +02:00
Alex Dima
97b26e76f9 1.5.4 2018-09-20 10:45:36 +02:00
Alexandru Dima
1bd93df64b
Merge pull request #37 from nicoabie/exclude-features
Feature exclude
2018-09-20 10:45:00 +02:00
Alexandru Dima
d46361b007
Merge pull request #39 from cdakin1/handlebars-fix
Fix handlebars language loader
2018-09-20 10:42:42 +02:00
cdakin1
f4420fb3f1
Update README.md
Includes instructions for including subsets of languages that share web workers
2018-09-18 14:01:29 -05:00
Chris Dakin
66254d1e60 Fix handlebars language loader
Handlebars shares a worker with html in the same way that
javascript/typescript and css/less/scss share workers. However, the
handlebars/html association was missing from the createLoaderRules
function. This was causing a bad network request when the language was
set to handlebars in the monaco-editor due to trying to load an
undefined web worker.

This change associates the handlebars and html workerPaths to prevent
these issues.
2018-09-18 11:31:26 -05:00
Alexandru Dima
8a99e801dd
Merge pull request #38 from ArgonAlex/remove-es2015
Remove untranspiled ES2015 from final output
2018-09-18 10:48:21 +02:00
Alex Walter
afb9f52b7c
Remove untranspiled ES2015 from final output 2018-09-17 19:18:08 -07:00
Alex Dima
95bc3b13a7 The sample should be javascript 2018-09-14 17:06:05 +02:00
Alex Dima
417c24347d Have a more simple Electron sample 2018-09-14 17:04:59 +02:00
Nicolás Andrés Gallinal
97fa344ed9 Add ability to exclude certain default features by prefixing them with an exclamation mark 2018-09-13 10:05:55 -03:00
Alexandru Dima
0aea831f05
Merge pull request #45 from finalfantasia/master
[clojure] Improve Clojure syntax highlighting.
2018-09-13 13:27:32 +02:00
Alexandru Dima
95872c9b82
Merge pull request #1059 from finalfantasia/master
[clojure] Update Clojure example with one that's more representative.
2018-09-13 12:10:35 +02:00
Alex Dima
2f7821f494 1.5.3 2018-09-13 12:03:52 +02:00
Alexandru Dima
f9243c19e4
Merge pull request #34 from L1uD0ngq1/master
Webpack createChildCompiler api will drop SingleEntryPlugin complication hook
2018-09-13 12:02:47 +02:00
Alexandru Dima
d2e728fe93
Merge pull request #33 from dgeibi/master
fix rule test for windows user
2018-09-13 11:48:08 +02:00
Abdussalam Abdurrahman
c65a13afa1 [clojure] Add support for (comment ...). 2018-09-11 23:06:18 -07:00
Abdussalam Abdurrahman
1188cfa1bb [clojure] Fix regular expression for character literals.
Consolidate regular expressions for line and in-line comments.
2018-09-11 21:41:03 -07:00
Abdussalam Abdurrahman
5ff5d6d984 [clojure] Update Clojure example with one that's more representative. 2018-09-11 19:50:28 -07:00
Abdussalam Abdurrahman
073f212f63 [clojure] Improve Clojure syntax highlighting.
This commit:
- Updates the keyword list with public symbols from `clojure.core` for
Clojure 1.9.
- Improves syntax highlighting of symbols, strings, character literals,
and number literals.
- Adds rules for syntax highlighting Clojure keywords and reader macro
characters.
- Fixes an issue where forms following a single semicolon (`;`) are not
marked as comments.
- Fixes an issue where parts of multi-line strings were not correctly
syntax highlighted.
- Adds additional test coverage for tokenization code.
2018-09-11 18:57:40 -07:00
Abdussalam Abdurrahman
b276d3ea83 [clojure] Sort the test suites by file name. 2018-09-11 15:53:17 -07:00
Abdussalam Abdurrahman
383f172aee [clojure] Add IntelliJ IDEA project directory/file to .gitignore. 2018-09-11 11:37:56 -07:00
佛肚
71327a4c27 Merge branch 'master' of github.com:Microsoft/monaco-editor-webpack-plugin 2018-09-10 17:21:13 +08:00
佛肚
dbbbc1b531 Webpack createChildCompiler api will drop SingleEntryPlugin complication hook 2018-09-10 17:09:30 +08:00
Alexandru Dima
d8409c7f1f
Merge pull request #1053 from michael-k/python
Use python examples that work
2018-09-06 15:18:07 +02:00
Jiabin Peng
68cb00d20f
fix rule test for windows user 2018-09-06 18:42:09 +08:00
Michael Käufl
801fa1e84b Use python examples that work 2018-09-05 22:36:44 +02:00
Alex Dima
c91fcbecca 1.5.2 2018-08-31 15:29:57 +02:00
Alexandru Dima
c2e9b691dc
Merge pull request #30 from L1uD0ngq1/master
Absolute Path will be broken when npm in symlink mode(cnpm)
2018-08-31 15:29:22 +02:00
佛肚
cb473c82aa Absolute Path will be broken when npm in symlink mode(cnpm) 2018-08-30 20:48:19 +08:00
Alexandru Dima
935bd5275a
Merge pull request #1029 from rcjsuen/patch-2
Add missing links in CHANGELOG.md
2018-08-29 14:57:03 +02:00
Remy Suen
4a45fb36af
Add missing links in CHANGELOG.md
Signed-off-by: Remy Suen <remy.suen@gmail.com>
2018-08-26 08:38:03 -04:00
Igor Nesterenko
6bf8d839f3 clean up typing description
bump version
2018-08-20 21:20:39 +03:00
Alex Dima
a3d4b50888 Remove usage of jsdom-no-contextify 2018-08-20 17:55:37 +02:00
Viktor Havrylin
be2ce9d233 Update vscode json deps 2018-08-17 14:13:31 +03:00
Alex Dima
3a22d5db6d 0.14.3 2018-08-17 10:33:36 +02:00
Alex Dima
1fdfb38901 Pick up new monaco-languages 2018-08-17 10:33:25 +02:00
Alex Dima
d085b3bad8 1.5.1 2018-08-17 10:30:02 +02:00
Alex Dima
711d51d9fc Fixes Microsoft/monaco-editor#1009 2018-08-17 10:29:51 +02:00
Igor Nesterenko
661fd04454
Merge branch 'master' into on-demand-schema-loading 2018-08-12 21:18:24 +03:00
Alex Dima
f166cef0aa 1.5.1 2018-08-11 00:32:33 +02:00
Alex Dima
ca5e6abbe0 Do not create file:/// protocol fallback for web workers 2018-08-11 00:32:26 +02:00
Alex Dima
9669392026 Simplify samples 2018-08-11 00:26:38 +02:00
Alex Dima
a15d655b34 changelog 2018-08-11 00:13:47 +02:00
Alex Dima
c36f474eb5 Update docs 2018-08-11 00:11:50 +02:00
Alex Dima
7fe62b9b48 0.14.2 2018-08-11 00:08:38 +02:00
Alex Dima
5772497c05 Revert "add sideEffects false for tree-shaking in webpack"
This reverts commit 04038d546a.
2018-08-11 00:08:11 +02:00
Alex Dima
6a5fa113a5 monaco-editor-core@0.14.6 2018-08-11 00:06:43 +02:00
Alex Dima
2fa1e0f3a6 1.5.0 2018-08-10 21:34:52 +02:00
Alex Dima
104d63abb3 Request monaco-editor@0.14 2018-08-10 21:34:37 +02:00
Alex Dima
5ac4970fd5 doc 2018-08-10 21:05:35 +02:00
Alex Dima
3257611038 0.14.1 2018-08-10 21:04:33 +02:00
Alex Dima
8beee8b589 monaco-editor-core@0.14.5 2018-08-10 21:04:02 +02:00
Alex Dima
6e4a60bfdd Add samples 2018-08-10 18:27:02 +02:00
Alex Dima
ea3b0177cf monaco-editor-core@0.14.4 2018-08-10 18:11:21 +02:00
Alex Dima
463998d94e Catch up with monaco-* modules 2018-08-10 17:55:48 +02:00
Alex Dima
ac8cbe3edb Docs 2018-08-10 17:55:38 +02:00
Alex Dima
f86321e052 Align languages with upcoming editor release 2018-08-10 16:42:30 +02:00
Alex Dima
701a5b4584 1.5.0 2018-08-10 15:44:29 +02:00
Alex Dima
159af65cc5 Assume identifiers starting with upper case are type names 2018-08-10 15:43:12 +02:00
Alexandru Dima
d2c6f44a77
Merge pull request #44 from olane/apex
Add Apex language
2018-08-10 15:32:28 +02:00
Alex Dima
e605ab21ef Fixes #26 2018-08-10 15:26:55 +02:00
Alex Dima
02fcbd578a Align features with upcoming editor release 2018-08-10 15:15:33 +02:00
Alex Dima
c734cbaf0c Update dev dependencies 2018-08-10 14:29:59 +02:00
Alexandru Dima
466bc4f0dd
Merge pull request #25 from evmar/docs-css
document necessary css loaders
2018-08-10 14:17:54 +02:00
olane
a3d82924a9 Create case variations of the keywords
Apex is case insensitive, but we can't make the highlighter case insensitive without breaking the heuristic which assumes that identifiers starting with an upper case letter are types. As a compromise, create the common case variations of the keywords and match on all of them.
2018-08-10 13:17:45 +01:00
Alex Dima
e808dc34a6 monaco-editor-core@0.14.2 2018-08-10 14:14:10 +02:00
olane
acea7fd4a1 Add missing get keyword 2018-08-10 12:50:42 +01:00
olane
c421273fca Apex also doesn't have a byte type 2018-08-10 12:46:12 +01:00
olane
1d66cf8412 Remove hex, octal and binary numbers - apex doesn't support them 2018-08-10 12:45:25 +01:00
olane
40dfb97e56 Add support for apexdoc (based on java javadoc support) 2018-08-10 12:43:32 +01:00
Alex Dima
750b688642 Update devDependencies 2018-08-10 13:34:57 +02:00
Alexandru Dima
5e178f81c8
Merge pull request #981 from mscolnick/patch-1
add sideEffects false for tree-shaking in webpack
2018-08-10 13:23:48 +02:00
Alex Dima
1fcd19be1c Fixes #922 2018-08-10 13:23:14 +02:00
Alex Dima
b04ceadff2 Adopt latest monaco-* modules 2018-08-10 13:23:14 +02:00
Alex Dima
178be30d46 1.4.1 2018-08-10 13:03:15 +02:00
Alex Dima
e656c6a449 Update dependencies 2018-08-10 13:02:53 +02:00
olane
9498adec54 Update tests to reflect new assumption 2018-08-10 11:57:12 +01:00
olane
7140444de9 Assume identifiers starting with an uppercase letter are types 2018-08-10 11:57:03 +01:00
Alex Dima
370169f666 2.2.0 2018-08-10 12:55:43 +02:00
Alex Dima
a02a95603d Adopt monaco-editor-core@0.14.1 2018-08-10 12:53:09 +02:00
Alex Dima
70020ec3be 2.2.0 2018-08-10 12:46:56 +02:00
Alex Dima
c0e876a4a8 vscode-html-languageservice@2.1.5 2018-08-10 12:44:19 +02:00
Alex Dima
552bfedb75 Update dependencies 2018-08-10 12:30:59 +02:00
olane
5557352259 Merge keyword list with keyword list from SFDC documentation 2018-08-10 11:28:44 +01:00
Alex Dima
f5602dc25a 3.2.0 2018-08-10 12:18:34 +02:00
Alex Dima
b08b71f7e4 Adopt monaco-editor-core@0.14.1 2018-08-10 12:18:07 +02:00
Alex Dima
5ab4ffac72 Add support for testing via a local web server 2018-08-10 12:05:51 +02:00
Alex Dima
ce1fb4aab7 2.2.0 2018-08-10 12:00:41 +02:00
Alex Dima
61c5a476e7 Update deps 2018-08-10 12:00:30 +02:00
Alex Dima
4336d9c40f Adopt monaco-editor-core@0.14.0 2018-08-10 11:58:26 +02:00
olane
ca8e66588a Add apex to readme list 2018-08-10 10:54:25 +01:00
olane
cd8c782c0e Bundle apex 2018-08-10 10:41:36 +01:00
olane
62d143821a Register apex language and load tests 2018-08-10 10:39:13 +01:00
olane
0821a3dd33 Add Apex highlighter based on Java highlighter 2018-08-10 10:38:33 +01:00
Alex Dima
be47b28d96 Use a more compact format for dts to avoid duplication 2018-08-08 17:34:03 +02:00
Alex Dima
d1e907a30c Do not load typescriptServices.js on the UI thread anymore 2018-08-08 16:53:26 +02:00
Alex Dima
95c8a531a2 Remove language registration, configuration and tokenization 2018-08-08 16:20:29 +02:00
Alex Dima
46d0fd6400 1.4.0 2018-08-08 15:58:52 +02:00
Alex Dima
44cb53cd6e Format 2018-08-08 15:51:09 +02:00
Alexandru Dima
201fa54695
Merge pull request #21 from mattmccutchen/relatedInformation-cyclic
Clear the `file` fields of `relatedInformation` too. (WIP)
2018-08-08 15:46:30 +02:00
Alex Dima
a56039de2d Remove any cast 2018-08-08 15:46:01 +02:00
Alex Dima
1e6ff8e032 Merge branch 'master' into pr/mattmccutchen/21 2018-08-08 15:43:54 +02:00
Alex Dima
35afe8257c Update to typescript 3.0.1 2018-08-08 15:32:31 +02:00
Alexandru Dima
bc5c3656cb
Merge pull request #43 from Vityanchys/azcli
Added azcli
2018-08-08 13:00:27 +02:00
Alex Dima
4a58571f1b Merge remote-tracking branch 'origin/master' into pr/Vityanchys/43 2018-08-08 13:00:05 +02:00
Alexandru Dima
5f30811868
Merge pull request #42 from mattmasson/master
Add support for Power Query (M) language
2018-08-08 12:57:24 +02:00
Alexandru Dima
a0809e5d56
Merge pull request #38 from masad-frost/master
Fix Clojure syntax highlighting
2018-08-08 12:55:39 +02:00
Alexandru Dima
946bbab820
Merge pull request #952 from AliMirlou/patch-1
Fix typo
2018-08-08 12:31:31 +02:00
Alexandru Dima
1dd1bd085b
Merge pull request #957 from cancerberoSgx/install-instructions-fix
fix small error in integration docs
2018-08-08 12:31:11 +02:00
Alexandru Dima
c4f9d704e5
Merge pull request #962 from haeguri/fix-sample-option
Fix playground sample option
2018-08-08 12:29:53 +02:00
Martin Aeschlimann
ac6eafddf5 fix FoldingRange conversion (1-based) 2018-08-08 12:08:23 +02:00
Martin Aeschlimann
a50aef743c fix FoldingRange conversion (1-based) 2018-08-08 12:07:45 +02:00
Martin Aeschlimann
0932a0bb67 fix FoldingRange conversion (1-based) 2018-08-08 12:06:58 +02:00
Alex Dima
6fc362e75a Fix compilation error 2018-08-08 11:21:18 +02:00
Alex Dima
3979a669f3 Add JavaScript coloring 2018-08-08 11:19:05 +02:00
Alex Dima
4b1d2982ff Tweak launch.json 2018-08-08 10:43:41 +02:00
Alex Dima
63639e2ec5 Add TypeScript coloring 2018-08-07 15:15:01 +02:00
Martin Aeschlimann
54f904f6fe use thenable 2018-08-06 22:00:47 +02:00
Martin Aeschlimann
3a4ade6b5b add folding provider, update dependencies 2018-08-06 21:59:59 +02:00
Martin Aeschlimann
8d740b7665 add folding support, update dependendencies 2018-08-06 21:52:08 +02:00
Martin Aeschlimann
e6f882e3f1 add folding provider & update dependencies 2018-08-06 17:57:57 +02:00
Matt McCutchen
2d6f48ee53 Clear the file fields of relatedInformation too. 2018-07-31 14:04:40 -04:00
Igor Nesterenko
5e33eb349b - provide custom schema request service
- make sure that on-demand loading of schemas works as in VSCode
- bump version of plugin
2018-07-30 23:02:38 +03:00
Myles Scolnick
04038d546a
add sideEffects false for tree-shaking in webpack 2018-07-27 14:55:18 -04:00
Evan Martin
5c68d18081
document necessary css loaders
Copy the CSS config from the test into the docs, because without this
the same code fails to build.
2018-07-21 10:16:59 -07:00
haeguri
dc76b1fc95 Fix playground sample option
- change `nativeContextMenu` to `contextmenu`
2018-07-19 01:11:35 +09:00
Sebastián Gurin
046a04289b fix small error in integration docs 2018-07-14 21:23:37 -03:00
Viktar Pakanechny
e0ecde0617 Added azcli 2018-07-12 18:04:23 +03:00
Matt Masson
5d86ca2aa7 Add powerquery to bundle 2018-07-10 17:38:55 -04:00
Matt Masson
d94b2f8c41 Add built-in constants, functions, and types 2018-07-10 17:35:02 -04:00
Matt Masson
7c6fe3b1bf FIx word breaker for keyword identifiers 2018-07-10 15:41:19 -04:00
Matt Masson
250f5d42d8 Split operator keywords and fix "operators" typo 2018-07-10 15:25:10 -04:00
Matt Masson
b261c99d53 Separate constructors and constants from keywords 2018-07-10 15:04:43 -04:00
Matt Masson
985b1bdc11 Add definition for identifier.quote (to match dax syntax) 2018-07-10 14:37:50 -04:00
Matt Masson
56df5af3e5 Add tests 2018-07-10 14:33:51 -04:00
Matt Masson
a63a94a9af Separate operators from delimiters 2018-07-10 14:33:42 -04:00
Matt Masson
134fe29df2 add powerquery to distribution and test 2018-07-10 13:11:13 -04:00
Matt Masson
eb48b847e5 Remove old wordDefinition field 2018-07-10 13:08:06 -04:00
Matt Masson
8380da7fff Tokenizer fixes for quoted identifiers, comments, strings, numbers 2018-07-10 13:05:13 -04:00
Matt Masson
79b5433bb4 Initial commit of Power Query / M Language 2018-07-10 13:00:51 -04:00
Ali Mirlou
a356c8ad22
Fix typo 2018-07-10 18:20:37 +04:30
Alex Dima
f0ef36333b update mocha 2018-07-03 16:47:05 +02:00
Alex Dima
48e17a0001 1.4.0 2018-07-03 12:53:32 +02:00
Alexandru Dima
30868019d9
Update README.md 2018-07-03 12:50:38 +02:00
Alexandru Dima
1e3817ae55
Merge pull request #23 from mikegreiling/support-node-6-lts
Add support for Node 6 LTS
2018-07-03 12:46:56 +02:00
Alex Dima
22ba9ff9c7 Delete test/package.json 2018-07-03 12:46:02 +02:00
Alex Dima
146fedb9cf Merge remote-tracking branch 'origin/master' into pr/mikegreiling/23 2018-07-03 12:42:51 +02:00
Alex Dima
92ea8b5d76 Fix regular expressions on Windows (Fixes #3) 2018-07-03 12:31:25 +02:00
Alex Dima
5569d6fa18 Improve package.json 2018-07-03 12:10:17 +02:00
Alex Dima
ebe8c27add Fixes #21 2018-07-03 11:50:26 +02:00
Mike Greiling
1723fda926
remove unnecessary parens 2018-07-03 01:39:58 -05:00
Mike Greiling
8332b52938
remove object spread for node 6 compatibility 2018-07-03 01:31:06 -05:00
Mike Greiling
50ced222cb
fix npm test script 2018-07-03 01:19:41 -05:00
masad-frost
59cf966107 Fix tests 2018-07-02 19:14:04 -07:00
masad-frost
76f0f15077 Remove code for comments 2018-07-02 19:03:02 -07:00
Alexandru Dima
98d97d8541
Merge pull request #19 from brijeshb42/master
Add support for webpack 3
2018-07-02 15:05:42 +02:00
Alexandru Dima
cfa6425859
Merge pull request #41 from zqlu/perl
add perl to bundle.js
2018-06-20 11:41:20 +02:00
Zhiqiang Lu
807111133c add perl to bundle.js 2018-06-19 15:54:33 +08:00
Brijesh Bittu
19632dfaa6 Add support for webpack 3 2018-06-18 15:23:20 +05:30
Alexandru Dima
6c50bcf61c
Merge pull request #40 from zqlu/perl
Add Perl language
2018-06-18 10:21:05 +02:00
Zhiqiang Lu
fdf97477a6 update perl test 2018-06-15 17:51:29 +08:00
Zhiqiang Lu
ce9ef2b74d Add Perl language 2018-06-15 17:44:10 +08:00
Alexandru Dima
69230df585
Merge pull request #39 from zqlu/shell
Add Shell language
2018-06-14 13:54:46 +02:00
Alexandru Dima
14f6229243
Merge pull request #916 from nikeee/patch-1
Fix hash comment in xdot sample
2018-06-14 13:47:56 +02:00
Zhiqiang Lu
16f9c159f2 Add Shell language 2018-06-14 10:40:13 +08:00
Niklas Mollenhauer
c2cc55508b
Fix hash comment in xdot sample 2018-06-13 19:10:05 +02:00
Alex Dima
b1bb04e2f1 1.3.0 2018-06-13 11:00:43 +02:00
Alexandru Dima
7e67afdc3d
Merge pull request #18 from timkendrick/fix/worker-output-path
Fix worker output path in loader rules
2018-06-13 10:58:40 +02:00
Tim Kendrick
c20f6dd6aa Fix worker output path in loader rules 2018-06-12 16:34:28 +01:00
Alex Dima
c7b54325fd Patch typescriptServices to hard-code ts.sys to undefined (Microsoft/monaco-editor-webpack-plugin#9) 2018-06-12 11:38:48 +02:00
Alex Dima
5c1bcb6ae3 Update mocha 2018-06-12 10:00:07 +02:00
Alex Dima
5f84834ffa Clarify example
Add launch configuration
2018-06-12 09:43:14 +02:00
Alexandru Dima
198d321805
Merge pull request #14 from dmitriylyner/enhancement/context-path
Enhancement/dynamicPublicPath - Take into account publicPath being set dynamically
2018-06-12 09:25:07 +02:00
masad-frost
be0d51046c Use .editorConfig from Microsoft/vscode 2018-06-09 02:46:31 -07:00
masad-frost
f46294da86 Disable detectIndentation in .vscode 2018-06-09 02:46:31 -07:00
masad-frost
0a0c14ab03 Use tabs 2018-06-09 02:46:29 -07:00
masad-frost
18e09b4100 Fix broken comments 2018-06-09 02:45:50 -07:00
masad-frost
29bee2f3ef Fix scheme comments 2018-06-09 02:45:49 -07:00
masad-frost
520915ef46 Add regexp 2018-06-09 00:33:26 -07:00
masad-frost
12294521e0 Add ns and defn- to definitions 2018-06-09 00:33:14 -07:00
masad-frost
6f38c8fe44 Move boolean and str to keywords 2018-06-09 00:32:35 -07:00
masad-frost
79eaf088de Add defn- and include hyphen in boundary 2018-06-09 00:18:17 -07:00
masad-frost
6f3c349061 Fix hex numbers 2018-06-08 23:47:44 -07:00
masad-frost
9987c4fd86 Prettier 2018-06-08 23:45:35 -07:00
Dmitriy Lyner
fa97cf3a83 nvm string syntax. oops 2018-05-31 14:29:24 -06:00
Dmitriy Lyner
7a8774bafd an extra \ snuck in compared to origina ldeleted function 2018-05-31 14:28:50 -06:00
Dmitriy Lyner
29bed5adbd rename parameter string to str purely to prevent confusion 2018-05-31 14:27:14 -06:00
Dmitriy Lyner
b6b4422ab4 remove console log and condense return into 1 line 2018-05-31 11:19:50 -06:00
Dmitriy Lyner
f7a3a213f6 per timkenrick's feedback. Slight modification in that the outer function (MonacoEnvironment iife) is run at build time while the getWorkerUrl function is run at runtime so we must move the logic for accessing window.__webpack_public_path__ inside. 2018-05-31 11:14:33 -06:00
Alexandru Dima
0fff4b5721
Merge pull request #904 from avelino/clojure
added clojure exampple
2018-05-31 12:28:02 +02:00
Avelino
0c074dcc2a added clojure exampple
ref #828
2018-05-31 07:16:08 -03:00
Alexandru Dima
b6f47a51d6
Merge pull request #37 from avelino/clojure
Clojure: added more keywords
2018-05-31 12:01:59 +02:00
Avelino
4f1958ac27 fixed clear \\ to \ on keywords 2018-05-31 06:39:50 -03:00
Alex Dima
32838abddd Minor cleanup 2018-05-31 11:39:34 +02:00
Alexandru Dima
0474b13c9d
Merge pull request #36 from avelino/clojure
Clojure support
2018-05-31 11:37:47 +02:00
Avelino
380fe86dd8 fixed keyword that contains - 2018-05-31 06:34:02 -03:00
Avelino
8bfec94690 added more keywords
Clojure has many reserved words
2018-05-31 06:23:20 -03:00
Dmitriy Lyner
87f68ff7af base case 2018-05-30 15:10:07 -06:00
Dmitriy Lyner
3884bd5470 Merge branch 'enhancement/context-path' of https://github.com/dmitriylyner/monaco-editor-webpack-plugin into enhancement/context-path 2018-05-30 13:33:03 -06:00
Dmitriy Lyner
44bfaed10e this is more inline with webpack https://webpack.js.org/concepts/output/\#advanced 2018-05-30 13:32:54 -06:00
Dima
eaf91c414e
Merge branch 'master' into enhancement/context-path 2018-05-30 12:25:36 -06:00
Dmitriy Lyner
f1ea23c229 fix logic. It's more lines of code but safer. 2018-05-30 11:07:22 -06:00
Dmitriy Lyner
083face122 Take <base href=..> into account 2018-05-30 10:15:11 -06:00
Avelino
05bb6c9204 append clojure on readme file 2018-05-30 11:32:39 -03:00
Avelino
3892487cb8 Merge github.com:Microsoft/monaco-languages into clojure
* github.com:Microsoft/monaco-languages:
  upgrade all language support (today) When implementing a new language should be charged update README (keep project up to date)
2018-05-30 11:30:09 -03:00
Avelino
b8cf0d688f added clojure support
refs:
https://github.com/Microsoft/monaco-editor/issues/828
https://github.com/theia-ide/theia/issues/1717
2018-05-30 11:26:52 -03:00
Alexandru Dima
7173f056fa
Merge pull request #35 from avelino/more_languages_2_readme
upgrade all language support (today)
2018-05-30 14:44:51 +02:00
Avelino
7cc8adadec upgrade all language support (today)
When implementing a new language should be charged update
README (keep project up to date)
2018-05-30 09:22:29 -03:00
Martin Aeschlimann
c1510365db fix JSON sample (for #899) 2018-05-30 12:15:40 +02:00
Alex Dima
ef899cbd35 1.2.1 2018-05-30 11:25:44 +02:00
Alex Dima
61bfb5f8a6 Fixes #8: Avoid arrow functions in generated code 2018-05-30 11:25:17 +02:00
Alexandru Dima
3dd38f1ca5
Merge pull request #34 from masad-frost/fm-scheme
Add Scheme language
2018-05-29 15:13:24 +02:00
Alexandru Dima
c09fd5d81d
Merge pull request #33 from masad-frost/fm-py-indent
Add auto-indentation for python
2018-05-29 15:12:19 +02:00
Alex Dima
e0cad2423f Adopt latest vscode-html-languageservice 2018-05-28 16:06:18 +02:00
masad-frost
817ca5bd99 Add Scheme language 2018-05-21 23:03:09 -07:00
Alex Dima
6b7dfecca4 1.2.0 2018-05-18 14:50:03 +02:00
Alex Dima
c75e97e037 Fixes #12: Catch up with 0.13.x rename 2018-05-18 14:48:47 +02:00
Alex Dima
900e817512 Add simple way to test (#12) 2018-05-18 14:48:27 +02:00
masad-frost
5c8480449b Add auto-indentation for python 2018-05-16 20:56:51 -07:00
Benjamin Pasero
d7ef525b1d
Change =dev to =src in the links 2018-05-16 12:41:41 +02:00
Alexandru Dima
f6fb545dc9
Merge pull request #878 from rcjsuen/folding-example
Add folding provider sample to the playground
2018-05-16 08:50:59 +02:00
Remy Suen
4279391dde Add folding provider sample to the playground
Signed-off-by: Remy Suen <remy.suen@gmail.com>
2018-05-15 11:02:35 -04:00
Alexandru Dima
03655e6da9
Merge pull request #20 from fathyb/hover/cover-block
Use Mardown code block for hover tooltip
2018-05-15 12:40:12 +02:00
Alexandru Dima
779a88524d
Merge pull request #25 from fathyb/update/parcel
Update Parcel example
2018-05-15 12:29:43 +02:00
Alex Dima
fe5ddc65b2 Add workaround for typedoc silliness 2018-05-15 12:24:55 +02:00
Alex Dima
046f324627 0.13.1 2018-05-15 11:25:08 +02:00
Alex Dima
28e4b900b8 update changelog 2018-05-15 11:24:58 +02:00
Alex Dima
5142ee6c30 Fixes #871 2018-05-15 11:23:21 +02:00
Fathy Boundjadj
407357f852
Use Mardown code block for hover tooltip 2018-05-13 03:19:41 +02:00
Peng Lyu
1b82be2abf 0.13.0 2018-05-11 11:59:03 -07:00
Peng Lyu
6dc4fba5de update dependencies, changelog 2018-05-11 11:58:59 -07:00
Peng Lyu
781bcdd267 1.3.0 2018-05-11 10:36:08 -07:00
Fathy Boundjadj
968fccdaec
Update Parcel example 2018-05-10 18:18:29 +02:00
Peng Lyu
7eb290dff4 Fix microsoft/monaco-editor#858 C++ includes 2018-05-03 14:33:48 -07:00
Peng Lyu
8f3204478a bump typedoc to avoid build failure. 2018-05-03 13:15:15 -07:00
Alexandru Dima
7195ea606e
Merge pull request #32 from Serhioromano/master
Add new language ST
2018-05-03 10:08:06 +02:00
Peng Lyu
14e82b33a4 Fix #826. Add samples for new languages 2018-05-02 16:10:04 -07:00
Sergey Romanov
63308cf6aa Added language config for pairs 2018-05-02 20:49:48 +06:00
Sergey Romanov
1e565b33ac Few extensions added 2018-05-02 20:37:42 +06:00
Sergey Romanov
6911ed6b88 Add new language ST 2018-05-02 20:34:05 +06:00
Martin Aeschlimann
a021ab7a38 2.1.1 2018-04-30 16:57:08 +02:00
Martin Aeschlimann
0e6ea95f4f 2.1.1 2018-04-30 16:56:41 +02:00
Martin Aeschlimann
f878fb07da 2.1.1 2018-04-30 16:54:56 +02:00
Martin Aeschlimann
67cc4d9fe2 update service 2018-04-30 16:49:17 +02:00
Martin Aeschlimann
418157fe99 update markers on settings change 2018-04-30 16:08:23 +02:00
Martin Aeschlimann
6b854819a3 dispose defaults change listener 2018-04-30 16:06:26 +02:00
Martin Aeschlimann
b030b3ab81 update readme 2018-04-30 16:03:22 +02:00
Martin Aeschlimann
c95fac4d7c hook color provider 2018-04-30 15:58:22 +02:00
Martin Aeschlimann
e9046ef4a9 update markers on settings change (for Microsoft/monaco-editor#755 2018-04-30 14:55:45 +02:00
Martin Aeschlimann
c0250bfca3 remove markers on settings change. Fixes Microsoft/monaco-editor#840 2018-04-30 14:35:24 +02:00
Martin Aeschlimann
1fc63ab25c add color decorators. Fixes Microsoft/monaco-editor#132 2018-04-30 12:43:38 +02:00
Alexandru Dima
b9fbec9b1e
Merge pull request #23 from afroozeh/undo-redo-buttons
Add undo redo example
2018-04-27 11:48:15 +02:00
Alex Dima
49ca1a835b More deps 2018-04-27 10:57:33 +02:00
Alex Dima
ef18d5129e Update uncss 2018-04-27 10:54:10 +02:00
Alex Dima
352e71bed9 More updates to deps 2018-04-27 10:48:06 +02:00
Alex Dima
c3291a2b5f Update clean-css 2018-04-27 10:44:54 +02:00
Ali Afroozeh
2d87862e54 Add undo redo example 2018-04-26 15:34:45 +02:00
Alexandru Dima
5c2a695a7a
Update integrate-esm.md 2018-04-19 12:23:29 +02:00
Alex Dima
922865708b Use globalObject: 'self' (Microsoft/monaco-editor#759) 2018-04-19 12:21:10 +02:00
Alex Dima
bcd0803238 Fix samples on Windows 2018-04-19 12:01:57 +02:00
Alexandru Dima
fe637537e0
Merge pull request #6 from rcjsuen/readme
Fix some typos in the README.md
2018-04-16 18:48:36 +02:00
Alexandru Dima
9c1b72ad0b
Merge pull request #5 from rcjsuen/disposable
Remove unused IDisposable array
2018-04-16 18:47:44 +02:00
Alexandru Dima
c77aec86d5
Merge pull request #6 from rcjsuen/disposable
Remove unused IDisposable array
2018-04-16 18:47:13 +02:00
Martin Aeschlimann
d806983671 refresh decorations after new setDiagnosticsOptions have been applied. fixes Microsoft/monaco-editor#755 2018-04-16 10:01:27 +02:00
Remy Suen
4b122a71cb Fix some typos in the README.md
Signed-off-by: Remy Suen <remy.suen@gmail.com>
2018-04-15 06:52:49 -04:00
Remy Suen
8045997506 Remove unused IDisposable array
The IDisposables created by the registration of language providers
were originally stored in an array. However, that array is not
actually used anywhere in the code so it should be removed instead.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
2018-04-13 18:43:09 -04:00
Remy Suen
47d02d469a Remove unused IDisposable array
The IDisposables created by the registration of language providers
were originally stored in an array. However, that array is not
actually used anywhere in the code so it should be removed instead.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
2018-04-13 18:39:01 -04:00
Alex Dima
5011586b50 Tweak script order 2018-04-12 09:47:37 +02:00
Alex Dima
9589cfacb8 Push .d.ts files 2018-04-12 09:31:09 +02:00
Alex Dima
ff60cf8b84 1.1.0 2018-04-12 09:30:24 +02:00
Alex Dima
5aba6b02ac Adopt new monaco-editor 2018-04-12 09:30:17 +02:00
Alex Dima
104b90d358 0.12.0 2018-04-12 09:27:54 +02:00
Alex Dima
139273dc0a Document the Webpack Monaco Editor Loader Plugin 2018-04-12 09:24:52 +02:00
Alex Dima
b5607fec63 Fixes #795 2018-04-11 17:34:52 +02:00
Alex Dima
cf3e5fdad4 Remove test files 2018-04-11 17:27:04 +02:00
Alex Dima
3902b0b55c Prepare release 2018-04-11 17:25:04 +02:00
Alex Dima
64641eebb2 3.1.0 2018-04-11 16:46:43 +02:00
Alex Dima
3efd3be6db Adopt TS 2.8.1 2018-04-11 16:46:32 +02:00
Alex Dima
887aa9faa1 Adopt new monaco-editor-core 2018-04-11 16:43:08 +02:00
Alex Dima
6f34b63e40 1.2.0 2018-04-11 16:38:14 +02:00
Alex Dima
26db7182c6 1.1.0 2018-04-11 16:38:07 +02:00
Alex Dima
2fc074ebcd Adopt new monaco-editor-core 2018-04-11 16:38:07 +02:00
Alex Dima
427abfc518 2.1.0 2018-04-11 16:34:49 +02:00
Alex Dima
d09c2e5681 Adopt new monaco-editor-core 2018-04-11 16:34:44 +02:00
Alex Dima
3e40e40b22 2.1.0 2018-04-11 16:31:48 +02:00
Alex Dima
5c40240cb2 Adopt new monaco-editor-core 2018-04-11 16:30:58 +02:00
Alex Dima
008a5a9f98 2.1.0 2018-04-11 16:26:30 +02:00
Alex Dima
8006ce3fe9 Adopt new monaco-editor-core 2018-04-11 16:26:04 +02:00
Alex Dima
831ba249e3 Improve note 2018-04-11 16:08:13 +02:00
Alex Dima
27bb265b52 Update generated samples 2018-04-11 16:06:57 +02:00
Alexandru Dima
32921a26c6
Merge pull request #804 from ShalokShalom/patch-1
add LSP support
2018-04-11 16:06:27 +02:00
Alex Dima
4f663fab48 Fixes #780: Adopt new hover API 2018-04-11 13:41:00 +02:00
Alex Dima
476420ef51 More typo fixing 2018-04-11 13:33:54 +02:00
Alex Dima
f800aa3abe Fixes Microsoft/monaco-editor#799: Fix typo 2018-04-11 11:48:59 +02:00
Alex Dima
e824352114 Move webpack plugin to its own project 2018-04-11 10:13:52 +02:00
Alex Dima
961659d32e 1.0.0 2018-04-11 09:58:56 +02:00
Alex Dima
2639244ae8 Fix path lookup 2018-04-11 09:57:59 +02:00
Alex Dima
b321f94acd Add requirejs sample 2018-04-10 17:55:53 +02:00
Alex Dima
2bc4f7f5ad Fix issue in fromMarkdownString 2018-04-10 16:21:11 +02:00
Alexandru Dima
ec6bc4dd9f
Merge pull request #4 from pengx17/patch-1
fix an issue of `fromMarkdownString`
2018-04-10 16:20:20 +02:00
Peng Xiao
7600ac6d14
fix an issue of fromMarkdownString
`fromMarkdownString` incorrectly interpolated `Markdown` as PlainTest
2018-04-10 19:32:35 +08:00
Alex Dima
118c0d5783 Improve README, webpack consumption 2018-04-09 16:53:49 +02:00
Tim Kendrick
7c18d303e6 Add webpack loader plugin 2018-04-09 16:36:25 +02:00
Alex Dima
7ff49af7a6 Set up things 2018-04-09 16:28:21 +02:00
Alexandru Dima
f3912eaaf9
Merge pull request #31 from systemsoverload/systemsoverload/add-rust-support
Add rust colorization support
2018-04-09 16:04:43 +02:00
Alex Dima
8af485d6bf Remove log statements 2018-04-09 16:04:17 +02:00
Alex Dima
3b733d9822 Format code 2018-04-09 16:03:23 +02:00
Alex Dima
1f658b24a4 Remove compilation output 2018-04-09 15:58:05 +02:00
Alex Dima
0bd3f1cfa9 Fix toMarkdownString 2018-04-09 11:16:03 +02:00
Alex Dima
29d4a13cbc Fix toMarkdownString 2018-04-09 11:15:18 +02:00
Alexandru Dima
56d8482d10
Merge pull request #5 from rcjsuen/css-markdown
Fix conversion code from MarkedString to IMarkdownString in hovers
2018-04-09 11:14:14 +02:00
Remy Suen
b622773393 Fix hovers use of MarkedString to IMarkdownString
The conversion code for hovers ignored MarkedString's `language`
property which caused the content to be rendered incorrectly. The
code has been corrected to honour the property and now creates the
code block correctly.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
2018-04-06 16:57:35 +09:00
MatthiasSchuster
8715142a0d
Update README.md
Lsp is supported
2018-04-06 09:11:53 +02:00
TJ Kells
38bdd17d43 Add rust colorization support 2018-03-30 17:14:04 -05:00
Alex Dima
6fa2a2ec0e Add color provider sample (#775) 2018-03-29 16:31:43 +02:00
Microsoft Open Source
10e8a5d23f Initial commit 2018-03-26 04:32:11 -07:00
Microsoft Open Source
a2aa459e5e Initial commit 2018-03-26 04:32:10 -07:00
Microsoft GitHub User
169dd4ab69
Initial commit 2018-03-26 04:32:06 -07:00
Alexandru Dima
53ad835ce7
Merge pull request #767 from timkendrick/feature/webpack-plugin
Add webpack loader plugin to simplify ESM usage
2018-03-20 11:21:16 +01:00
Tim Kendrick
2535fd5a79 Prevent bundling worker fallbacks into compiled workers 2018-03-19 23:21:35 +00:00
Alex Dima
a47ca0bf3e Revert "Fix "Multiple assets emit to the same filename 0.app.js" error"
This reverts commit 5d5e00dbb2.
2018-03-19 11:08:38 +01:00
Alex Dima
abaa22c84e Remove non-optional features; align names 2018-03-19 10:53:19 +01:00
Alex Dima
5d5e00dbb2 Fix "Multiple assets emit to the same filename 0.app.js" error 2018-03-19 10:37:48 +01:00
Alex Dima
c19aff59af Remove babel rewriting 2018-03-19 10:37:30 +01:00
Tim Kendrick
7d6ae1b4f3 Add webpack loader plugin 2018-03-16 12:44:11 +00:00
Alex Dima
ba79244d69 Remove package-lock.json 2018-03-15 11:45:05 +01:00
Alex Dima
32f5433657 0.11.1 2018-03-15 11:29:03 +01:00
Alex Dima
171f24402b Changelog for 0.11.1 2018-03-15 11:28:53 +01:00
Alex Dima
1004677023 Further clarifications (for #761) 2018-03-15 11:28:13 +01:00
Alex Dima
9ebb2999b7 Fixes #765 2018-03-15 11:26:35 +01:00
Alex Dima
2bcd0cbbd3 Fixes #761 2018-03-15 11:13:11 +01:00
Alex Dima
2680c7133d Adopt latest deps (fixes #757) 2018-03-15 10:59:18 +01:00
Alex Dima
c53f010cc1 3.0.2 2018-03-15 10:55:34 +01:00
Alexandru Dima
bae84c6e1f
Merge pull request #15 from danmarshall/parcel
added Parcel Bundler sample
2018-03-15 10:54:57 +01:00
Alexandru Dima
702ab4958f
Merge pull request #13 from danmarshall/fix-webpack-small
changed path to browser-esm-webpack-small
2018-03-15 10:50:38 +01:00
Alex Dima
0b3e6b9b53 Avoid using monaco in .d.ts file 2018-03-15 10:49:51 +01:00
Alexandru Dima
0231fb5a71
Merge pull request #762 from rcjsuen/patch-1
Add tag comparison links to CHANGELOG.md
2018-03-15 10:13:51 +01:00
Dan Marshall
253f997a4e added Parcel bundler sample 2018-03-14 17:11:10 -07:00
Remy Suen
1dd81b2204
Add tag comparison links to CHANGELOG.md
Created links for showing a release's diff against the previous tag
so that readers can easily see what changes went in between the two
releases.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
2018-03-15 08:29:25 +09:00
Dan Marshall
6a5991abba changed path to browser-esm-webpack-small 2018-03-14 13:15:08 -07:00
Alex Dima
1044447b0a Update README 2018-03-14 17:01:55 +01:00
Alex Dima
d3dce49268 Add sample for small editor 2018-03-14 17:00:41 +01:00
Alex Dima
f22dfb79ba Reorganize, add webpack sample 2018-03-14 16:37:11 +01:00
Alexandru Dima
a6f35e1e52
Update integrate-esm.md 2018-03-14 16:36:14 +01:00
Alex Dima
f692f47f73 Update dependencies 2018-03-14 15:07:45 +01:00
Alexandru Dima
e19530c358
Merge pull request #12 from surinder83singh/master
Monaco Editor under nodewebkit
2018-03-14 15:07:00 +01:00
Alex Dima
becf53e270 Fix test page paths 2018-03-14 15:02:00 +01:00
Alex Dima
d91a3865e4 0.11.0 2018-03-14 14:50:10 +01:00
Alex Dima
999747d36d More tweaks in README 2018-03-14 14:49:41 +01:00
Alex Dima
b8a3d0a727 Improve documentation 2018-03-14 14:44:58 +01:00
Alex Dima
2d54688825 Update CHANGELOG and dependencies 2018-03-14 12:48:01 +01:00
Alex Dima
d2db3faa76 1.0.4 2018-03-14 12:32:09 +01:00
Alexandru Dima
3aff8636e1
Merge pull request #30 from rcjsuen/patch-2
Add ARG as a Dockerfile keyword
2018-03-14 12:31:46 +01:00
Alex Dima
4c12640101 Merge remote-tracking branch 'origin/master' into rcjsuen-patch-2 2018-03-14 12:29:38 +01:00
Alex Dima
cc15298334 3.0.1 2018-03-14 11:54:39 +01:00
Alex Dima
98b335974d Add folding configuration 2018-03-14 11:54:33 +01:00
Alex Dima
1fb34177ec 1.0.3 2018-03-14 11:52:58 +01:00
Alex Dima
21ac5f13ec Add folding rules 2018-03-14 11:52:52 +01:00
Alex Dima
c6192de715 Ship better typings file 2018-03-14 11:18:48 +01:00
Alexandru Dima
7b320a1336
Merge pull request #577 from PAPERPANKS/master
adding microsoft logo to footer
2018-03-13 22:11:37 +01:00
Alex Dima
290dd05367 Merge remote-tracking branch 'origin/master' into PAPERPANKS-master 2018-03-13 22:10:38 +01:00
Alex Dima
af8569258d Add module field to package.json 2018-03-13 22:08:25 +01:00
Alexandru Dima
408862ba77
Merge pull request #582 from domoritz/patch-1
Fix code in changelog
2018-03-13 21:10:04 +01:00
Alexandru Dima
b734cea11a
Merge pull request #726 from MSeifert04/add-linebreak-example
Add linebreak for if
2018-03-13 18:28:00 +01:00
Alexandru Dima
b900ebbd75
Merge pull request #731 from apalm/patch-1
Fix `Configure JSON defaults` sample
2018-03-13 18:27:12 +01:00
Alexandru Dima
8f28c119c0
Merge pull request #707 from ItsPugle/patch-1
Updating the footer to reflect change of year
2018-03-13 18:24:26 +01:00
Alexandru Dima
fa96d31665
Merge pull request #742 from anc/master
More realistic terminal shell
2018-03-13 18:21:17 +01:00
Alex Dima
994b5d31e9 Adopt latest deps 2018-03-13 17:30:03 +01:00
Alex Dima
46247f86ca 1.0.2 2018-03-13 17:14:42 +01:00
Alex Dima
ec369b424a Improve npmignore 2018-03-13 17:14:37 +01:00
Alex Dima
1c57ad0197 Update deps 2018-03-13 17:04:57 +01:00
Alex Dima
596f52b4d9 1.0.1 2018-03-13 16:58:51 +01:00
Alex Dima
93c48edccc Reorganize project 2018-03-13 16:58:42 +01:00
Alex Dima
49f2283894 Fix header 2018-03-13 16:23:41 +01:00
Alex Dima
9cdbea5f86 2.0.2 2018-03-13 16:22:59 +01:00
Alex Dima
95ad374e88 Bundle AMD using requirejs 2018-03-13 16:22:52 +01:00
Alex Dima
d0aebd991c 2.0.1 2018-03-13 16:22:15 +01:00
Alex Dima
364575ee25 Bundle AMD using requirejs 2018-03-13 16:22:00 +01:00
Alex Dima
75cf77eb64 2.0.1 2018-03-13 16:21:16 +01:00
Alex Dima
db021c78d6 Bundle AMD using requirejs 2018-03-13 16:21:09 +01:00
Alex Dima
7f49596882 Update deps 2018-03-13 15:37:48 +01:00
Alex Dima
0ab1a24b8d Ship ESM variant 2018-03-13 15:27:53 +01:00
Alex Dima
13fb3f4b6c Adopt latest monaco-editor-core 2018-03-13 11:35:55 +01:00
Alex Dima
be4df5641b Adopt latest modules 2018-03-12 19:16:45 +01:00
Alex Dima
6d29cf6810 Improve npmignore 2018-03-12 17:22:33 +01:00
Alex Dima
f8781eda2e Improve npmignore 2018-03-12 17:17:40 +01:00
Alex Dima
770b47221c Remove no longer necessary file 2018-03-12 17:00:29 +01:00
Alex Dima
d899dc15be Adopt new plugins shape 2018-03-12 16:42:49 +01:00
Alex Dima
6426199699 Fix test page issue 2018-03-12 16:42:49 +01:00
Alex Dima
791ffb66f5 2.0.0 2018-03-12 16:32:38 +01:00
Alex Dima
b2fa948b7c Use import() for lazy loading modules 2018-03-12 16:32:28 +01:00
Alex Dima
59282ddaf6 Adopt monaco-plugin-helpers 2018-03-12 16:30:50 +01:00
Alex Dima
e8e78d99db Add Copyright headers 2018-03-12 16:25:05 +01:00
Alex Dima
380f6ab53f 2.0.0 2018-03-12 16:21:25 +01:00
Alex Dima
121c293b98 Use import() for lazy loading code 2018-03-12 16:21:07 +01:00
Alex Dima
9df44200c0 Adopt monaco-plugin-helpers 2018-03-12 16:15:10 +01:00
Alex Dima
0944ea5897 Add Copyright Header 2018-03-12 16:07:41 +01:00
Alex Dima
f0f1142183 2.0.1 2018-03-12 14:16:29 +01:00
Alex Dima
4903cb5f00 Use import() for lazy-loading modules 2018-03-12 14:16:13 +01:00
Alex Dima
22f5c6aa9e 2.0.0 2018-03-12 13:57:39 +01:00
Alex Dima
5a0b7532f3 Adopt monaco-plugin-helpers 2018-03-12 13:57:24 +01:00
Alex Dima
043283146c 1.0.0 2018-03-12 13:52:25 +01:00
Alex Dima
a8741f55a9 Adopt monaco-plugin-helpers 2018-03-12 13:52:13 +01:00
Alex Dima
faf0d9a93a 3.0.0 2018-03-12 13:02:21 +01:00
Alex Dima
5d8e7bfc6a Add ts.worker for ESM variant 2018-03-12 13:01:17 +01:00
Alex Dima
50517cad24 Use tsMode and tsWorker for entry point names 2018-03-12 12:59:22 +01:00
Alex Dima
717952e163 Use import() for dynamic imports 2018-03-12 12:54:57 +01:00
Alex Dima
d75e5fdb8f Adopt monaco-plugin-helpers 2018-03-12 12:50:54 +01:00
Alex Dima
2ad83718b7 Spell out dynamic imports 2018-03-12 12:23:51 +01:00
Alex Dima
dfbeb25855 Restore test running 2018-03-12 12:08:09 +01:00
Alex Dima
bcc10f8425 Ship ESM variant 2018-03-12 11:58:04 +01:00
Alex Dima
bf7c78973c Reorganize project 2018-03-12 11:41:11 +01:00
Alex Dima
64d2e8c8ef Ship ESM; Adopt latest deps 2018-03-09 14:19:20 +01:00
Alex Dima
ca775cc8f3 Ship ESM; Adopt latest deps 2018-03-09 13:43:51 +01:00
Alex Dima
2208018338 Ship monaco.d.ts in release folder 2018-03-09 12:50:58 +01:00
Alex Dima
e5d3880ac4 Don't use gulp anymore 2018-03-09 12:45:16 +01:00
Alex Dima
09e0f8b047 Fix test running 2018-03-09 12:08:26 +01:00
Alex Dima
4158e69096 Move import typescrit out of gulp 2018-03-09 12:07:37 +01:00
Alex Dima
c45bf2eff6 Ship ESM version 2018-03-09 11:56:24 +01:00
Peng Lyu
41bb016283
Merge pull request #740 from nikeee/fix-linenumbers
Fix line number API usage
2018-03-08 11:44:44 -08:00
Alex Dima
9be21f963e Always compile to esm 2018-03-08 16:48:54 +01:00
Alex Dima
e2b014d8d7 Ship ESM variant; Ship AMD variant using webpack 2018-03-08 16:44:27 +01:00
Alex Dima
6a61202ff4 Add basic support for ESM 2018-03-08 15:44:18 +01:00
Alex Dima
92af97ca38 Refactor project shape 2018-03-08 15:28:00 +01:00
Alex Dima
ae43973e77 Adopt latest deps and fix errors 2018-03-08 13:00:44 +01:00
Peng Lyu
a9a9a486ce 2018 ;( 2018-03-07 22:24:24 -08:00
Peng Lyu
fb489d416f Ruby squiggly heredoc. 2018-03-07 15:37:15 -08:00
Peng Lyu
51df390edc Fix microsoft/monaco-editor#703. c++ 11 raw string literal. 2018-03-07 15:36:57 -08:00
Peng Lyu
acfa9cf274 Re Microsoft/monaco-editor#688 test case update. 2018-03-07 15:36:22 -08:00
Peng Lyu
c4bd2cdd37 Fix microsoft/monaco-editor#688. (*) is not commet 2018-03-07 11:28:28 -08:00
Remy Suen
5f51559926
Add ARG as a Dockerfile keyword
ARG was introduced as a keyword in Docker 1.09. It should be included
in Monaco as a keyword too.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
2018-03-07 18:16:46 +09:00
Alexandru Dima
5c70cefbad
Merge pull request #19 from rcjsuen/remove-disposables
Remove unused IDisposable array
2018-03-05 14:20:15 +01:00
Andre
c48bbd4dd6
More realistic terminal shell 2018-03-04 23:23:24 +07:00
Niklas Mollenhauer
0b10139f53 Fix line number API usage 2018-03-03 18:54:04 +01:00
Remy Suen
896f576a64 Remove unused IDisposable array
The IDisposables created by the registration of language providers
were originally stored in an array. However, that array is not
actually used anywhere in the code so it should be removed instead.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
2018-03-03 14:16:24 +09:00
Peng Lyu
e52655e468 Fix #716. 2018-03-02 16:50:02 -08:00
Alex Dima
e87b2e9445 Fixes Microsoft/monaco-editor#717: use absolute paths when running under http 2018-03-02 14:42:15 +01:00
Alexandru Dima
a09a5607c2
Merge pull request #29 from rcjsuen/patch-1
Add HEALTHCHECK as a Dockerfile keyword
2018-03-02 14:11:16 +01:00
Alexandru Dima
b7b82b5d4f
Merge pull request #27 from templarbit/master
Support Content-Security-Policy syntax highlighting
2018-03-02 14:10:41 +01:00
Alex Dima
2c5e6d5448 Make code compile 2018-03-02 14:09:31 +01:00
Alexandru Dima
1f4f98abc1
Merge pull request #28 from evakili/master
Whitespaces after # are allowed in C++ preprocessor statements (Microsoft/monaco-editor#687)
2018-03-02 13:59:52 +01:00
surinder singh
b2365bd7c9 Monaco Editor under nodewebkit 2018-03-02 04:08:16 +05:30
Alexandru Dima
aed7441450
Merge pull request #18 from rcjsuen/patch-1
Fix a small typo in README.md
2018-02-28 16:19:10 +01:00
Alex Dima
4514e58f07 Adopt TS 2.7.2 2018-02-28 16:17:09 +01:00
Remy Suen
3ff2bd5d03
Fix a small typo in README.md
Signed-off-by: Remy Suen <remy.suen@gmail.com>
2018-02-27 18:19:25 +09:00
Andrew Palm
00b766829b Run gulp generate-test-samples 2018-02-20 20:38:30 -05:00
Andrew Palm
d387351c5f Update JavaScript for configure-json-defaults sample 2018-02-20 20:38:30 -05:00
MSeifert04
a9dbe7bcaf add line break in example 2018-02-19 09:55:17 +01:00
Remy Suen
3e631e8385
Add HEALTHCHECK as a Dockerfile keyword
HEALTHCHECK was introduced as a keyword in Docker 1.12. It should be
included in Monaco as a keyword too.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
2018-02-18 07:15:21 +09:00
Martin Aeschlimann
ff043657bd update dependencies, fix promise typing issue 2018-02-07 09:59:03 +01:00
ItsPugle
929093d981
Updating the footer to reflect change of year 2018-01-25 20:38:35 +10:00
Martin Aeschlimann
19b622bb0a Remove comment of escapeText 2018-01-23 20:11:42 +01:00
Martin Aeschlimann
524db65880 remove escapeText 2018-01-23 18:25:30 +01:00
Martin Aeschlimann
c4f9df0f80 remove escapeText 2018-01-23 18:23:56 +01:00
Martin Aeschlimann
13c997af18 remove escapeText 2018-01-23 18:19:04 +01:00
evakili
a9ba86ce03 whitespaces after # are allowed in C++ preprocessor statements 2018-01-20 15:05:00 +03:30
David Gatti
4c0f0748e8 Added support for CSP 2018-01-12 13:48:51 -08:00
Alexandru Dima
fcb300dc51
Merge pull request #26 from TeamSQL/master
MySQL, Postgres, Redshift and Redis Language Support
2017-11-24 11:05:51 +01:00
Alex Dima
5994d965a6 Minor edits 2017-11-24 11:03:15 +01:00
Alexandru Dima
4ce2107152
Fixes #9 2017-11-13 16:54:20 +01:00
Alex Dima
bad3c34056 update .d.ts 2017-10-16 10:25:05 +02:00
Can Abacigil
5f8c74986c redis language support added, tests are ok 2017-10-03 12:25:54 +03:00
Can Abacigil
7382c4690b Merge branch 'master' into redis 2017-10-03 12:09:31 +03:00
Can Abacigil
33b0698269 updated bundles 2017-10-03 11:53:07 +03:00
Özgün Özen
222072d0f2 redis keywords 2017-10-03 10:19:30 +03:00
Can Abacigil
225a1181c9 version updated 2017-10-02 17:56:05 +03:00
Can Abacigil
5bbc1eb01c redshift tests done 2017-10-02 17:32:21 +03:00
Can Abacigil
68f56a91e7 postgresql test are done 2017-10-02 17:29:44 +03:00
Can Abacigil
6b6ff7ff5b Merge branch 'master' of github.com:TeamSQL/monaco-languages 2017-10-02 17:18:35 +03:00
Can Abacigil
30f92d1ce6 mysql sql language support 2017-10-02 17:18:22 +03:00
Özgün Özen
cc0dfec714 Merge branch 'master' of https://github.com/TeamSQL/monaco-languages 2017-10-02 12:00:19 +03:00
Özgün Özen
a717147619 pgsql keywords, redshift functions and keywords 2017-10-02 12:00:14 +03:00
Can Abacigil
7623a4c5cc Merge branch 'master' of github.com:TeamSQL/monaco-languages 2017-09-29 18:35:42 +03:00
Can Abacigil
d5f2122535 mysql test are in development 2017-09-29 18:35:17 +03:00
Özgün Özen
eea97aa450 Merge branch 'master' of https://github.com/TeamSQL/monaco-languages 2017-09-29 17:59:58 +03:00
Özgün Özen
7255316533 pgsql functions 2017-09-29 17:59:46 +03:00
Can Abacigil
3c98fd9269 updated npm name 2017-09-29 17:20:39 +03:00
Özgün Özen
e7e82c1516 mysql keywords, functions 2017-09-29 17:12:31 +03:00
Can Abacigil
92629b423e mysql language added 2017-09-29 15:09:00 +03:00
Dominik Moritz
bfcf32fde0 Fix code in changelog 2017-09-12 10:02:14 -07:00
Pankaj Kumar Gautam
b4ef188d9b giving color to span
To easily noticed by users 'not' span is coloured with deep orange (#ff5722)
2017-09-07 02:49:11 -07:00
Pankaj Kumar Gautam
56d3e5736e adding microsoft logo to footer 2017-09-04 16:25:19 +05:30
rebornix
5ec45016d7 1.3.2 2017-08-17 09:13:06 -07:00
rebornix
706c25292d adopt monaco-editor-core 2017-08-17 09:12:44 -07:00
rebornix
63d6dadc9c 1.3.2 2017-08-17 09:10:50 -07:00
rebornix
a8812c65eb adopt monaco-editor-core 2017-08-17 09:10:34 -07:00
rebornix
69ad62c985 1.3.3 2017-08-17 09:03:56 -07:00
rebornix
d039a0eff0 adopt monaco-editor-core and monaco-languages 2017-08-17 09:02:26 -07:00
rebornix
fd172013f7 2.3.0 2017-08-17 08:57:34 -07:00
rebornix
c06e446e8c adopt monaco-editor-core 2017-08-17 08:54:06 -07:00
Peng Lyu
7027f0b4ba Merge pull request #15 from kitsonk/update-ts24
Update to TypeScript 2.4.1
2017-08-17 08:51:31 -07:00
rebornix
e162b4ba29 0.9.0 2017-08-17 08:41:50 -07:00
rebornix
011f9411cd update monaco-editor-core 2017-08-17 08:41:13 -07:00
Peng Lyu
e641182722 Merge pull request #23 from marlenecota/smallbasic
add Small Basic support
2017-08-10 11:58:07 -07:00
Peng Lyu
950b513448 Merge pull request #21 from sdllc/master
Add hex number tokenization to R language
2017-08-10 11:56:56 -07:00
Peng Lyu
60fe7424a8 Merge pull request #22 from rcjsuen/patch-1
Update Dockerfile grammar with STOPSIGNAL and SHELL instructions
2017-08-10 11:49:25 -07:00
Peng Lyu
1e7815dd72 Merge pull request #24 from bjacobso/patch-1
Add LIMIT to sql keywords
2017-08-10 11:45:52 -07:00
Ben Jacobson
c8da645d93 Add LIMIT to sql keywords 2017-08-04 21:06:18 -07:00
marlenecota
9e1afc2619 added class and member detection 2017-07-31 01:00:19 -07:00
marlenecota
72904610c7 fix comment tokenizer 2017-07-29 22:23:33 -07:00
marlenecota
0281b3f960 removed date and REM 2017-07-29 22:03:44 -07:00
marlenecota
70ffd3f0c2 added support for Small Basic 2017-07-29 21:03:23 -07:00
Remy Suen
c85db6cb64 Add STOPSIGNAL and SHELL to list of Docker keywords
Docker added SHELL and STOPSIGNAL instructions in 1.12. These should
be included in the Dockerfile language definition.

Signed-off-by: Remy Suen <remy.suen@gmail.com
2017-07-23 21:18:04 +09:00
Duncan Werner
0604e55391 Add hex number tokenization to R language 2017-07-17 09:13:59 -07:00
Kitson Kelly
eff3dd58fe
Update to TypeScript 2.4.1 2017-07-07 17:01:22 +01:00
Alex Dima
efbe127375 Fix cyclic dependencies 2017-07-03 14:23:32 +02:00
Alex Dima
99d9c30dc3 1.3.1 2017-07-03 14:21:55 +02:00
Alex Dima
69a2c9e376 Fix cyclic dependency 2017-07-03 14:21:26 +02:00
Alex Dima
7b38df12a1 1.3.1 2017-07-03 14:20:17 +02:00
Alex Dima
ee4fe0475d Fix cyclic path 2017-07-03 14:20:08 +02:00
Martin Aeschlimann
301b0b29f6 1.3.2 2017-07-01 01:03:26 +08:00
Martin Aeschlimann
49b6457c6e update editor 2017-07-01 01:03:22 +08:00
Alex Dima
2ac44bc4de 1.3.0 2017-06-30 18:59:38 +02:00
Alex Dima
f76febf95b Update to latest monaco-editor-core 2017-06-30 18:59:20 +02:00
Alex Dima
b3beae902d 1.3.0 2017-06-30 18:53:26 +02:00
Alex Dima
68e7912e18 Adopt latest monaco-editor-core 2017-06-30 18:51:34 +02:00
Alex Dima
fbdcb70601 0.8.0 2017-06-30 18:35:56 +02:00
Alex Dima
e294277b7e Adopt latest monaco-editor-core 2017-06-30 18:35:38 +02:00
Alex Dima
c9c77f499b 2.2.0 2017-06-30 18:16:46 +02:00
Alex Dima
845b55aee5 Adopt latest monaco-editor-core 2017-06-30 18:16:16 +02:00
Johannes Rieken
c8118cb17e Merge pull request #14 from kitsonk/feature-documentation
Add documentation support on hover
2017-06-27 09:56:59 +02:00
Martin Aeschlimann
3cac4e7522 When I switch the editor's language and values, the previous language error markers stick around. Fixes Microsoft/monaco-editor#475 2017-06-26 16:54:34 +08:00
Martin Aeschlimann
076db3dcc7 Adopt WorkspaceEdit.changes API changes 2017-06-26 16:53:54 +08:00
Martin Aeschlimann
9a25293cce When I switch the editor's language and values, the previous language error markers stick around Microsoft/monaco-editor#475 2017-06-26 16:53:18 +08:00
Martin Aeschlimann
ecfce903c4 Website - Jade should be Pug. Fixes Microsoft/monaco-editor#13 2017-06-26 15:37:03 +08:00
Martin Aeschlimann
b49b64f05b monaco.languages.html.handlebarDefaults and monaco.languages.html.razorDefaults are swapped. Fixes Microsoft/monaco-editor#470 2017-06-26 15:22:08 +08:00
Martin Aeschlimann
9d724f1e05 Fix formatting 2017-06-26 15:17:53 +08:00
Martin Aeschlimann
a3fe14998f TypeError: Cannot read property 'getText' of null. Fixes Microsoft/monaco-editor#354 2017-06-26 15:16:03 +08:00
Martin Aeschlimann
3155a06129 TypeError: Cannot read property 'getText' of null. Fixes Microsoft/monaco-editor#354 2017-06-26 15:14:29 +08:00
Martin Aeschlimann
f279caa864 update dependencies 2017-06-23 15:50:40 +02:00
Martin Aeschlimann
261f853a1d update dependencies 2017-06-23 15:45:57 +02:00
Martin Aeschlimann
1a124f5415 update dependencies 2017-06-23 15:45:17 +02:00
Johannes Rieken
8ce9803370 Merge pull request #13 from kitsonk/ts-2.3.4
Update to TypeScript 2.3.4
2017-06-19 15:19:03 +02:00
Johannes Rieken
c044162233 add note about scope of this project 2017-06-19 12:07:21 +02:00
Johannes Rieken
9542c9f433 add setEagerModelSync-function to defaults, fixes #461 2017-06-19 12:01:58 +02:00
Kitson Kelly
a3101cd032
Add documentation support on hover 2017-06-17 18:34:32 -07:00
Kitson Kelly
be2c47c854
Update to TypeScript 2.3.4 2017-06-17 15:49:42 -07:00
Alex Dima
3e7008e334 Better cover invalid script/style tags (Microsoft/monaco-editor#412) 2017-06-09 10:25:25 +02:00
Alex Dima
d475297526 Update dev dependencies 2017-06-08 21:39:36 +02:00
Alex Dima
3c5417b252 Eliminate htmlTokenTypes 2017-06-08 19:48:45 +02:00
Alex Dima
f661c5f826 Format sources 2017-06-08 18:54:55 +02:00
Alex Dima
da162968ac Fixes Microsoft/monaco-editor#381: Align language configurations with VS Code 2017-06-08 18:26:10 +02:00
Alex Dima
d9d2ca27bc Fix missing trailing comma 2017-06-08 17:36:27 +02:00
Alexandru Dima
2586e9d789 Merge pull request #20 from lserafin/master
Add Solidity
2017-06-08 17:35:07 +02:00
Alexandru Dima
2981d7bc43 Merge pull request #19 from scottmcmaster/master
MSDAX support
2017-06-08 17:33:54 +02:00
Alexandru Dima
b14815ec66 Merge pull request #18 from andybons/patch-1
Fix typo: concering → concerning
2017-06-08 17:32:53 +02:00
Alexandru Dima
3e43ebc34a Merge pull request #17 from akosyakov/patch-1
Include src as a part of npm package
2017-06-08 17:32:22 +02:00
Alexandru Dima
9865a5f5a0 Merge pull request #16 from sandyarmstrong/numlits
csharp: add support for binary literals and _ as separator
2017-06-08 17:30:49 +02:00
Alexandru Dima
37e390f5ae Merge pull request #14 from AndersMad/master
HTML Tags: Add support for dash and fix colon in end tag
2017-06-08 15:54:00 +02:00
Alex Dima
ae07fd5aeb Add test for PR#14 2017-06-08 15:53:18 +02:00
Alexandru Dima
d44a63734c Merge pull request #13 from jmarianer/master
Support literal interpolated strings ($@"")
2017-06-08 15:37:09 +02:00
Alex Dima
bd847cb2a0 Fix a few missing commas and indentation 2017-06-08 15:33:52 +02:00
Luzian Serafin
6053795334 Add Solidity 2017-06-02 22:58:13 +02:00
Peng Lyu
6a3a3edd5e Merge pull request #8 from rebornix/master
Sample for nw.js
2017-05-22 13:12:36 -07:00
Scott McMaster
345fa67059 MSDAX support 2017-05-17 14:59:05 -07:00
Andrew Bonventre
2ae9c9680f Fix typo: concering → concerning 2017-05-13 12:47:41 -07:00
Anton Kosyakov
df620a6670 Include src as a part of npm package
It would be nice to consume sources as it is to bundle it with not amd loader, e.g. it is hard to consume generated amd modules with webpack.
2017-05-06 11:09:35 +02:00
Johannes Rieken
9b5c885b40 make host implement getScriptKind, #203 2017-05-04 10:36:10 +02:00
Sandy Armstrong
de35151091 csharp: add support for binary literals and _ as separator
Note that proper `_` usage is not enforced; this matches vscode behavior.
2017-05-02 16:53:20 -07:00
Martin Aeschlimann
2b347b1a47 update service 2017-05-02 11:11:15 +02:00
Martin Aeschlimann
cf8dfdae8f Editor doesn't respect htmlDefaults.setOptions to turn off angular suggestions. Fixes #3 2017-05-02 11:08:15 +02:00
AndersMad
4e97f005e6 Tags: Add support for dash and fix colon in end tag 2017-03-29 12:45:00 +02:00
Alex Dima
a210d77cf4 2.1.2 2017-03-03 17:40:24 +01:00
Alex Dima
f3f3e04ad2 Ignore validation requests for disposed models 2017-03-03 17:36:53 +01:00
rebornix
eebf585fc3 nwjs 2017-02-03 20:20:51 -08:00
Martin Aeschlimann
f032b58597 Adopt SnippetString, publish 1.3.1 2017-01-27 16:06:02 +01:00
Martin Aeschlimann
55f629828d publish 1.2.2 2017-01-27 16:03:52 +01:00
Martin Aeschlimann
f1b96cadd5 Adopt SnippetString and publish 1.2.1 2017-01-27 16:02:29 +01:00
Martin Aeschlimann
5618dbdb4f Remove unused functions 2017-01-27 15:59:34 +01:00
Martin Aeschlimann
3549972fdf Adapt SnippetString, publish 1.2.1 2017-01-27 15:57:50 +01:00
Joey Marianer
c71ca222d3 Support literal interpolated strings ($@"") 2017-01-24 15:02:54 -05:00
Alexandru Dima
d0026161f0 Update README.md 2017-01-21 11:11:59 +01:00
Alex Dima
ab02fc6402 2.1.1 2017-01-18 16:49:39 +01:00
Alex Dima
4ecd94aff9 Adjust module ids in tests to workaround r.js issue 2017-01-18 16:49:18 +01:00
Alex Dima
6fecefa24b Workaround issue with r.js that cannot bundle typescriptServices 2017-01-18 16:46:39 +01:00
Alex Dima
8b2dab26d2 1.2.0 2017-01-18 16:26:01 +01:00
Alex Dima
de86b65723 Update to latest monaco-editor-core 2017-01-18 16:25:53 +01:00
Alex Dima
04170905b3 1.2.0 2017-01-18 16:20:31 +01:00
Alex Dima
101cd2c825 Clean up version in package.json 2017-01-18 16:20:25 +01:00
Alex Dima
9efc8a652e Fix 3rd party notices 2017-01-18 16:13:36 +01:00
Alex Dima
d4c12fde31 Maintain Copyright statements in minified code 2017-01-18 16:11:46 +01:00
Alex Dima
f7877a7b22 Add ThirdPartyNotices file 2017-01-18 16:11:07 +01:00
Alex Dima
6787816d8e 1.3.0 2017-01-18 15:38:27 +01:00
Alex Dima
bc8df3676c Adopt latest monaco-editor-core 2017-01-18 15:37:48 +01:00
Alex Dima
eb82671c37 Fix integration tests 2017-01-18 15:33:30 +01:00
Alex Dima
18916e97a4 0.7.0 2017-01-18 15:25:46 +01:00
Alex Dima
a75676a7e9 Adopt latest monaco-editor-core 2017-01-18 15:25:19 +01:00
Alex Dima
77ac642bf5 2.1.0 2017-01-18 15:11:47 +01:00
Alex Dima
6e7de77d86 Update gulp-requirejs to get a newer version of r.js that can digest typescriptServices.js 2017-01-18 15:10:16 +01:00
Alex Dima
b3ab0a8d58 Adopt latest monaco-editor-core 2017-01-18 15:09:23 +01:00
Johannes Rieken
bd9f4dccb4 Merge pull request #12 from nicot/patch-2
Register React file extensions
2017-01-18 11:08:22 +01:00
Alex Dima
cc7b52cdcc Restore node's require after loading loader.js 2017-01-18 10:02:25 +01:00
Nico Tonozzi
6e84504731 Register React file extensions 2017-01-16 17:51:01 -08:00
Johannes Rieken
46a9f90baa use es2015 by default 2017-01-16 15:36:37 +01:00
Johannes Rieken
f5f4706596 use TypeScript 2.1.5 2017-01-16 15:29:14 +01:00
Johannes Rieken
8cbd548f8e redo diagnostics when options change, fixes #208 2017-01-16 15:19:16 +01:00
Johannes Rieken
77b2acb257 use TypeScript 2.1.5, fixes #177 2017-01-16 14:50:49 +01:00
Martin Aeschlimann
a0f4474c54 Markers appear for wrong language id. Fixes Microsoft/monaco-editor#111 2017-01-16 12:48:00 +01:00
Martin Aeschlimann
bfee5d6752 Markers appear for wrong language id. Fixes Microsoft/monaco-editor#111 2017-01-16 12:46:04 +01:00
Martin Aeschlimann
f0fdc683c1 Markers appear for wrong language id. Fixes Microsoft/monaco-editor#111 2017-01-16 12:42:55 +01:00
Alex Dima
6882a78485 More tweaks for optimal colorization 2017-01-02 01:42:29 +02:00
Alex Dima
da418eb8d9 Small tweaks 2016-12-31 00:46:15 +02:00
Alex Dima
36b879e624 Remove extraneous bracket directives 2016-12-31 00:20:31 +02:00
Alex Dima
21953fde00 adopt latest editor 2016-12-31 00:13:50 +02:00
Alex Dima
b5b35011ef Adopt Monarch breaking change 2016-12-21 15:53:21 +02:00
Alex Dima
03eaf41470 Small tweaks to use classic-style tokens 2016-12-12 09:18:15 +01:00
Alex Dima
35fffade6a Generate classic-style tokens 2016-12-11 19:33:32 +01:00
Alex Dima
b15a5d4b98 small tweak for less 2016-12-11 19:15:08 +01:00
Alex Dima
6b4e9948dc Generate classic-style tokens for less and add tests 2016-12-11 19:05:03 +01:00
Alex Dima
f487f4f76d Generate classic-style tokens for scss and add tests 2016-12-11 17:46:37 +01:00
Alex Dima
d62ad052d0 Fix php tests 2016-12-11 16:53:28 +01:00
Alex Dima
84365cfba1 Generate classic-style tokens for css and add tests 2016-12-11 16:51:11 +01:00
Alex Dima
73ca7943b6 Generate classic-style tokens for bat 2016-12-11 12:44:07 +01:00
Alex Dima
68ba05ecd8 Add a test page, simplify development setup 2016-10-19 12:54:23 +02:00
Alex Dima
f144cfb0ba Add a test page, simplify development setup 2016-10-19 12:43:37 +02:00
Alex Dima
517d32307e Add a test page, simplify development setup 2016-10-19 12:33:21 +02:00
Alexandru Dima
de4fbdf57e Update README.md 2016-10-19 11:51:53 +02:00
Alex Dima
31f3b79004 Fixes #1: Add a test page and simplify REAMDE 2016-10-19 11:51:03 +02:00
Martin Aeschlimann
dba0c1f2a0 Update service 2016-10-19 10:33:42 +02:00
Martin Aeschlimann
46354e4c4b Update language service 2016-10-11 11:52:50 +02:00
Alex Dima
3b2c5f3f32 2.0.1 2016-10-07 15:21:11 +02:00
Alex Dima
5b4125c325 Use label for the web workers 2016-10-07 15:21:01 +02:00
Alex Dima
4d34d4843c 1.1.1 2016-10-07 15:17:14 +02:00
Alex Dima
f53c1650ed Use label for the web workers 2016-10-07 15:17:02 +02:00
Alex Dima
340b687f6a 1.2.1 2016-10-07 15:12:19 +02:00
Alex Dima
c72ade006f Use label for the web workers 2016-10-07 15:12:10 +02:00
Alex Dima
db5dfea6bc 0.6.1 2016-10-06 17:26:28 +02:00
Alex Dima
ac89ee029e improve handlebars tokens 2016-10-06 17:26:19 +02:00
Alex Dima
cd6cee8241 Fix test running 2016-10-06 17:25:58 +02:00
Alex Dima
4dd22f337d 0.6.0 2016-10-06 17:09:44 +02:00
Alex Dima
fd80161c08 Update README 2016-10-06 17:09:30 +02:00
Alex Dima
0adb5b8c74 Adopt latest monaco-editor-core, adopt TS 2.0 for compilation 2016-10-06 17:08:59 +02:00
Alex Dima
f57c0d0747 2.0.0 2016-10-06 17:04:39 +02:00
Alex Dima
9a20b7c584 Allow r.js to digest typescriptServices.js 2016-10-06 17:03:10 +02:00
Alex Dima
376e97713a 1.0.0 2016-10-06 17:00:03 +02:00
Alex Dima
4f8cfd44b3 Fix tsconfig.json 2016-10-06 16:59:26 +02:00
Alex Dima
d96d3b863b Adopt include in tsconfig.json 2016-10-06 16:51:47 +02:00
Alex Dima
b05c374f39 Adopt TS 2.0 language service 2016-10-06 16:46:19 +02:00
Alex Dima
daf48dd5e2 Adopt latest monaco-editor-core, adopt TS 2.0 for compilation 2016-10-06 16:42:50 +02:00
Alex Dima
79ec6c6841 1.1.0 2016-10-06 16:36:10 +02:00
Alex Dima
58f6b54d96 Make it clear that options are set via setOptions 2016-10-06 16:35:58 +02:00
Alex Dima
3b0a3b3b41 Adopt latest monaco-editor-core, adopt TS 2.0 2016-10-06 16:35:24 +02:00
Alex Dima
69912f9b93 1.1.0 2016-10-06 16:33:15 +02:00
Alex Dima
09b372338c Make it clear that options are set via setDiagnosticOptions 2016-10-06 16:33:01 +02:00
Alex Dima
ba7a261af3 Adopt latest monaco-editor-core, adopt TS 2.0 2016-10-06 16:32:05 +02:00
Alex Dima
33bc2d01f4 1.2.0 2016-10-06 16:19:24 +02:00
Alex Dima
ca246f0350 Make it clear that options are set via setDiagnosticOptions 2016-10-06 16:19:03 +02:00
Alex Dima
9205fd98a6 Fix whitespace 2016-10-06 16:15:43 +02:00
Alex Dima
4e1031f084 Adopt latest monaco-editor-core, adopt TS 2.0 2016-10-06 16:15:35 +02:00
Alexandru Dima
27c7315d4b Merge pull request #12 from Hirse/feature/yaml
YAML colorization
2016-10-05 12:38:19 +03:00
d056950
df77c1f729 YAML: Fix tests 2016-10-04 14:27:07 +02:00
d056950
cdd1cdd0be YAML: Correctly terminate numbers in Flow Collections 2016-10-04 12:55:35 +02:00
d056950
5e78e912f2 YAML: Remove value state and add more tests 2016-10-04 12:44:57 +02:00
d056950
f4d3d312db Add YAML 2016-09-30 17:34:18 +02:00
Alex Dima
59d79a9a2b Fixes Microsoft/monaco-editor#204: Do what monaco-html does to resolve vscode-uri 2016-09-26 22:35:04 +03:00
Alexandru Dima
0224ec8e0e Merge pull request #11 from JKillian/jk/cssUnits
Add vmin and vmax CSS units
2016-09-26 06:35:30 +03:00
Alexandru Dima
ab254ceffc Merge pull request #10 from nicot/master
Go: add raw string literal syntax
2016-09-26 06:34:39 +03:00
Alexandru Dima
3b003d8637 Update README.md 2016-09-23 14:31:19 +03:00
Jason Killian
57054a860f Add vmin and vmax CSS units 2016-09-22 16:51:28 -04:00
Nico Tonozzi
d71afeadce Add backtick tests 2016-09-20 13:11:53 -07:00
Alex Dima
b82f866e12 1.0.0 2016-09-19 11:12:49 +03:00
Alex Dima
8cc4c3d35c Tokenization of html, razor and handlebars is in monaco-languages 2016-09-19 11:11:58 +03:00
Alex Dima
52e39d313e 0.5.0 2016-09-18 23:17:12 +03:00
Alex Dima
3058339ea9 Adopt monaco-editor-core@0.7.1 2016-09-18 23:17:01 +03:00
Alex Dima
5d907f60f3 Add razor 2016-09-18 11:40:14 +03:00
Alex Dima
d0f7359bc0 Add handlebars 2016-09-17 01:16:53 +02:00
Alex Dima
83bf09fbef Adopt monaco-editor-core that doesn't register html 2016-09-16 23:19:17 +02:00
Alex Dima
e1a09ac16d Add html tests 2016-09-16 22:29:37 +02:00
Alex Dima
a7917b195e Add build status to README 2016-09-16 20:08:31 +02:00
Alex Dima
36cd3492ec Add travis builds 2016-09-16 20:06:04 +02:00
Alexandru Dima
331b09c796 Update README.md 2016-09-16 20:00:19 +02:00
Alex Dima
e83992b95d Update README 2016-09-16 19:59:24 +02:00
Alex Dima
bb831fbc82 monaco-editor-core@0.7.0 2016-09-16 19:59:17 +02:00
Alex Dima
7248dae5be Fix whitespace 2016-09-16 19:55:53 +02:00
Alex Dima
7dc4974d98 disable html until it gets tests 2016-09-16 18:57:46 +02:00
Alex Dima
5e08803177 Emit delimiters near html tags 2016-09-16 18:22:38 +02:00
Alex Dima
f1f3088632 Add php 2016-09-16 18:22:20 +02:00
Alex Dima
712fb631b5 Handle text and whitespace in HTML 2016-09-16 16:42:13 +02:00
Alex Dima
0eadaef95c Add html colorizer 2016-09-16 12:58:24 +02:00
Martin Aeschlimann
f26f3636d9 Initial release 2016-09-15 19:33:23 +02:00
Microsoft GitHub User
08e7666e5c Initial commit 2016-09-14 12:44:50 -07:00
Alex Dima
7724ecff21 0.6.1 2016-09-05 15:47:11 +02:00
Alex Dima
b46ee7feeb Add ThirdPartyNotices.txt file mentioning TypeScript 2016-09-05 15:45:16 +02:00
Martin Aeschlimann
4eab336f3e Publish monaco-css@1.1.4 2016-09-05 15:05:27 +02:00
Alex Dima
aef19eb790 0.4.0 2016-09-05 14:44:49 +02:00
Alex Dima
e53257dd45 Adopt monaco-editor-core@0.6.0 2016-09-05 14:44:23 +02:00
Alexandru Dima
e13d89495f Merge pull request #9 from sandyarmstrong/csx-directives-ms
csharp: allow styling #r/#load
2016-09-05 14:38:38 +02:00
Johannes Rieken
c9bbfd2834 depend on editor-core 0.6.0, bump own version 2016-09-05 14:35:15 +02:00
Sandy Armstrong
c133c2eb2b csharp: allow styling #r/#load 2016-08-30 21:53:37 -07:00
Johannes Rieken
6d6e1bab7f Update README.md 2016-08-30 11:54:51 +02:00
Johannes Rieken
737e0f1650 Update README.md 2016-08-30 11:54:36 +02:00
Johannes Rieken
c4a322c1b1 Update README.md 2016-08-30 11:54:17 +02:00
Martin Aeschlimann
2ca146d5c5 Publish monaco-json@1.0.5-next.1 2016-08-30 10:31:57 +02:00
Martin Aeschlimann
0b6b8d8c41 Publish monaco-css@1.1.3-next.1 2016-08-30 10:28:29 +02:00
Johannes Rieken
50eafc20f6 mention where to file issues 2016-08-26 11:26:52 +02:00
Johannes Rieken
3248b9469e on model remove dispose listener, clear timeout, fixes #10 2016-08-26 11:24:01 +02:00
Johannes Rieken
776e684da2 fix issue with outline 2016-08-26 11:15:42 +02:00
Johannes Rieken
f8f33bc833 align formatting options #3 2016-08-26 11:14:02 +02:00
Johannes Rieken
867476531d Expose setMaximunWorkerIdleTime 2016-08-26 11:02:50 +02:00
Johannes Rieken
b9333be154 minimize API surface of LanguageServiceDefaults 2016-08-26 10:42:36 +02:00
Alexandru Dima
0d4fd0f14c Merge pull request #5 from ashalkhakov/postiats
Adding support for ATS/Postiats.
2016-08-15 15:55:54 +02:00
Johannes Rieken
5767393c5b clone _extraLibs before handing it out, fixes #5 2016-08-15 15:42:24 +02:00
Martin Aeschlimann
01cf2aeea8 Remove markers on model dipsose (Microsoft/monaco-editor#111) 2016-08-15 14:54:40 +02:00
Martin Aeschlimann
dbfa9a3980 Remove markers on model dipsose (Microsoft/monaco-editor#111) 2016-08-15 13:03:19 +02:00
Johannes Rieken
13035407db get[Type|Java]ScriptWorker is actually not the web worker interface
Now set to 'any' but we should come up with a way to export its shape including the ts types/interfaces
2016-08-09 15:59:55 +02:00
Johannes Rieken
f397abf752 Merge pull request #8 from paveldk/pkolev/expose-ts-worker-func
Export getTypeScriptWorker & getJavaScriptWorker to monaco.languages.typescript
2016-08-09 15:23:31 +02:00
Pavel Kolev
1bf301f43c Expose getTypeScriptWorker & getJavaScriptWorker to monaco.languages.typescript 2016-08-09 10:00:30 +03:00
Martin Aeschlimann
67fedfef19 Update to new json language service 2016-07-29 11:01:59 +02:00
Martin Aeschlimann
b0adbfc134 Update to latest css-languageservice 2016-07-29 10:57:42 +02:00
Martin Aeschlimann
14358c5207 Merge pull request #7 from basarat/patch-1
📝 🌹
2016-07-14 10:38:43 +02:00
Basarat Ali Syed
a3add25ef5 📝 🌹
closes https://github.com/Microsoft/monaco-css/issues/4
2016-07-14 08:19:31 +10:00
Artyom Shalkhakov
ba5e90065a Fixing ATS/Postiats hilighting. 2016-07-07 22:25:49 +06:00
Artyom Shalkhakov
c1a1f8663d Cleanup, adding a test-case. 2016-07-07 20:23:06 +06:00
Artyom Shalkhakov
cbe01cea43 Adding support for ATS/Postiats. 2016-07-06 11:50:57 +06:00
Martin Aeschlimann
584d8ebb96 update to 0.3.1 2016-06-30 19:30:42 +01:00
Martin Aeschlimann
7e50cccbb2 Update to 1.0.2 2016-06-30 19:27:24 +01:00
Martin Aeschlimann
a95094a599 Updated to 1.1.1 2016-06-30 19:23:59 +01:00
Martin Aeschlimann
531e80f318 Rename in SCSS breaks syntax. Fixes Microsoft/vscode#8331 2016-06-29 15:00:03 +02:00
Alexandru Dima
8d8b5d204c Update README.md 2016-06-28 17:54:48 +02:00
Alexandru Dima
b456ef4b26 Update README.md 2016-06-28 17:54:26 +02:00
Martin Aeschlimann
e3a06b11c8 update readme 2016-06-28 12:27:45 +02:00
Martin Aeschlimann
ba8bde4807 Update readme 2016-06-28 12:22:24 +02:00
Martin Aeschlimann
f999b64a46 also check npm < 3.0 node modules location 2016-06-28 12:11:05 +02:00
Martin Aeschlimann
19616c8a6f improve installation description (fixes #2) 2016-06-28 11:58:53 +02:00
Martin Aeschlimann
8d523f9831 fix typo 2016-06-27 10:32:19 +02:00
Martin Aeschlimann
dc9df814a7 fix typos 2016-06-27 10:29:31 +02:00
Martin Aeschlimann
ca09509a14 update readme 2016-06-27 09:59:30 +02:00
Martin Aeschlimann
da30aaede9 Update readme.md 2016-06-27 09:52:49 +02:00
Martin Aeschlimann
76d2d0b8d1 1.0.1, take latest json-languageservice 2016-06-26 23:53:55 +02:00
Martin Aeschlimann
50e0c8d70c 1.0 2016-06-26 12:50:57 +02:00
Alex Dima
4dad8338f9 Fixes #1: Add electron sample 2016-06-25 00:27:33 +02:00
Alex Dima
6d75d678b6 0.3.0 2016-06-24 21:03:02 +02:00
Alex Dima
ffdbb8f20e Fix less language configuration 2016-06-24 21:02:29 +02:00
Alex Dima
552ac11e4e 1.1.0 2016-06-24 20:40:29 +02:00
Alex Dima
7fb0572779 Update to monaco-editor-core@0.5.1 2016-06-24 20:39:54 +02:00
Alex Dima
53c3e4010d Adopt monaco-editor-core@0.5.1 2016-06-24 20:18:44 +02:00
Alex Dima
1ea9e2f88b 0.5.0 2016-06-24 20:12:59 +02:00
Alex Dima
876a2de2af Adopt monaco-editor-core@0.5.1 2016-06-24 20:12:20 +02:00
Microsoft GitHub User
3b85bdbffd Initial commit 2016-06-24 07:00:06 -07:00
Martin Aeschlimann
4be02a4e82 Add css/less/scss definitions and grammar 2016-06-23 12:05:40 +02:00
Martin Aeschlimann
ef359fa044 1.0 2016-06-23 11:53:48 +02:00
Martin Aeschlimann
ad61b15585 Move language definition and configuration to monaco-languages 2016-06-23 11:53:19 +02:00
Martin Aeschlimann
ff503e756e rename to cssMode, cssWorker & create dev, min 2016-06-23 11:53:19 +02:00
Martin Aeschlimann
293cc3aa55 Release build script 2016-06-23 11:53:19 +02:00
Martin Aeschlimann
2380ce142c Init 2016-06-23 11:52:34 +02:00
Microsoft GitHub User
dc598757e7 Initial commit 2016-06-23 01:19:19 -07:00
Alex Dima
a30bf9ceac document how to run from source 2016-06-20 15:37:42 +02:00
Benjamin Pasero
23b305079f add markdown 2016-06-20 15:29:28 +02:00
Alexandru Dima
dcb32585cc Update README.md 2016-06-20 15:17:13 +02:00
Alex Dima
49445c0a59 Improve README 2016-06-20 15:02:47 +02:00
Alex Dima
3f5e823039 0.2.1 2016-06-17 08:35:27 +02:00
Alex Dima
7ba10ddbfb Adopt createData option when creatin a web worker 2016-06-17 08:35:18 +02:00
Alex Dima
14f3eddc6b 0.2.0 2016-06-16 12:32:38 +02:00
Alex Dima
d40eeccae0 Adopt latest monaco-editor-core 2016-06-16 12:32:24 +02:00
Alex Dima
ab14589e93 0.2.0 2016-06-16 12:28:42 +02:00
Alex Dima
7bd4d2543f Adopt latest monaco-editor-core 2016-06-16 12:28:21 +02:00
Alex Dima
73295879a4 Export apis 2016-06-16 11:54:41 +02:00
Alex Dima
9878b4c42a Rename license file 2016-06-16 09:56:12 +02:00
Alex Dima
6dcc1c017d Initial version 2016-06-16 09:55:30 +02:00
Alex Dima
50effc62a9 0.1.1 2016-06-09 19:02:45 +02:00
Alex Dima
73265012bb Fix README 2016-06-09 19:02:35 +02:00
Alex Dima
c4177ec697 Initial release 2016-06-09 19:01:53 +02:00
Alex Dima
83339b4d97 0.1.1 2016-06-09 12:41:46 +02:00
Johannes Rieken
331acc5fef Initial version 2016-06-09 12:39:51 +02:00
Microsoft GitHub User
7ac7ab93e8 Initial commit 2016-06-07 09:58:50 -07:00
Microsoft GitHub User
82734bfad1 Initial commit 2016-06-07 09:57:44 -07:00
Microsoft GitHub User
a818bfffee Initial commit 2016-06-07 09:51:19 -07:00
1043 changed files with 449043 additions and 247074 deletions

View file

@ -0,0 +1,106 @@
###############################################################################################
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
###############################################################################################
name: $(Date:yyyyMMdd)$(Rev:.r)
trigger: none
pr: none
schedules:
- cron: '0 7 * * *'
displayName: Daily release
branches:
include:
- main
always: true
resources:
repositories:
- repository: templates
type: github
name: microsoft/vscode-engineering
ref: main
endpoint: Monaco
parameters:
- name: publishMonacoEditorCore
displayName: 🚀 Publish Monaco Editor Core
type: boolean
default: true
- name: publishMonacoEditor
displayName: 🚀 Publish Monaco Editor
type: boolean
default: true
- name: vscodeRef
displayName: The VS Code commit id.
type: string
default: 'main'
- name: prereleaseVersion
displayName: The prerelease version.
type: string
default: 'dev-${today}'
extends:
template: azure-pipelines/npm-package/pipeline.yml@templates
parameters:
cgIgnoreDirectories: $(Build.SourcesDirectory)/dependencies/vscode
npmPackages:
- name: monaco-editor-core
workingDirectory: $(Build.SourcesDirectory)/dependencies/vscode/out-monaco-editor-core
testPlatforms: []
skipAPIScan: true # package build requires Linux
buildSteps:
- task: NodeTool@0
inputs:
versionSource: fromFile
versionFilePath: .nvmrc
- script: sudo apt install -y libkrb5-dev
displayName: Install libkrb5-dev
- script: npm ci
displayName: Install NPM dependencies
- script: npx playwright install --with-deps
displayName: Install Playwright Dependencies
- script: yarn ts-node ./scripts/ci/build-monaco-editor-core-pkg nightly
env:
VSCODE_REF: ${{ parameters.vscodeRef }}
PRERELEASE_VERSION: ${{ parameters.prereleaseVersion }}
retryCountOnTaskFailure: 5
displayName: Setup, Build & Test monaco-editor-core
tag: next
ghCreateTag: false
publishPackage: ${{ parameters.publishMonacoEditorCore }}
publishRequiresApproval: false
- name: monaco-editor
dependsOn: monaco-editor-core
workingDirectory: $(Build.SourcesDirectory)/out/monaco-editor
testPlatforms: []
skipAPIScan: true # package build requires Linux
buildSteps:
- task: NodeTool@0
inputs:
versionSource: fromFile
versionFilePath: .nvmrc
- script: npm ci
displayName: Install NPM dependencies
- script: npx playwright install --with-deps
displayName: Install Playwright Dependencies
- script: yarn ts-node ./scripts/ci/build-monaco-editor-pkg nightly
env:
VSCODE_REF: ${{ parameters.vscodeRef }}
PRERELEASE_VERSION: ${{ parameters.prereleaseVersion }}
retryCountOnTaskFailure: 5
displayName: Setup, Build & Test monaco-editor
tag: next
publishPackage: ${{ parameters.publishMonacoEditor }}
publishRequiresApproval: false

View file

@ -0,0 +1,105 @@
###############################################################################################
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
###############################################################################################
name: $(Date:yyyyMMdd)$(Rev:.r)
trigger: none
pr: none
resources:
repositories:
- repository: templates
type: github
name: microsoft/vscode-engineering
ref: main
endpoint: Monaco
parameters:
- name: publishMonacoEditorCore
displayName: 🚀 Publish Monaco Editor Core
type: boolean
default: false
- name: publishMonacoEditor
displayName: 🚀 Publish Monaco Editor
type: boolean
default: false
- name: publishWebpackPlugin
displayName: 🚀 Publish Webpack Plugin
type: boolean
default: false
extends:
template: azure-pipelines/npm-package/pipeline.yml@templates
parameters:
cgIgnoreDirectories: $(Build.SourcesDirectory)/dependencies/vscode
npmPackages:
- name: monaco-editor-core
workingDirectory: $(Build.SourcesDirectory)/dependencies/vscode/out-monaco-editor-core
testPlatforms: []
skipAPIScan: true # package build requires Linux
buildSteps:
- task: NodeTool@0
inputs:
versionSource: fromFile
versionFilePath: .nvmrc
- script: sudo apt install -y libkrb5-dev
displayName: Install libkrb5-dev
- script: npm ci
displayName: Install NPM dependencies
- script: npx playwright install --with-deps
displayName: Install Playwright Dependencies
- script: yarn ts-node ./scripts/ci/build-monaco-editor-core-pkg stable
displayName: Setup, Build & Test monaco-editor-core
tag: latest
ghCreateTag: false
publishPackage: ${{ parameters.publishMonacoEditorCore }}
publishRequiresApproval: false
- name: monaco-editor
dependsOn: monaco-editor-core
workingDirectory: $(Build.SourcesDirectory)/out/monaco-editor
testPlatforms: []
skipAPIScan: true # package build requires Linux
buildSteps:
- task: NodeTool@0
inputs:
versionSource: fromFile
versionFilePath: .nvmrc
- script: npm ci
displayName: Install NPM dependencies
- script: npx playwright install --with-deps
displayName: Install Playwright Dependencies
- script: yarn ts-node ./scripts/ci/build-monaco-editor-pkg stable
displayName: Setup, Build & Test monaco-editor
tag: latest
publishPackage: ${{ parameters.publishMonacoEditor }}
publishRequiresApproval: false
- name: monaco-editor-webpack-plugin
dependsOn: monaco-editor
workingDirectory: $(Build.SourcesDirectory)/webpack-plugin
testPlatforms: []
packagePlatform: Windows
buildSteps:
- script: npm ci
displayName: Install NPM dependencies
workingDirectory: $(Build.SourcesDirectory)/webpack-plugin
- script: npm run compile
displayName: Build plugin
workingDirectory: $(Build.SourcesDirectory)/webpack-plugin
tag: latest
ghCreateTag: false
publishPackage: ${{ parameters.publishWebpackPlugin }}
publishRequiresApproval: false

View file

@ -0,0 +1,8 @@
{
"image": "mcr.microsoft.com/devcontainers/typescript-node",
"customizations": {
"vscode": {
"extensions": ["ms-vscode.js-debug-nightly"]
}
}
}

1
.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
* text=auto

View file

@ -0,0 +1,57 @@
name: Bug Report
description: File a bug report
title: '[Bug] '
body:
- type: markdown
attributes:
value: |
To help us processing your bug report, please fill out this form.
- type: checkboxes
id: reproducible-in-vscode
attributes:
label: Reproducible in vscode.dev or in VS Code Desktop?
description: Can you reproduce the bug in [vscode.dev](https://vscode.dev) or in VS Code Desktop? If so, please create [an issue in the VS Code repository](https://github.com/microsoft/vscode/issues). **VS Code issues are usually looked at within a couple of days.**
options:
- label: Not reproducible in [vscode.dev](https://vscode.dev) or VS Code Desktop
required: true
- type: checkboxes
id: reproducible-in-monaco-playground
attributes:
label: Reproducible in the monaco editor playground?
description: Can you reproduce the bug in [the monaco editor playground](https://microsoft.github.io/monaco-editor/playground.html)? A minimal reproducible example will make it significantly easier for us to get this bug fixed.
options:
- label: Not reproducible in [the monaco editor playground](https://microsoft.github.io/monaco-editor/playground.html)
- type: textarea
id: playgroundLink
attributes:
label: Monaco Editor Playground Link
description: Please share the link to the [monaco editor playground](https://microsoft.github.io/monaco-editor/playground.html) after you entered your example. In case of regressions, please also provide the first broken version.
- type: textarea
id: playgroundSourceCode
attributes:
label: Monaco Editor Playground Code
description: Please provide the code from the monaco editor playground example.
render: typescript
- type: textarea
id: steps
attributes:
label: Reproduction Steps
description: Please describe the steps (in the playground) that lead to the problematic behavior
- type: textarea
id: actual-behavior
attributes:
label: Actual (Problematic) Behavior
description: Please describe the actual (problematic) behavior, as observed in the playground.
- type: textarea
id: expected-behavior
attributes:
label: Expected Behavior
description: Please describe the expected behavior.
- type: textarea
id: additional-context
attributes:
label: Additional Context
description: Please provide additional context.

View file

@ -0,0 +1,38 @@
name: Feature Request
description: Suggest an idea for this project
title: '[Feature Request] '
labels:
- 'feature-request'
body:
- type: markdown
attributes:
value: |
To help us efficiently reviewing your feature request, please fill out this form.
- type: checkboxes
id: not
attributes:
label: Context
options:
- label: This issue is not a bug report. *(please use a different template for reporting a bug)*
required: true
- label: This issue is not a duplicate of an existing issue. *(please use the [search](https://github.com/microsoft/monaco-editor/issues) to find existing issues)*
required: true
- type: textarea
id: description
attributes:
label: Description
description: Please describe your feature request.
- type: textarea
id: relevantCodePlaygroundLink
attributes:
label: Monaco Editor Playground Link
description: If applicable, please share the link to a relevant [monaco editor playground sample](https://microsoft.github.io/monaco-editor/playground.html)
- type: textarea
id: releveantCode
attributes:
label: Monaco Editor Playground Code
description: If applicable, please share the code from the monaco editor playground sample.
render: typescript

4
.github/ISSUE_TEMPLATE/3_other.md vendored Normal file
View file

@ -0,0 +1,4 @@
---
name: Other Request (For Maintainers Only)
about: This issue template should only be used by maintainers.
---

5
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View file

@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Question
url: https://stackoverflow.com/questions/tagged/monaco-editor
about: Please ask and answer questions here.

150
.github/commands.json vendored Normal file
View file

@ -0,0 +1,150 @@
[
{
"type": "comment",
"name": "question",
"allowUsers": [],
"action": "updateLabels",
"addLabel": "*question"
},
{
"type": "label",
"name": "*question",
"action": "close",
"reason": "not_planned",
"comment": "We closed this issue because it is a question about using Monaco Editor rather than an issue or feature request. Please search for help on [StackOverflow](https://stackoverflow.com/questions/tagged/monaco-editor), where the community has already answered many similar questions. See also our [issue reporting guidelines](https://github.com/microsoft/monaco-editor#contributing).\n\nHappy Coding!"
},
{
"type": "label",
"name": "*out-of-scope",
"action": "close",
"reason": "not_planned",
"comment": "We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.\n\nThanks for your understanding, and happy coding!"
},
{
"type": "label",
"name": "wont-fix",
"action": "close",
"reason": "not_planned",
"comment": "We closed this issue because we don't plan to address it.\n\nThanks for your understanding, and happy coding!"
},
{
"type": "comment",
"name": "duplicate",
"allowUsers": [],
"action": "updateLabels",
"addLabel": "*duplicate"
},
{
"type": "label",
"name": "*duplicate",
"action": "close",
"reason": "not_planned",
"comment": "Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for [existing issues](https://github.com/microsoft/monaco-editor/issues).\n\nHappy Coding!"
},
{
"type": "comment",
"name": "verified",
"allowUsers": [
"@author"
],
"action": "updateLabels",
"addLabel": "verified",
"removeLabel": "author-verification-requested",
"requireLabel": "author-verification-requested",
"disallowLabel": "unreleased"
},
{
"type": "comment",
"name": "confirm",
"allowUsers": [],
"action": "updateLabels",
"addLabel": "confirmed",
"removeLabel": "confirmation-pending"
},
{
"type": "comment",
"name": "confirmationPending",
"allowUsers": [],
"action": "updateLabels",
"addLabel": "confirmation-pending",
"removeLabel": "confirmed"
},
{
"type": "comment",
"name": "needsMoreInfo",
"allowUsers": [],
"action": "updateLabels",
"addLabel": "~info-needed"
},
{
"type": "comment",
"name": "closedWith",
"allowUsers": [],
"action": "close",
"reason": "completed",
"addLabel": "unreleased"
},
{
"type": "comment",
"name": "spam",
"allowUsers": [],
"action": "close",
"reason": "not_planned",
"addLabel": "invalid"
},
{
"__comment__": "Allows folks on the team to label issues by commenting: `\\label My-Label` ",
"type": "comment",
"name": "label",
"allowUsers": []
},
{
"type": "label",
"name": "~verification-steps-needed",
"action": "updateLabels",
"addLabel": "verification-steps-needed",
"removeLabel": "~verification-steps-needed",
"comment": "Friendly ping! Looks like this issue requires some further steps to be verified. Please provide us with the steps necessary to verify this issue."
},
{
"type": "label",
"name": "~info-needed",
"action": "updateLabels",
"addLabel": "info-needed",
"removeLabel": "~info-needed",
"comment": "Thanks for creating this issue! We figured it's missing some basic information or doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.\n\nHappy Coding!"
},
{
"type": "label",
"name": "~version-info-needed",
"action": "updateLabels",
"addLabel": "info-needed",
"removeLabel": "~version-info-needed",
"comment": "Thanks for creating this issue! We figured it's missing some basic information, such as a version number. Please take the time to update the issue with the Monaco Editor version you're using.\n\nHappy Coding!"
},
{
"type": "label",
"name": "~confirmation-needed",
"action": "updateLabels",
"addLabel": "info-needed",
"removeLabel": "~confirmation-needed",
"comment": "Please try to reproduce this issue with the latest version of Monaco Editor. If the issue persists, please update the issue with confirmation.\n\nHappy Coding!"
},
{
"type": "comment",
"name": "gifPlease",
"allowUsers": [],
"action": "comment",
"addLabel": "info-needed",
"comment": "Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, `.gif` files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.\n\nHappy coding!"
},
{
"type": "comment",
"name": "upstream",
"allowUsers": [],
"action": "close",
"reason": "not_planned",
"addLabel": "upstream",
"comment": "This issue is caused by an upstream dependency (VS Code editor core). The fix needs to happen in the [VS Code repository](https://github.com/microsoft/vscode). Please check if there's already an issue filed there, or create one if not.\n\nHappy Coding!"
}
]

View file

@ -0,0 +1,7 @@
---
title: NPM Publishing Failed
assignees: []
labels: bug
---
NPM publishing failed. Check the last GitHub Action log.

100
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,100 @@
name: CI
on: [push, pull_request]
jobs:
build:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Cache node modules
id: cacheNodeModules
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-cacheNodeModules2-${{ hashFiles('**/package-lock.json', '**/package.json') }}
restore-keys: ${{ runner.os }}-cacheNodeModules2-
- name: Install build tools
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: |
sudo apt update -y
sudo apt install -y build-essential pkg-config libx11-dev libx11-xcb-dev libxkbfile-dev libnotify-bin libkrb5-dev
- name: execute `npm ci` (1)
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
run: |
npm ci
- name: Download Playwright
run: npx playwright install --with-deps
- name: execute `npm ci` (2)
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
run: npm ci --prefix webpack-plugin
# CI steps temporarily disabled (enable by end of august 2025)
# # <building-from-source>
# - name: Setup, Build & Test monaco-editor-core
# run: yarn ts-node ./scripts/ci/build-monaco-editor-core-pkg nightly
# env:
# VSCODE_REF: 'main'
# PRERELEASE_VERSION: 'dev-${today}'
# - name: Link monaco-editor-core
# run: npm link
# working-directory: ./dependencies/vscode/out-monaco-editor-core
# - name: Link monaco-editor-core
# run: npm link monaco-editor-core
# # </building-from-source>
# TODO: prettier formatting
# - name: Check prettier
# run: npm run prettier-check
- name: Build
run: npm run build
- name: Run unit tests
run: npm test
- name: Compile webpack plugin
run: npm run compile --prefix webpack-plugin
- name: Package using webpack plugin
run: npm run package-for-smoketest
# - name: Package using parcel
# run: npm run package-for-smoketest-parcel --prefix test/smoke/parcel
# Disabled for now, as the parcel bundler cannot deal with VS Code process variable
- name: Run smoke test
run: npm run smoketest
- name: Install website node modules
working-directory: website
run: npm ci
- name: Install most recent version of monaco-editor
working-directory: website
run: npm install monaco-editor
- name: Build website
working-directory: website
run: npm run build
- name: Test website
working-directory: website
run: npm run test

72
.github/workflows/website.yml vendored Normal file
View file

@ -0,0 +1,72 @@
name: Publish Website
on:
schedule:
- cron: 0 23 * * *
workflow_dispatch: {}
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: 'pages'
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Cache node modules
id: cacheNodeModules
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-cacheNodeModules2-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-cacheNodeModules2-
- name: execute `npm ci` (1)
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
run: npm ci
# For TypeDoc
- name: Build
run: npm run build
- name: Install website node modules
working-directory: website
run: npm ci
- name: Install most recent version of monaco-editor
working-directory: website
run: npm install monaco-editor
- name: Build website
working-directory: website
run: npm run build
- name: Test website
working-directory: website
run: npm run test
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: './website/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

10
.gitignore vendored
View file

@ -1,2 +1,8 @@
/node_modules/
/release/
**/node_modules/
**/dependencies/
/test/manual/generated/**
/test/smoke/vite/dist/**
/test/smoke/parcel/dist/**
/test/smoke/parcel/.cache/**
**/dist/
**/out/

2
.husky/pre-commit Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

4
.mocharc.json Normal file
View file

@ -0,0 +1,4 @@
{
"delay": true,
"ui": "tdd"
}

1
.nvmrc Normal file
View file

@ -0,0 +1 @@
22.21.1

17
.prettierignore Normal file
View file

@ -0,0 +1,17 @@
**/node_modules/
**/dist/
**/out/
/samples/browser-esm-parcel/.parcel-cache/
/samples/browser-esm-parcel/dist/
/samples/browser-esm-vite-react/dist/**/*.js
/samples/browser-esm-webpack/dist/*.js
/samples/browser-esm-webpack-monaco-plugin/dist/*.js
/samples/browser-esm-webpack-small/dist/*.js
/samples/browser-esm-webpack-typescript/dist/*.js
/samples/browser-esm-webpack-typescript-react/dist/*.js
/src/language/typescript/lib/
/test/manual/generated/
/website/lib/
/website/typedoc/monaco.d.ts
/test/smoke/vite/dist
/test/smoke/parcel/dist

8
.prettierrc Normal file
View file

@ -0,0 +1,8 @@
{
"arrowParens": "always",
"singleQuote": true,
"trailingComma": "none",
"semi": true,
"useTabs": true,
"printWidth": 100
}

68
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,68 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Monaco Editor Playground (Languages from source, needs 'npm run watch', no JSON/CSS/... workers!)",
"type": "chrome",
"request": "launch",
"url": "https://microsoft.github.io/monaco-editor/playground.html?sourceLanguages=http%3A%2F%2Flocalhost%3A5002%2Fout%2Flanguages%2Famd-tsc",
"preLaunchTask": "Launch Http Server",
"presentation": {
"group": "monaco",
"order": 1
}
},
{
"name": "Monaco Editor Playground (Languages locally bundled, needs 'npm run build')",
"type": "chrome",
"request": "launch",
"url": "https://microsoft.github.io/monaco-editor/playground.html?sourceLanguages=http%3A%2F%2Flocalhost%3A5002%2Fout%2Flanguages%2Fbundled%2Famd-dev%2Fvs",
"preLaunchTask": "Launch Http Server",
"presentation": {
"group": "monaco",
"order": 1
}
},
{
"name": "Website",
"type": "chrome",
"request": "launch",
"url": "http://localhost:8080/"
},
{
// Clone VS Code and make sure the task "Launch Http Server" runs.
// Then the editor is build from sources.
// We recommend to use the workspace feature for this.
"name": "Monaco Editor Playground (Load From VS Code Http Server)",
"type": "chrome",
"request": "launch",
"url": "https://microsoft.github.io/monaco-editor/playground.html?sourceLanguages=http%3A%2F%2Flocalhost%3A5002%2Fout%2Flanguages%2Famd-tsc&source=http%3A%2F%2Flocalhost%3A5001%2Fout%2Fvs",
"preLaunchTask": "Launch Http Server",
"presentation": {
"group": "monaco",
"order": 1
}
},
{
"type": "node",
"request": "launch",
"name": "Monaco Languages Unit Tests",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"args": ["-r", "test/unit/all.js"],
"outFiles": ["${workspaceFolder}/**/*.js"]
},
{
"type": "node",
"request": "launch",
"name": "webpack plugin test",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/webpack-plugin/node_modules/.bin/webpack",
"args": ["--config", "test/webpack.config.js"],
"cwd": "${workspaceFolder}/webpack-plugin/"
}
]
}

15
.vscode/settings.json vendored
View file

@ -1,10 +1,17 @@
// Place your settings in this file to overwrite default and user settings.
{
"editor.tabSize": 4,
"editor.insertSpaces": false,
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/release": true
"**/dist": true,
"**/out": true
},
"typescript.tsdk": "./node_modules/typescript/lib"
}
"typescript.tsdk": "./node_modules/typescript/lib",
"git.branchProtection": ["main", "release/*"],
"git.branchProtectionPrompt": "alwaysCommitToNewBranch",
"git.branchRandomName.enable": true,
"editor.formatOnSave": true
}

30
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,30 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Launch Http Server",
"type": "shell",
"command": "node_modules/.bin/http-server --cors --port 5002 -a 127.0.0.1 -c-1",
"isBackground": true,
"problemMatcher": {
"pattern": {
"regexp": "does not support problems"
},
"background": {
"activeOnStart": true,
"beginsPattern": "Shutting down http-server (will never match)",
"endsPattern": "Starting up http-server"
}
},
"dependsOn": ["npm: watch"]
},
{
"type": "npm",
"script": "watch",
"group": "build",
"problemMatcher": ["$tsc-watch"],
"isBackground": true,
"label": "npm: watch"
}
]
}

File diff suppressed because it is too large Load diff

View file

@ -1,153 +1,125 @@
# Contributing & Maintaining
This guide contains the lightweight setup version (that **only requires you to have node.js installed**).
If you wish to be able to run vscode from source, please see [VSCode's How to Contribute](https://github.com/Microsoft/vscode/wiki/How-to-Contribute#build-and-run-from-source).
## A brief explanation on the source code structure
This repository contains no source code, it only contains the scripts to package everything together and ship the `monaco-editor` npm module:
These packages are described in the root file called `metadata.js` and it is possible to create an editor distribution that contains only certain plugins by editing that file.
| repository | npm module | explanation |
|------------|------------|-------------|
| [vscode](https://github.com/Microsoft/vscode) | [monaco-editor-core](https://www.npmjs.com/package/monaco-editor-core) | editor core functionality (language agnostic) is shipped out of vscode. |
| [monaco-languages](https://github.com/Microsoft/monaco-languages) | [monaco-languages](https://www.npmjs.com/package/monaco-languages) | plugin that adds colorization and basic supports for dozens of languages. |
| [monaco-typescript](https://github.com/Microsoft/monaco-typescript) | [monaco-typescript](https://www.npmjs.com/package/monaco-typescript) | plugin that adds rich language support for JavaScript and TypeScript. |
| [monaco-css](https://github.com/Microsoft/monaco-css) | [monaco-css](https://www.npmjs.com/package/monaco-css) | plugin that adds rich language support for CSS, LESS and SCSS. |
| [monaco-json](https://github.com/Microsoft/monaco-json) | [monaco-json](https://www.npmjs.com/package/monaco-json) | plugin that adds rich language support for JSON. |
| [monaco-html](https://github.com/Microsoft/monaco-html) | [monaco-html](https://www.npmjs.com/package/monaco-html) | plugin that adds rich language support for HTML. |
## Running the editor from source
You need to have all the build setup of being able to build VS Code to be able to build the Monaco Editor.
* Install all the prerequisites: https://github.com/Microsoft/vscode/wiki/How-to-Contribute#installing-prerequisites
### OS X and Linux
```
/src> git clone https://github.com/microsoft/vscode
/src> cd vscode
# install npm deps for vscode
/src/vscode> ./scripts/npm.sh install
# start the compiler in the background
/src/vscode> npm run watch
```
### Windows
```
/src> git clone https://github.com/microsoft/vscode
/src> cd vscode
# install npm deps for vscode
/src/vscode> scripts\npm.bat install
# start the compiler in the background
/src/vscode> npm run watch
```
* For the monaco editor test pages:
```bash
# clone monaco-editor (note the folders must be siblings!)
/src> git clone https://github.com/Microsoft/monaco-editor
# install npm deps for monaco-editor
/src/monaco-editor> npm install .
# start a local http server in the background
/src/monaco-editor> npm run simpleserver
```
Open [http://localhost:8080/monaco-editor/test/?editor=dev](http://localhost:8080/monaco-editor/test/?editor=dev) to run.
## Running a plugin from source (e.g. monaco-typescript)
```bash
# clone monaco-typescript
/src> git clone https://github.com/Microsoft/monaco-typescript
# install npm deps for monaco-typescript
/src/monaco-typescript> npm install .
# start the compiler in the background
/src/monaco-typescript> npm run watch
```
Open [http://localhost:8080/monaco-editor/test/?editor=dev&monaco-typescript=dev](http://localhost:8080/monaco-editor/test/?editor=dev&monaco-typescript=dev) to run.
## Running the editor tests
```bash
/src/vscode> npm run monaco-editor-test
# or run a test page http://localhost:8080/monaco-editor/test/?editor=dev
```
> Tip: All folders must be cloned as siblings.
> Tip: When running the test pages, use the control panel in the top right corner to switch between running from source, running from npm or running from the local release:
![image](https://cloud.githubusercontent.com/assets/5047891/19599080/eb0d7622-979e-11e6-96ce-dde98cd95dc1.png)
## Running the website
```bash
# create a local release
/src/monaco-editor> npm run release
# open http://localhost:8080/monaco-editor/website/
# build the website
/src/monaco-editor> npm run website
# open http://localhost:8080/monaco-editor-website/
# publish the website
/src/monaco-editor-website> git push origin gh-pages --force
```
---
## Shipping a new monaco-editor npm module
#### 1. Ship a new `monaco-editor-core` npm module
* bump version in `/src/vscode/build/monaco/package.json`
* **[important]** push all local changes to the remote to get a good public commit id.
* generate npm package `/src/vscode> node_modules/.bin/gulp editor-distro`
* publish npm package `/src/vscode/out-monaco-editor-core> npm publish`
#### 2. Adopt new `monaco-editor-core` in plugins
* if there are breaking API changes that affect the language plugins, adopt the new API in:
* [repo - monaco-typescript](https://github.com/Microsoft/monaco-typescript)
* [repo - monaco-languages](https://github.com/Microsoft/monaco-languages)
* [repo - monaco-css](https://github.com/Microsoft/monaco-css)
* [repo - monaco-json](https://github.com/Microsoft/monaco-json)
* [repo - monaco-html](https://github.com/Microsoft/monaco-html)
* publish new versions of those plugins to npm as necessary.
#### 3. Update package.json
* edit `/src/monaco-editor/package.json` and update the version (as necessary):
* [npm - monaco-editor-core](https://www.npmjs.com/package/monaco-editor-core)
* [npm - monaco-typescript](https://www.npmjs.com/package/monaco-typescript)
* [npm - monaco-languages](https://www.npmjs.com/package/monaco-languages)
* [npm - monaco-css](https://www.npmjs.com/package/monaco-css)
* [npm - monaco-json](https://www.npmjs.com/package/monaco-json)
* [npm - monaco-html](https://www.npmjs.com/package/monaco-html)
* **[important]** fetch latest deps by running `/src/monaco-editor> npm install .`
#### 4. Generate and try out the local release
* `/src/monaco-editor> npm run release`
* try as many test pages as you think are relevant. e.g.:
* open `http://localhost:8080/monaco-editor/test/?editor=releaseDev`
* open `http://localhost:8080/monaco-editor/test/?editor=releaseMin`
* open `http://localhost:8080/monaco-editor/test/smoketest.html?editor=releaseDev`
* open `http://localhost:8080/monaco-editor/test/smoketest.html?editor=releaseMin`
#### 5. Update release note.
* API Change/Breaking Change/New and noteworthy
* Thank you
#### 6. Publish
* `/src/monaco-editor> npm version minor`
* `/src/monaco-editor/release> npm publish`
* `/src/monaco-editor> git push --tags`
# Contributing / Dev Setup
## Source Code Structure
It is important to understand that the Monaco Editor _Core_ is built directly from the [VS Code source code](https://github.com/microsoft/vscode).
The Monaco Editor then enhances the Monaco Editor Core with some basic language features.
This diagram describes the relationships between the repositories and the npm packages:
![](./docs/code-structure.dio.svg)
By default, `monaco-editor-core` is installed from npm (through the initial `npm install`), so you can work on Monaco Editor language features without having to build the core editor / VS Code.
The nightly builds build a fresh version of `monaco-editor-core` from the `main` branch of VS Code.
For a stable release, the commit specified in `vscodeRef` in [package.json](./package.json) specifies the commit of VS Code that is used to build `monaco-editor-core`.
## Contributing a new tokenizer / a new language
Please understand that we only bundle languages with the monaco editor that have a significant relevance (for example, those that have an article in Wikipedia).
- create `$/src/basic-languages/{myLang}/{myLang}.contribution.ts`
- create `$/src/basic-languages/{myLang}/{myLang}.ts`
- create `$/src/basic-languages/{myLang}/{myLang}.test.ts`
- edit `$/src/basic-languages/monaco.contribution.ts` and register your new language
- create `$/website/index/samples/sample.{myLang}.txt`
```js
import './{myLang}/{myLang}.contribution';
```
## Debugging / Developing The Core Editor
To debug core editor issues.
This can be done directly from the VS Code repository and does not involve the monaco editor repository.
- Clone the [VS Code repository](https://github.com/microsoft/vscode): `git clone https://github.com/microsoft/vscode`
- Open the repository in VS Code: `code vscode`
- Run `yarn install`
- Select and run the launch configuration "Monaco Editor Playground" (this might take a while, as it compiles the sources):
![](./docs/launch%20config.png)
- Now you can set breakpoints and change the source code
![](./docs/debugging-core.gif)
- Optionally, you can build `monaco-editor-core` and link it to the monaco editor repository:
```bash
# builds out-monaco-editor-core
> yarn gulp editor-distro
> cd out-monaco-editor-core
> npm link
> cd ../path/to/monaco-editor
# symlinks the monaco-editor-core package to the out-monaco-editor-core folder we just built
> npm link monaco-editor-core
```
## Debugging / Developing Language Support
To debug bundled languages, such as JSON, HTML or TypeScript/JavaScript.
- Clone the [monaco editor repository](https://github.com/microsoft/monaco-editor): `git clone https://github.com/microsoft/monaco-editor`
- Open the repository in VS Code: `code monaco-editor`
- Run `npm install`
- Select and run the launch configuration "Monaco Editor Playground" (this might take a while, as it compiles the sources):
![](./docs/launch%20config.png)
- Now you can set breakpoints and change the source code
![](./docs/debugging-languages.gif)
- Optionally, you can build `monaco-editor` and link it if you want to test your changes in a real application:
```bash
# builds out/monaco-editor
> npm run build-monaco-editor
> cd out/monaco-editor
> npm link
> cd ../path/to/my-app
> npm link monaco-editor
```
## Running the editor tests
```bash
> npm run build-monaco-editor
> npm run test
> npm run compile --prefix webpack-plugin
> npm run package-for-smoketest-webpack
> npm run package-for-smoketest-esbuild
> npm run package-for-smoketest-vite
> npm run package-for-smoketest-parcel --prefix test/smoke/parcel
> npm run smoketest-debug
```
## Running the website locally
```bash
> npm install
> npm run build-monaco-editor
> cd website
> yarn install
> yarn typedoc
> yarn dev
```
Now webpack logs the path to the website.
## Out Folders
This diagram describes the output folders of the build process:
![](./docs/out-folders.dio.svg)
## Maintaining
Checkout [MAINTAINING.md](./MAINTAINING.md) for common maintaining tasks (for maintainers only).

View file

@ -1,5 +0,0 @@
<!-- Do you have a question? Please ask it on https://stackoverflow.com/questions/tagged/monaco-editor -->
monaco-editor version: 0.X.Y
Browser:
OS:
Steps or JS usage snippet reproducing the issue:

View file

@ -1,21 +1,21 @@
The MIT License (MIT)
Copyright (c) 2017 Microsoft Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The MIT License (MIT)
Copyright (c) 2016 - present Microsoft Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

55
MAINTAINING.md Normal file
View file

@ -0,0 +1,55 @@
# Maintaining
(For maintainers only)
Make sure every unassigned issue is labeled properly:
- [Inbox Queue](https://github.com/microsoft/monaco-editor/issues?q=is%3Aissue+is%3Aopen+no%3Aassignee+-label%3Afeature-request+-label%3Aupstream+-label%3A%22info-needed%22++-label%3Abug+)
## Publishing a stable build monaco-editor build
- Trigger an rc-build
- Go to https://github.com/microsoft/vscode/tree/release/1.89 (use latest VS Code version instead of .89!) and copy the id of the latest commit
- Go to https://dev.azure.com/monacotools/Monaco/_build?definitionId=421 and click on "Run pipeline"
- Use the copied commit id for `The VS Code commit id.`
- Use `rc` for `The prerelease version.`
- Wait until pipeline completes
- [Compare Last Stable With Nightly](https://microsoft.github.io/monaco-editor/playground.html?source=v0.40.0-dev.20230704#XQAAAAIGBwAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3yscxAWG5G70rT-mLieOxDi0igaBcv2nRy9q6wT9hrC3N47TPeSd0URO3iwn_firHxVGLm2_8QMEuG2aOJ-jnXkHfLAawVi9XJdfEkOLYHqAT78XFdClh7HNBHFpSfLkCNQ3vE811FAdf6WYL_UK2n1jfGRMcnWqaztoAOTcWNn5qQ9RusryNfDBRqtjOJktItFKSNuOcLg104A0xatH8uXcfAULeE9RZRf41YqC9wbcZDEp7Mnul26YzW_IBv-vL-EGPcEFiu34YZPHQguQiuU8L4VXh7uAtKRWehN9N2m2XFF3yHCBpSGiN8qmBi4HSBRjbhkEKka_icj87t3Lfmg15PMqKgTr7l73XusvkQCZDvqumlN-mcVTZiIdD51m-OFugmn0Cq_ZPU2zq45rRtk1he8PcWiZpPSbCknJsHs4D-mKcc-ypq6CLYlqO8Cvc5lRWzwD-pG6e6uPAQsRAOJ45-mySqhRo_MGJ7aLfkhe7fVn9OvOm6BRsDAYmNVZqpA5aKJzwjeUwQqHwV8CW-b4hrZooiPavu8m2XgbiSW_5nmzbjQ-SaPnBsJxcAewWB_NiYiU3H_Gfhi8K0qQZlBxaetqYX5Ns1Ww6S_By4izRxeEln7McyDQxKk-tnywSCklMhZPiMaR0AZsXs5DQSxGTlB5q61e7Wtxb0RLdk5einYvNwXDooi5Vi5go_ZsO7JYmzylxi-T_hdsPgKNoy6j9IVh5BZb_HgRoaGCrojOWJdYpNNrPJJG_1fyZ8Bk80eYNmHHPJ7Q-pdXqQuAZBdd9Grv4UfXoY1R3Sl529QkIjEHTzgzYGn4C5KE5IGhEfu49Ugy0fFHU-yJGY__aPECJ)
- Check the metadata and verify that the last stable is on the left and the the last rc build is on the right
- Update [package.json](./package.json)
- set `version` to _lastNightly.nextStableVersion_ (from the compare step)
- set `vscodeRef` to _lastNightly.vscodeCommitId_
- update `devDependencies.monaco-editor-core` to _lastNightly.currentVersion_
- Run `npm install` to update lockfile
- Update [CHANGELOG.md](./CHANGELOG.md)
- API Changes / Breaking Changes / New and noteworthy (use the diff from the compare step)
- Add thank you mentions ([use this tool](https://tools.code.visualstudio.com/acknowledgement) and select only the monaco-editor)
- Commit & Create PR
- [Trigger build](https://dev.azure.com/monacotools/Monaco/_build?definitionId=416) once merged. Tick the following checkboxes:
- Publish Monaco Editor Core
- Publish Monaco Editor
#### Publish new webpack plugin
- **TBD**
- https://github.com/microsoft/monaco-editor/tree/main/webpack-plugin
- `npm install .`
- `npm run import-editor`
- if there are no changes generated after the script:
- update the peer dependency in `package.json` and use the `||` format e.g. `"monaco-editor": "0.27.x || 0.28.x"`
- update the version matrix in the README.md and add the new editor version to the plugin's current major version
- use `npm version minor`
- publish using `npm publish`
- if there are any changes generated after the script:
- update the peer dependency in `package.json` e.g. `"monaco-editor": "0.29.x"`
- update the version matrix in the README.md and add a new row with the new major version
- use `npm version major`
- publish using `npm publish`
- remember to push tags upstream
## Updating TypeScript
- change typescript's version in `package.json`.
- execute `npm install .`
- execute `npm run import-typescript`
- adopt new APIs

289
README.md
View file

@ -1,166 +1,123 @@
# Monaco Editor
[Demo page](https://microsoft.github.io/monaco-editor/)
The Monaco Editor is the code editor that powers [VS Code](https://github.com/Microsoft/vscode), a good page describing the code editor's features is [here](https://code.visualstudio.com/docs/editor/editingevolved).
![image](https://cloud.githubusercontent.com/assets/5047891/19600675/5eaae9e6-97a6-11e6-97ad-93903167d8ba.png)
## Try it out
See the editor in action [here](https://microsoft.github.io/monaco-editor/index.html).
Learn how to extend the editor and try out your own customizations in the [playground](https://microsoft.github.io/monaco-editor/playground.html).
Browse the latest editor API at [`monaco.d.ts`](https://github.com/Microsoft/monaco-editor/blob/master/website/playground/monaco.d.ts.txt).
## Issues
Please mention the version of the editor when creating issues and the browser you're having trouble in. Create issues in this repository.
## Known issues
In IE, the editor must be completely surrounded in the body element, otherwise the hit testing we do for mouse operations does not work. You can inspect this using F12 and clicking on the body element and confirm that visually it surrounds the editor.
## Installing
```
npm install monaco-editor
```
You will get:
* inside `dev`: bundled, not minified
* inside `min`: bundled, and minified
* inside `min-maps`: source maps for `min`
* `monaco.d.ts`: this specifies the API of the editor (this is what is actually versioned, everything else is considered private and might break with any release).
It is recommended to develop against the `dev` version, and in production to use the `min` version.
## Integrate
Here is the most basic HTML page that embeds the editor. More samples are available at [monaco-editor-samples](https://github.com/Microsoft/monaco-editor-samples).
```html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
</head>
<body>
<div id="container" style="width:800px;height:600px;border:1px solid grey"></div>
<script src="monaco-editor/min/vs/loader.js"></script>
<script>
require.config({ paths: { 'vs': 'monaco-editor/min/vs' }});
require(['vs/editor/editor.main'], function() {
var editor = monaco.editor.create(document.getElementById('container'), {
value: [
'function x() {',
'\tconsole.log("Hello world!");',
'}'
].join('\n'),
language: 'javascript'
});
});
</script>
</body>
</html>
```
## Integrate cross domain
If you are hosting your `.js` on a different domain (e.g. on a CDN) than the HTML, you should know that the Monaco Editor creates web workers for smart language features. Cross-domain web workers are not allowed, but here is how you can proxy their loading and get them to work:
```html
<!--
Assuming the HTML lives on www.mydomain.com and that the editor is hosted on www.mycdn.com
-->
<script type="text/javascript" src="http://www.mycdn.com/monaco-editor/min/vs/loader.js"></script>
<script>
require.config({ paths: { 'vs': 'http://www.mycdn.com/monaco-editor/min/vs' }});
// Before loading vs/editor/editor.main, define a global MonacoEnvironment that overwrites
// the default worker url location (used when creating WebWorkers). The problem here is that
// HTML5 does not allow cross-domain web workers, so we need to proxy the instantiation of
// a web worker through a same-domain script
window.MonacoEnvironment = {
getWorkerUrl: function(workerId, label) {
return 'monaco-editor-worker-loader-proxy.js';
}
};
require(["vs/editor/editor.main"], function () {
// ...
});
</script>
<!--
Create http://www.mydomain.com/monaco-editor-worker-loader-proxy.js with the following content:
self.MonacoEnvironment = {
baseUrl: 'http://www.mycdn.com/monaco-editor/min/'
};
importScripts('www.mycdn.com/monaco-editor/min/vs/base/worker/workerMain.js');
That's it. You're good to go! :)
-->
```
# More documentation
> **Read [this guide](https://github.com/Microsoft/monaco-editor/wiki/Accessibility-Guide-for-Integrators) to ensure the editor is accessible to all your users!**
Find full HTML samples [here](https://github.com/Microsoft/monaco-editor-samples).
Create a Monarch tokenizer [here](https://microsoft.github.io/monaco-editor/monarch.html).
![image](https://cloud.githubusercontent.com/assets/5047891/16143041/840ced64-346a-11e6-98f3-3c68bf61884a.png)
## FAQ
❓ **What is the relationship between VS Code and the Monaco Editor?**
The Monaco Editor is generated straight from VS Code's sources with some shims around services the code needs to make it run in a web browser outside of its home.
❓ **What is the relationship between VS Code's version and the Monaco Editor's version?**
None. The Monaco Editor is a library and it reflects directly the source code.
❓ **I've written an extension for VS Code, will it work on the Monaco Editor in a browser?**
No.
❓ **Why all these web workers and why should I care?**
Language services create web workers to compute heavy stuff outside the UI thread. They cost hardly anything in terms of resource overhead and you shouldn't worry too much about them, as long as you get them to work (see above the cross-domain case).
❓ **What is this `loader.js`? Can I use `require.js`?**
It is an AMD loader that we use in VS Code. Yes.
❓ **I see the warning "Could not create web worker". What should I do?**
HTML5 does not allow pages loaded on `file://` to create web workers. Please load the editor with a web server on `http://` or `https://` schemes. Please also see the cross domain case above.
❓ **Is the editor supported in mobile browsers or mobile web app frameworks?**
No.
❓ **Why doesn't the editor support TextMate grammars?**
* all the regular expressions in TM grammars are based on [oniguruma](https://github.com/kkos/oniguruma), a regular expression library written in C.
* the only way to interpret the grammars and get anywhere near original fidelity is to use the exact same regular expression library (with its custom syntax constructs)
* in VSCode, our runtime is node.js and we can use a node native module that exposes the library to JavaScript
* in Monaco, we are constrained to a browser environment where we cannot do anything similar
* we have experimented with Emscripten to compile the C library to asm.js, but performance was very poor even in Firefox (10x slower) and extremely poor in Chrome (100x slower).
* we can revisit this once WebAssembly gets traction in the major browsers, but we will still need to consider the browser matrix we support. i.e. if we support IE11 and only Edge will add WebAssembly support, what will the experience be in IE11, etc.
## Development setup
Please see [CONTRIBUTING](./CONTRIBUTING.md)
## Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
## License
[MIT](https://github.com/Microsoft/monaco-editor/blob/master/LICENSE.md)
# Monaco Editor
[![Versions](https://img.shields.io/npm/v/monaco-editor)](https://www.npmjs.com/package/monaco-editor)
[![Versions](https://img.shields.io/npm/v/monaco-editor/next)](https://www.npmjs.com/package/monaco-editor)
[![Feature Requests](https://img.shields.io/github/issues/microsoft/monaco-editor/feature-request.svg)](https://github.com/microsoft/monaco-editor/issues?q=is%3Aopen+is%3Aissue+label%3Afeature-request+sort%3Areactions-%2B1-desc)
[![Bugs](https://img.shields.io/github/issues/microsoft/monaco-editor/bug.svg)](https://github.com/microsoft/monaco-editor/issues?utf8=✓&q=is%3Aissue+is%3Aopen+label%3Abug)
The Monaco Editor is the fully featured code editor from [VS Code](https://github.com/microsoft/vscode). Check out the [VS Code docs](https://code.visualstudio.com/docs/editor/editingevolved) to see some of the supported features.
![image](https://user-images.githubusercontent.com/5047891/94183711-290c0780-fea3-11ea-90e3-c88ff9d21bd6.png)
## Try it out
Try out the editor and see various examples [in our interactive playground](https://microsoft.github.io/monaco-editor/playground.html).
The playground is the best way to learn about how to use the editor, which features is supports, to try out different versions and to create minimal reproducible examples for bug reports.
## Installing
```
> npm install monaco-editor
```
You will get:
- inside `/esm`: ESM version of the editor (compatible with e.g. webpack)
- `monaco.d.ts`: this specifies the API of the editor (this is what is actually versioned, everything else is considered private and might break with any release).
:warning: The monaco editor also ships an `AMD` build for backwards-compatibility reasons, but the `AMD` support is deprecated and will be removed in future versions.
## Localization
To load the editor in a specific language, make sure that the corresponding nls script file is loaded before the main monaco editor script. For example, to load the editor in German, include the following script tag:
```html
<script src="path/to/monaco-editor/esm/nls.messages.de.js"></script>
```
Check the sources for available languages.
## Concepts
Monaco editor is best known for being the text editor that powers VS Code. However, it's a bit more nuanced. Some basic understanding about the underlying concepts is needed to use Monaco editor effectively.
### Models
Models are at the heart of Monaco editor. It's what you interact with when managing content. A model represents a file that has been opened. This could represent a file that exists on a file system, but it doesn't have to. For example, the model holds the text content, determines the language of the content, and tracks the edit history of the content.
### URIs
Each model is identified by a URI. This is why it's not possible for two models to have the same URI. Ideally when you represent content in Monaco editor, you should think of a virtual file system that matches the files your users are editing. For example, you could use `file:///` as a base path. If a model is created without a URI, its URI will be `inmemory://model/1`. The number increases as more models are created.
### Editors
An editor is a user facing view of the model. This is what gets attached to the DOM and what your users see visually. Typical editor operations are displaying a model, managing the view state, or executing actions or commands.
### Providers
Providers provide smart editor features. For example, this includes completion and hover information. It is not the same as, but often maps to [language server protocol](https://microsoft.github.io/language-server-protocol) features.
Providers work on models. Some smart features depends on the file URI. For example, for TypeScript to resolve imports, or for JSON IntelliSense to determine which JSON schema to apply to which model. So it's important to choose proper model URIs.
### Disposables
Many Monaco related objects often implement the `.dispose()` method. This method is intended to perform cleanups when a resource is no longer needed. For example, calling `model.dispose()` will unregister it, freeing up the URI for a new model. Editors should be disposed to free up resources and remove their model listeners.
## Documentation
- Learn how to integrate the editor with these [complete samples](./samples/).
- [Integrate the ESM version](./docs/integrate-esm.md)
- Learn how to use the editor API and try out your own customizations in the [playground](https://microsoft.github.io/monaco-editor/playground.html).
- Explore the [API docs](https://microsoft.github.io/monaco-editor/docs.html) or read them straight from [`monaco.d.ts`](https://github.com/microsoft/monaco-editor/blob/gh-pages/node_modules/monaco-editor/monaco.d.ts).
- Read [this guide](https://github.com/microsoft/monaco-editor/wiki/Accessibility-Guide-for-Integrators) to ensure the editor is accessible to all your users!
- Create a Monarch tokenizer for a new programming language [in the Monarch playground](https://microsoft.github.io/monaco-editor/monarch.html).
- Ask questions on [StackOverflow](https://stackoverflow.com/questions/tagged/monaco-editor)! Search open and closed issues, there are a lot of tips in there!
## Issues
Create [issues](https://github.com/microsoft/monaco-editor/issues) in this repository for anything related to the Monaco Editor. Please search for existing issues to avoid duplicates.
## FAQ
❓ **What is the relationship between VS Code and the Monaco Editor?**
The Monaco Editor is generated straight from VS Code's sources with some shims around services the code needs to make it run in a web browser outside of its home.
❓ **What is the relationship between VS Code's version and the Monaco Editor's version?**
None. The Monaco Editor is a library and it reflects directly the source code.
❓ **I've written an extension for VS Code, will it work on the Monaco Editor in a browser?**
No.
> Note: If the extension is fully based on the [LSP](https://microsoft.github.io/language-server-protocol/) and if the language server is authored in JavaScript, then it would be possible.
❓ **Why all these web workers and why should I care?**
Language services create web workers to compute heavy stuff outside of the UI thread. They cost hardly anything in terms of resource overhead and you shouldn't worry too much about them, as long as you get them to work (see above the cross-domain case).
❓ **I see the warning "Could not create web worker". What should I do?**
HTML5 does not allow pages loaded on `file://` to create web workers. Please load the editor with a web server on `http://` or `https://` schemes.
❓ **Is the editor supported in mobile browsers or mobile web app frameworks?**
No.
❓ **Why doesn't the editor support TextMate grammars?**
- Please see https://github.com/bolinfest/monaco-tm which puts together `monaco-editor`, `vscode-oniguruma` and `vscode-textmate` to get TM grammar support in the editor.
## Contributing / Local Development
We are welcoming contributions from the community!
Please see [CONTRIBUTING](./CONTRIBUTING.md) for details how you can contribute effectively, how you can run the editor from sources and how you can debug and fix issues.
## Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
## License
Licensed under the [MIT](https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt) License.

41
SECURITY.md Normal file
View file

@ -0,0 +1,41 @@
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.5 BLOCK -->
## Security
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](<https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)>), please report it to us as described below.
## Reporting Security Issues
**Please do not report security vulnerabilities through public GitHub issues.**
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc).
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
- Full paths of source file(s) related to the manifestation of the issue
- The location of the affected source code (tag/branch/commit or direct URL)
- Any special configuration required to reproduce the issue
- Step-by-step instructions to reproduce the issue
- Proof-of-concept or exploit code (if possible)
- Impact of the issue, including how an attacker might exploit the issue
This information will help us triage your report more quickly.
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs.
## Preferred Languages
We prefer all communications to be in English.
## Policy
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd).
<!-- END MICROSOFT SECURITY.MD BLOCK -->

392
ThirdPartyNotices.txt Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,8 @@
import { run } from '../../scripts/lib/index';
export async function buildAmdMinDev() {
const rootPath = __dirname;
await run('npx vite build --mode development', { cwd: rootPath });
await run('npx vite build', { cwd: rootPath });
await run('npx rollup -c rollup-types.config.mjs', { cwd: rootPath });
}

60
build/amd/plugin.js Normal file
View file

@ -0,0 +1,60 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/**
* @type {() => import('rollup').Plugin}
*/
export function urlToEsmPlugin() {
return {
name: 'import-meta-url',
async transform(code, id) {
if (this.environment?.mode === 'dev') {
return;
}
let idx = 0;
// Look for `new URL("...?worker", import.meta.url)` patterns.
const regex = /new\s+URL\s*\(\s*(['"`])(.*?)\?worker\1\s*,\s*import\.meta\.url\s*\)?/g;
let match;
let modified = false;
let result = code;
let offset = 0;
/** @type {string[]} */
const additionalImports = [];
while ((match = regex.exec(code)) !== null) {
let path = match[2];
if (!path.startsWith('.') && !path.startsWith('/')) {
path = `./${path}`;
}
const start = match.index;
const end = start + match[0].length;
const varName = `__worker_url_${idx++}__`;
additionalImports.push(`import ${varName} from ${JSON.stringify(path + '?worker&url')};`);
const replacement = varName;
result = result.slice(0, start + offset) + replacement + result.slice(end + offset);
offset += replacement.length - (end - start);
modified = true;
}
if (!modified) {
return null;
}
result = additionalImports.join('\n') + '\n' + result;
return {
code: result,
map: null
};
}
};
}

View file

@ -0,0 +1,44 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
// @ts-check
import nodeResolve from '@rollup/plugin-node-resolve';
import { join } from 'path';
import { defineConfig } from 'rollup';
import { dts } from 'rollup-plugin-dts';
import { dtsDeprecationWarning, mapModuleId } from '../shared.mjs';
export default defineConfig({
input: {
types: join(import.meta.dirname, './src/types.ts')
},
output: {
dir: join(import.meta.dirname, './out'),
format: 'es',
preserveModules: false,
entryFileNames: function (chunkInfo) {
const moduleId = chunkInfo.facadeModuleId;
if (moduleId) {
const m = mapModuleId(moduleId, '.d.ts');
if (m !== undefined) {
return m;
}
}
return '[name].d.ts';
}
},
external: [/.*\.css/],
plugins: [
nodeResolve(),
dts({
compilerOptions: {
stripInternal: true
},
includeExternal: ['monaco-editor-core', '@vscode/monaco-lsp-client']
}),
dtsDeprecationWarning(),
]
});

View file

@ -0,0 +1,94 @@
/// @ts-ignore
import * as require from 'require';
if (typeof (globalThis as any).require !== 'undefined' && typeof (globalThis as any).require.config === 'function') {
(globalThis as any).require.config({
ignoreDuplicateModules: [
'vscode-languageserver-types',
'vscode-languageserver-types/main',
'vscode-languageserver-textdocument',
'vscode-languageserver-textdocument/main',
'vscode-nls',
'vscode-nls/vscode-nls',
'jsonc-parser',
'jsonc-parser/main',
'vscode-uri',
'vscode-uri/index',
'vs/basic-languages/typescript/typescript'
]
});
}
self.MonacoEnvironment = {
getWorker: function (_moduleId, label) {
if (label === 'json') {
return new Worker(
getWorkerBootstrapUrl(
/// @ts-ignore
new URL('../../../src/language/json/json.worker.ts?worker', import.meta.url)
)
);
}
if (label === 'css' || label === 'scss' || label === 'less') {
return new Worker(
getWorkerBootstrapUrl(
/// @ts-ignore
new URL('../../../src/language/css/css.worker.ts?worker', import.meta.url)
)
);
}
if (label === 'html' || label === 'handlebars' || label === 'razor') {
return new Worker(
getWorkerBootstrapUrl(
/// @ts-ignore
new URL('../../../src/language/html/html.worker.ts?worker', import.meta.url)
)
);
}
if (label === 'typescript' || label === 'javascript') {
return new Worker(
getWorkerBootstrapUrl(
/// @ts-ignore
new URL('../../../src/language/typescript/ts.worker.ts?worker', import.meta.url)
)
);
}
return new Worker(
/// @ts-ignore
getWorkerBootstrapUrl(new URL('../../../src/editor/editor.worker.ts?worker', import.meta.url))
);
}
};
function getWorkerBootstrapUrl(workerScriptUrl: string | URL) {
if (typeof workerScriptUrl !== 'string') {
workerScriptUrl = workerScriptUrl.toString();
}
const blob = new Blob(
[
[
`const ttPolicy = globalThis.trustedTypes?.createPolicy('defaultWorkerFactory', { createScriptURL: value => value });`,
`globalThis.workerttPolicy = ttPolicy;`,
`importScripts(ttPolicy?.createScriptURL(${JSON.stringify(
workerScriptUrl
)}) ?? ${JSON.stringify(workerScriptUrl)});`,
`globalThis.postMessage({ type: 'vscode-worker-ready' });`
].join('')
],
{ type: 'application/javascript' }
);
return URL.createObjectURL(blob);
}
import 'vs/nls.messages-loader!';
import * as monaco from '../../../src/editor/editor.main';
export * from '../../../src/editor/editor.main';
globalThis.monaco = monaco;
const styleSheetUrl = require.toUrl('vs/editor/editor.main.css');
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = styleSheetUrl;
document.head.appendChild(link);

1368
build/amd/src/loader.js Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,10 @@
export function load(name, req, load, config) {
const requestedLanguage = config['vs/nls']?.availableLanguages?.['*'];
if (!requestedLanguage || requestedLanguage === 'en') {
load({});
} else {
req([`vs/nls.messages.${requestedLanguage}`], () => {
load({});
});
}
}

3
build/amd/src/types.ts Normal file
View file

@ -0,0 +1,3 @@
import * as m from './editor.main';
export { m };

82
build/amd/vite.config.mjs Normal file
View file

@ -0,0 +1,82 @@
import { readFileSync } from 'node:fs';
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vite';
import { urlToEsmPlugin } from './plugin';
import { getNlsEntryPoints } from '../shared.mjs';
const __dirname = dirname(fileURLToPath(import.meta.url));
export default defineConfig(async (args) => {
/** @type {import('vite').UserConfig} */
return {
base: './',
resolve: {
dedupe: ['monaco-editor-core']
},
build: {
lib: {
cssFileName: 'editor/editor.main',
entry: {
...getNlsEntryPoints(),
'nls.messages-loader': resolve(__dirname, 'src/nls.messages-loader.js'),
'editor/editor.main': resolve(__dirname, 'src/editor.main.ts'),
'basic-languages/monaco.contribution': resolve(
__dirname,
'../../src/basic-languages/monaco.contribution.ts'
),
'language/css/monaco.contribution': resolve(
__dirname,
'../../src/language/css/monaco.contribution.ts'
),
'language/html/monaco.contribution': resolve(
__dirname,
'../../src/language/html/monaco.contribution.ts'
),
'language/json/monaco.contribution': resolve(
__dirname,
'../../src/language/json/monaco.contribution.ts'
),
'language/typescript/monaco.contribution': resolve(
__dirname,
'../../src/language/typescript/monaco.contribution.ts'
)
},
name: 'monaco-editor',
fileName: (_format, entryName) => entryName + '.js',
formats: ['amd']
},
outDir: resolve(
__dirname,
'../../out/monaco-editor/',
args.mode === 'development' ? 'dev' : 'min',
'vs'
),
rollupOptions: {
external: ['require', 'vs/nls.messages-loader!'],
output: {
amd: {
basePath: 'vs',
autoId: true
}
}
},
minify: args.mode !== 'development',
emptyOutDir: true
},
plugins: [
{
name: 'copy-loader',
apply: 'build',
generateBundle() {
this.emitFile({
type: 'asset',
fileName: 'loader.js',
source: readFileSync(resolve(__dirname, './src/loader.js'), 'utf-8')
});
}
},
urlToEsmPlugin()
]
};
});

View file

@ -0,0 +1,81 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import path = require('path');
import fs = require('fs');
import { REPO_ROOT, readFiles, writeFiles } from '../build/utils';
import { generateEsmMetadataJsAndDTs } from './releaseMetadata';
import { buildESM } from './esm/build.script';
import { buildAmdMinDev } from './amd/build.script';
import { rm } from 'fs/promises';
async function run() {
await rm(path.join(REPO_ROOT, './out/monaco-editor'), { recursive: true, force: true });
await buildESM();
await buildAmdMinDev();
// copy types.d.ts from build/amd/out/ to out/monaco-editor/monaco.d.ts (and append `declare global { export import monaco = editor_main; }`)
(() => {
let contents = fs.readFileSync('build/amd/out/types.d.ts', { encoding: 'utf8' });
contents += '\n\ndeclare global { export import monaco = editor_main; }\n';
fs.writeFileSync('out/monaco-editor/monaco.d.ts', contents);
})();
createThirdPartyNoticesDotTxt();
generateEsmMetadataJsAndDTs();
// package.json
(() => {
const packageJSON = readFiles('package.json', { base: '' })[0];
const json = JSON.parse(packageJSON.contents.toString());
json.private = false;
delete json.scripts['postinstall'];
packageJSON.contents = Buffer.from(JSON.stringify(json, null, ' '));
writeFiles([packageJSON], `out/monaco-editor`);
})();
(() => {
/** @type {IFile[]} */
let otherFiles = [];
otherFiles = otherFiles.concat(readFiles('README.md', { base: '' }));
otherFiles = otherFiles.concat(readFiles('CHANGELOG.md', { base: '' }));
otherFiles = otherFiles.concat(
readFiles('node_modules/monaco-editor-core/LICENSE', {
base: 'node_modules/monaco-editor-core/'
})
);
writeFiles(otherFiles, `out/monaco-editor`);
})();
}
/**
* Edit ThirdPartyNotices.txt:
* - append ThirdPartyNotices.txt from plugins
*/
function createThirdPartyNoticesDotTxt() {
const tpn = readFiles('node_modules/monaco-editor-core/ThirdPartyNotices.txt', {
base: 'node_modules/monaco-editor-core'
})[0];
let contents = tpn.contents.toString();
console.log('ADDING ThirdPartyNotices from ./ThirdPartyNotices.txt');
let thirdPartyNoticeContent = fs
.readFileSync(path.join(REPO_ROOT, 'ThirdPartyNotices.txt'))
.toString();
thirdPartyNoticeContent = thirdPartyNoticeContent.split('\n').slice(8).join('\n');
contents += '\n' + thirdPartyNoticeContent;
tpn.contents = Buffer.from(contents);
writeFiles([tpn], `out/monaco-editor`);
}
run();

53
build/check-samples.ts Normal file
View file

@ -0,0 +1,53 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as fs from 'fs';
import * as glob from 'glob';
import * as path from 'path';
import { REPO_ROOT } from './utils';
checkEveryMonacoLanguageHasASample();
function checkEveryMonacoLanguageHasASample() {
let languages = glob
.sync('src/basic-languages/*/*.contribution.ts', { cwd: REPO_ROOT })
.map((f) => path.dirname(f))
.map((f) => f.substring('src/basic-languages/'.length));
languages.push('css');
languages.push('html');
languages.push('json');
languages.push('typescript');
// some languages have a different id than their folder
languages = languages.map((l) => {
switch (l) {
case 'coffee':
return 'coffeescript';
case 'protobuf':
return 'proto';
case 'solidity':
return 'sol';
case 'sophia':
return 'aes';
default:
return l;
}
});
let fail = false;
for (const language of languages) {
const expectedSamplePath = path.join(
REPO_ROOT,
`website/src/website/data/home-samples/sample.${language}.txt`
);
if (!fs.existsSync(expectedSamplePath)) {
console.error(`Missing sample for ${language} at ${expectedSamplePath}`);
fail = true;
}
}
if (fail) {
process.exit(1);
}
}

View file

@ -0,0 +1,7 @@
import { run } from '../../scripts/lib/index';
export async function buildESM() {
const rootPath = __dirname;
await run('npx rollup -c rollup.config.mjs', { cwd: rootPath });
await run('npx rollup -c rollup-types.config.mjs', { cwd: rootPath });
}

View file

@ -0,0 +1 @@
!dist

View file

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2024 Alexandr Yeskov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View file

@ -0,0 +1,2 @@
See https://www.npmjs.com/package/rollup-plugin-keep-css-imports.
Compare index.mjs with index.original.mjs to see the patch.

View file

@ -0,0 +1,25 @@
import MagicString from "magic-string";
import type { RenderedChunk } from "rollup";
import { OutputOptions, KeepCssImportsPluginContext } from "./types";
interface ChunkDetails {
chunk: RenderedChunk;
bundleOutDir: string;
moduleRoot: string;
}
export declare class ImportUpdater {
private _outputOptions;
private _pluginContext;
constructor(pluginContext: KeepCssImportsPluginContext, outputOptions: OutputOptions);
getMagicId(id: string): string;
updateImports(code: string, chunk: RenderedChunk, bundleOutDir: string, moduleRoot: string): {
code: string;
map: import("magic-string").SourceMap;
};
updateMatchedImport(m: RegExpMatchArray, magicString: MagicString, chunkDetails: ChunkDetails): void;
private addImportAndGetNewId;
private updateChunk;
private saveAndGetUpdatedImportPath;
private shouldAddPrefixCurrentDir;
private resolveOutputPath;
}
export {};

View file

@ -0,0 +1,31 @@
import type { AsyncCompiler, Options } from "sass";
type SassAsyncCompiler = Pick<AsyncCompiler, "compileAsync" | "compileStringAsync">;
export type PostCssCompatible = {
process: (css: string, opt: {
from: string;
to: string;
map: {
prev: string;
inline: boolean;
} | null;
}) => string | {
css: string;
map?: string;
};
};
export interface CompilationOptions {
outputExt: string;
sass?: SassAsyncCompiler;
postProcessor?: (css: string, map: string) => Promise<PostCssCompatible | string | {
css: string;
map?: string;
}>;
loadPaths?: string[];
sourceMap?: boolean;
sassOptions: Options<"async">;
}
export declare const compileSass: (sassPath: string, outWatchList: string[] | undefined, { outputExt, sass, postProcessor, loadPaths, sourceMap, sassOptions }: CompilationOptions) => Promise<{
css: string;
map: string;
}>;
export {};

View file

@ -0,0 +1,3 @@
export declare const PLUGIN_NAME = "keep-css-imports";
export declare const FILE_URL_PREFIX: string;
export declare const KEY_EXT_STRING = ".[keep-css-imports-plugin-ext]";

View file

@ -0,0 +1,52 @@
import { EmitFile } from "rollup";
import { StylesMap } from "./types";
export declare const escapeRegex: (val: any) => any;
export declare const assertDuplicates: (stylesToEmit: StylesMap) => void;
export declare const assertLocation: (outDir: any, assetPath: any) => void;
export declare const ensureSourceMap: ({ css, map }: {
css?: string | Uint8Array;
map?: string | Uint8Array;
}, includeSourceMap: boolean | "inline" | undefined, fileName: string, onEmit: EmitFile) => string | Uint8Array;
export declare const formatProcessedToCSS: (input: string | {
css: string;
map?: string | object;
}, sourceMap: boolean) => {
css: string;
map: string;
};
export declare const requireSass: () => Promise<{
default: typeof import("sass");
AsyncCompiler: typeof import("sass").AsyncCompiler;
Compiler: typeof import("sass").Compiler;
compile: typeof import("sass").compile;
compileAsync: typeof import("sass").compileAsync;
compileString: typeof import("sass").compileString;
compileStringAsync: typeof import("sass").compileStringAsync;
initCompiler: typeof import("sass").initCompiler;
initAsyncCompiler: typeof import("sass").initAsyncCompiler;
Exception: typeof import("sass").Exception;
Logger: typeof import("sass").Logger;
CalculationInterpolation: typeof import("sass").CalculationInterpolation;
CalculationOperation: typeof import("sass").CalculationOperation;
SassArgumentList: typeof import("sass").SassArgumentList;
SassBoolean: typeof import("sass").SassBoolean;
SassCalculation: typeof import("sass").SassCalculation;
SassColor: typeof import("sass").SassColor;
SassFunction: typeof import("sass").SassFunction;
SassList: typeof import("sass").SassList;
SassMap: typeof import("sass").SassMap;
SassMixin: typeof import("sass").SassMixin;
SassNumber: typeof import("sass").SassNumber;
SassString: typeof import("sass").SassString;
Value: typeof import("sass").Value;
sassFalse: import("sass").SassBoolean;
sassNull: import("sass").Value;
sassTrue: import("sass").SassBoolean;
FALSE: import("sass").types.Boolean<false>;
NULL: import("sass").types.Null;
TRUE: import("sass").types.Boolean<true>;
types: typeof import("sass").types;
render: typeof import("sass").render;
renderSync: typeof import("sass").renderSync;
info: string;
}>;

View file

@ -0,0 +1,4 @@
import type { Plugin } from "rollup";
import { KeepCssImportsOptions } from "./types";
declare function keepCssImports({ outputExt, outputPath, skipCurrentFolderPart, includeRegexp, sass, postProcessor, sassOptions, ...options }?: KeepCssImportsOptions): Plugin;
export default keepCssImports;

View file

@ -0,0 +1,487 @@
import { readFile } from 'fs/promises';
import * as path from 'path';
import MagicString from 'magic-string';
/******************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise, SuppressedError, Symbol */
var __assign = function () {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
}
function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
function __generator(thisArg, body) {
var _ = { label: 0, sent: function () { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
}
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
var e = new Error(message);
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
};
var escapeRegex = function (val) { return val.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&"); };
var assertDuplicates = function (stylesToEmit) {
Object.values(stylesToEmit).forEach(function (v, i, all) {
if (all.some(function (av, ai) { return !!v.output && v.output === av.output && ai != i; })) {
throw new Error("Two or more assets have conflicting output path ".concat(v.output));
}
});
};
var assertLocation = function (outDir, assetPath) {
if (!path.normalize(assetPath).startsWith(path.normalize(outDir))) {
throw new Error("Output path ".concat(assetPath, " must be in output directory ").concat(outDir));
}
};
var ensureSourceMap = function (_a, includeSourceMap, fileName, onEmit) {
var css = _a.css, map = _a.map;
if (map) {
if (includeSourceMap === "inline") {
css += "\n/*# sourceMappingURL=data:application/json;base64,".concat((map instanceof Uint8Array ? Buffer.from(map) : Buffer.from(map, "utf8")).toString("base64"), "*/");
}
else if (includeSourceMap === true) {
css += "\n/*# sourceMappingURL=".concat(path.basename(fileName), ".map */");
}
if (includeSourceMap === true) {
onEmit({
type: "asset",
fileName: fileName + ".map",
source: map,
});
}
}
return css;
};
var formatProcessedToCSS = function (input, sourceMap) {
return typeof input === "string"
? { css: input, map: "" }
: typeof input === "object"
? {
css: input.css,
map: !sourceMap ? "" : typeof input.map === "object" ? JSON.stringify(input.map) : input.map,
}
: input;
};
var requireSass = function () {
try {
return import('sass');
}
catch (e) {
throw new Error("You have to install `sass` package! Try running\n\t" +
"npm install --save-dev sass\nor\nyarn add sass --dev\n" +
"or use `sass` option to pass processor");
}
};
function ensureCompiler(sass) {
return __awaiter(this, void 0, void 0, function () {
var sassProcessor, _a;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
_a = sass;
if (_a) return [3 /*break*/, 2];
return [4 /*yield*/, requireSass()];
case 1:
_a = (_b.sent());
_b.label = 2;
case 2:
sassProcessor = _a;
if (!("compileAsync" in sassProcessor)) {
throw new Error("You have to install `sass` package! Or provide an object which implements `compileAsync` as `sass` option");
}
return [2 /*return*/, sassProcessor];
}
});
});
}
var isPostCssCompatible = function (result) {
return result && typeof result === "object" && "process" in result && typeof result.process === "function";
};
var compileSass = function (sassPath, outWatchList, _a) {
var outputExt = _a.outputExt, sass = _a.sass, postProcessor = _a.postProcessor, loadPaths = _a.loadPaths, sourceMap = _a.sourceMap, sassOptions = _a.sassOptions;
return __awaiter(void 0, void 0, void 0, function () {
var sassProcessor, watchListNeeded, compiled, css, mapObject, sources, map, result, _b, _c;
return __generator(this, function (_d) {
switch (_d.label) {
case 0:
if (!sassPath) {
return [2 /*return*/, { css: "", map: "" }];
}
return [4 /*yield*/, ensureCompiler(sass)];
case 1:
sassProcessor = _d.sent();
watchListNeeded = Array.isArray(outWatchList);
return [4 /*yield*/, sassProcessor.compileAsync(sassPath, __assign({ loadPaths: loadPaths, style: "expanded", sourceMap: !!sourceMap || watchListNeeded, sourceMapIncludeSources: !!sourceMap || watchListNeeded }, (sassOptions || [])))];
case 2:
compiled = _d.sent();
css = compiled.css.toString();
if (watchListNeeded && compiled.sourceMap && typeof compiled.sourceMap === "object") {
mapObject = "toJSON" in compiled.sourceMap && typeof compiled.sourceMap.toJSON === "function"
? compiled.sourceMap.toJSON()
: compiled.sourceMap;
sources = mapObject.sources || mapObject._sources;
outWatchList.push.apply(outWatchList, sources.filter(function (s) { return s && typeof s === "string"; }));
}
map = compiled.sourceMap
? typeof compiled.sourceMap === "object"
? JSON.stringify(compiled.sourceMap)
: compiled.sourceMap
: "";
if (!(typeof postProcessor === "function")) return [3 /*break*/, 7];
return [4 /*yield*/, postProcessor(css, map)];
case 3:
result = _d.sent();
if ((typeof result !== "string" && typeof result !== "object") || result === null) {
throw new Error("`postProcessor` must return string, object with `css` and `map` or PostCSS like object which implements `process` function");
}
_b = formatProcessedToCSS;
if (!isPostCssCompatible(result) // If PostCSS compatible result
) return [3 /*break*/, 5]; // If PostCSS compatible result
return [4 /*yield*/, Promise.resolve(result.process(css, {
from: sassPath,
to: path.parse(sassPath).name + outputExt,
map: map ? { prev: map, inline: false } : null,
}))];
case 4:
_c = _d.sent();
return [3 /*break*/, 6];
case 5:
_c = result;
_d.label = 6;
case 6: return [2 /*return*/, _b.apply(void 0, [_c, sourceMap])];
case 7: return [2 /*return*/, { css: css, map: sourceMap ? map : undefined }];
}
});
});
};
var PLUGIN_NAME = "keep-css-imports";
var FILE_URL_PREFIX = new URL("file://").toString();
var KEY_EXT_STRING = ".[keep-css-imports-plugin-ext]";
var createErrorMessage = function (message) { return "[".concat(PLUGIN_NAME, "] ").concat(message); };
var ImportUpdater = /** @class */ (function () {
function ImportUpdater(pluginContext, outputOptions) {
var _this = this;
this.addImportAndGetNewId = function (resolvedId) {
var moduleIndex = _this._pluginContext.allStyleImports.indexOf(resolvedId);
return !~moduleIndex ? _this._pluginContext.allStyleImports.push(resolvedId) - 1 : moduleIndex;
};
this._pluginContext = pluginContext;
this._outputOptions = outputOptions;
}
ImportUpdater.prototype.getMagicId = function (id) {
return "\0" + this.addImportAndGetNewId(id) + KEY_EXT_STRING;
};
ImportUpdater.prototype.updateImports = function (code, chunk, bundleOutDir, moduleRoot) {
var _this = this;
var magicString = new MagicString(code);
var matchRegex = new RegExp("\0([^\"']+)".concat(escapeRegex(KEY_EXT_STRING)), "g");
Array.from(code.matchAll(matchRegex))
.reverse()
.forEach(function (m) {
return _this.updateMatchedImport(m, magicString, {
chunk: chunk,
bundleOutDir: bundleOutDir,
moduleRoot: moduleRoot,
});
});
return {
code: magicString.toString(),
map: magicString.generateMap({ hires: true }),
};
};
ImportUpdater.prototype.updateMatchedImport = function (m, magicString, chunkDetails) {
var importId = m[0];
var assetId = this._pluginContext.allStyleImports[m[1]];
if (!assetId || typeof assetId !== "string" || !this._pluginContext.stylesToEmit[assetId]) {
return;
}
var updatedImport = this.saveAndGetUpdatedImportPath(assetId, chunkDetails);
var start = m.index;
var end = start + importId.length;
magicString.overwrite(start, end, updatedImport);
this.updateChunk(importId, updatedImport, chunkDetails.chunk);
};
ImportUpdater.prototype.updateChunk = function (importId, updatedImport, chunk) {
if (chunk.importedBindings[importId]) {
chunk.importedBindings[updatedImport] = chunk.importedBindings[importId];
if (updatedImport !== importId) {
delete chunk.importedBindings[importId];
}
}
var importIndex = chunk.imports.indexOf(importId);
if (~importIndex) {
chunk.imports[importIndex] = updatedImport;
}
};
ImportUpdater.prototype.saveAndGetUpdatedImportPath = function (assetId, _a) {
var bundleOutDir = _a.bundleOutDir, moduleRoot = _a.moduleRoot, chunk = _a.chunk;
var assetOutput = this.resolveOutputPath(bundleOutDir, assetId, moduleRoot);
var updatedImport = path
.relative(path.dirname(path.resolve(bundleOutDir, chunk.fileName)), assetOutput)
.replace(/\\/g, "/");
this._pluginContext.stylesToEmit[assetId].output = path.relative(path.resolve(bundleOutDir), assetOutput);
if (this.shouldAddPrefixCurrentDir(updatedImport) &&
!updatedImport.startsWith("./") &&
!updatedImport.startsWith("../") &&
!updatedImport.match(/^[a-zA-Z]:/)) {
updatedImport = "./" + updatedImport;
}
return updatedImport;
};
ImportUpdater.prototype.shouldAddPrefixCurrentDir = function (updatedImport) {
var skip = this._outputOptions.skipCurrentFolderPart;
return !skip || (skip instanceof RegExp && !skip.test(updatedImport));
};
ImportUpdater.prototype.resolveOutputPath = function (bundleOutDir, assetId, moduleRoot) {
var _a = this._outputOptions, outputPath = _a.outputPath, outputDir = _a.outputDir, outputExt = _a.outputExt;
var newPath = undefined;
if (typeof outputPath === "function") {
newPath = outputPath(assetId);
assertLocation(bundleOutDir, newPath);
}
else if (typeof outputPath === "string") {
newPath = path.resolve(bundleOutDir, outputDir, outputPath !== "keep" ? outputPath : path.relative(moduleRoot, assetId));
assertLocation(bundleOutDir, newPath);
}
else {
throw new Error(createErrorMessage("Invalid outputPath option value!"));
}
return newPath.replace(/\.s[ca]ss$/, outputExt);
};
return ImportUpdater;
}());
var ensureStylesInfo = function (stylesMap, importer, resolvedId) {
stylesMap[resolvedId] = stylesMap[resolvedId] || { importers: [], watchList: [] };
stylesMap[resolvedId].importers.push(importer);
return stylesMap[resolvedId];
};
var ensureCodeAndWatchList = function (filePath, stylesInfo, isWatch, compilerOptions) {
return __awaiter(void 0, void 0, void 0, function () {
var outWatchList, _a, _b, css, map;
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
outWatchList = [];
if (!filePath.endsWith(".css")) return [3 /*break*/, 2];
_a = stylesInfo;
return [4 /*yield*/, readFile(filePath, "utf8")];
case 1:
_a.css = _c.sent();
return [3 /*break*/, 4];
case 2: return [4 /*yield*/, compileSass(filePath, isWatch ? outWatchList : undefined, compilerOptions)];
case 3:
_b = _c.sent(), css = _b.css, map = _b.map;
stylesInfo.css = css;
stylesInfo.map = map;
_c.label = 4;
case 4:
outWatchList.push(filePath);
stylesInfo.watchList = outWatchList.map(function (watchFile) { return path.resolve(watchFile.replace(FILE_URL_PREFIX, "")); });
return [2 /*return*/];
}
});
});
};
function keepCssImports(_a) {
if (_a === void 0) { _a = {}; }
var _b = _a.outputExt, outputExt = _b === void 0 ? ".css" : _b, _c = _a.outputPath, outputPath = _c === void 0 ? "keep" : _c, _d = _a.skipCurrentFolderPart, skipCurrentFolderPart = _d === void 0 ? false : _d, _e = _a.includeRegexp, includeRegexp = _e === void 0 ? /\.(?:s[ca]|c)ss$/ : _e, sass = _a.sass, postProcessor = _a.postProcessor, sassOptions = _a.sassOptions, options = __rest(_a, ["outputExt", "outputPath", "skipCurrentFolderPart", "includeRegexp", "sass", "postProcessor", "sassOptions"]);
var stylesOutputOptions = {
outputPath: outputPath,
outputExt: outputExt,
outputDir: options.outputDir ? path.resolve(options.outputDir) : "./",
skipCurrentFolderPart: skipCurrentFolderPart,
};
var context = {
allStyleImports: [],
modulesWithCss: new Set(),
stylesToEmit: {},
};
var importUpdater = new ImportUpdater(context, stylesOutputOptions);
var loadPaths = options.includePaths || ["node_modules/"];
loadPaths.push(process.cwd());
loadPaths = loadPaths.filter(function (v, i, a) { return a.indexOf(v) === i; });
var compilerOptions = {
outputExt: outputExt,
sass: sass,
postProcessor: typeof postProcessor === "function"
? function (css, map) { return postProcessor(css, map, context.stylesToEmit); }
: undefined,
loadPaths: loadPaths,
sourceMap: !!options.sourceMap,
sassOptions: sassOptions,
};
return {
name: PLUGIN_NAME,
resolveId: function (source, importer, resolveOptions) {
return __awaiter(this, void 0, void 0, function () {
var _a, custom, _b, _c, _d, _e, _f, alreadyResolving, resolved, styleInfo;
var _g, _h;
var _this = this;
return __generator(this, function (_j) {
switch (_j.label) {
case 0:
if (!importer || !includeRegexp.test(source) || /\0/.test(source)) {
return [2 /*return*/, null];
}
_a = resolveOptions.custom, custom = _a === void 0 ? {} : _a;
_b = custom, _c = PLUGIN_NAME, _d = _b[_c], _e = _d === void 0 ? {} : _d, _f = _e.resolving, alreadyResolving = _f === void 0 ? false : _f;
if (alreadyResolving) {
return [2 /*return*/, null];
}
return [4 /*yield*/, this.resolve(source, importer, __assign(__assign({ skipSelf: true }, resolveOptions), { custom: __assign(__assign({}, custom), (_g = {}, _g[PLUGIN_NAME] = __assign(__assign({}, custom[PLUGIN_NAME]), { resolving: true }), _g)) }))];
case 1:
resolved = _j.sent();
if (!resolved || resolved.external) {
return [2 /*return*/, resolved];
}
context.modulesWithCss.add(importer);
styleInfo = ensureStylesInfo(context.stylesToEmit, importer, resolved.id);
return [4 /*yield*/, ensureCodeAndWatchList(resolved.id, styleInfo, this.meta.watchMode, compilerOptions)];
case 2:
_j.sent();
styleInfo.watchList.forEach(function (watchFile) {
_this.addWatchFile(watchFile);
});
return [2 /*return*/, {
id: importUpdater.getMagicId(resolved.id),
meta: (_h = {}, _h[PLUGIN_NAME] = { sourceId: resolved.id }, _h),
external: true,
}];
}
});
});
},
buildStart: function () {
var _this = this;
// Every rebuild will refresh watcher, so we need to reattach
if (this.meta.watchMode) {
var allWatched_1 = this.getWatchFiles();
Object.values(context.stylesToEmit).forEach(function (styleInfo) {
return styleInfo.watchList.forEach(function (watchFile) {
if (!allWatched_1.find(function (watched) { return path.normalize(watched) === path.normalize(watchFile); })) {
_this.addWatchFile(watchFile);
}
});
});
}
},
watchChange: function (id) {
return __awaiter(this, void 0, void 0, function () {
var resolvedId, filesToUpdate;
var _this = this;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
resolvedId = path.resolve(id);
filesToUpdate = Object.entries(context.stylesToEmit).filter(function (_a) {
var styleInfo = _a[1];
return styleInfo.watchList.includes(resolvedId);
});
return [4 /*yield*/, Promise.all(filesToUpdate.map(function (_a) {
var fileName = _a[0], styleInfo = _a[1];
return ensureCodeAndWatchList(fileName, styleInfo, _this.meta.watchMode, compilerOptions);
}))];
case 1:
_a.sent();
return [2 /*return*/];
}
});
});
},
renderChunk: function (code, chunk, outputOptions) {
var bundleOutDir = path.resolve(outputOptions.dir || path.dirname(outputOptions.file));
// Always do it, otherwise some modules are missed
var moduleRoot = outputOptions.preserveModulesRoot || process.cwd();
return importUpdater.updateImports(code, chunk, bundleOutDir, moduleRoot);
},
generateBundle: function (_, __, isWrite) {
if (!isWrite) {
return;
}
assertDuplicates(context.stylesToEmit);
for (var file in context.stylesToEmit) {
var stylesInfo = context.stylesToEmit[file];
var fileName = stylesInfo.output;
var source = file.endsWith(".css")
? stylesInfo.css
: ensureSourceMap(stylesInfo, options.sourceMap || (sassOptions === null || sassOptions === void 0 ? void 0 : sassOptions.sourceMap), fileName, this.emitFile);
this.emitFile({
type: "asset",
fileName: fileName,
source: source,
});
}
},
};
}
export { keepCssImports as default };

View file

@ -0,0 +1,489 @@
import { readFile } from 'fs/promises';
import * as path from 'path';
import MagicString from 'magic-string';
/******************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise, SuppressedError, Symbol */
var __assign = function () {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
}
function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
function __generator(thisArg, body) {
var _ = { label: 0, sent: function () { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
}
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
var e = new Error(message);
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
};
var escapeRegex = function (val) { return val.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&"); };
var assertDuplicates = function (stylesToEmit) {
Object.values(stylesToEmit).forEach(function (v, i, all) {
if (all.some(function (av, ai) { return !!v.output && v.output === av.output && ai != i; })) {
throw new Error("Two or more assets have conflicting output path ".concat(v.output));
}
});
};
var assertLocation = function (outDir, assetPath) {
if (!path.normalize(assetPath).startsWith(path.normalize(outDir))) {
throw new Error("Output path ".concat(assetPath, " must be in output directory ").concat(outDir));
}
};
var ensureSourceMap = function (_a, includeSourceMap, fileName, onEmit) {
var css = _a.css, map = _a.map;
if (map) {
if (includeSourceMap === "inline") {
css += "\n/*# sourceMappingURL=data:application/json;base64,".concat((map instanceof Uint8Array ? Buffer.from(map) : Buffer.from(map, "utf8")).toString("base64"), "*/");
}
else if (includeSourceMap === true) {
css += "\n/*# sourceMappingURL=".concat(path.basename(fileName), ".map */");
}
if (includeSourceMap === true) {
onEmit({
type: "asset",
fileName: fileName + ".map",
source: map,
});
}
}
return css;
};
var formatProcessedToCSS = function (input, sourceMap) {
return typeof input === "string"
? { css: input, map: "" }
: typeof input === "object"
? {
css: input.css,
map: !sourceMap ? "" : typeof input.map === "object" ? JSON.stringify(input.map) : input.map,
}
: input;
};
var requireSass = function () {
try {
return import('sass');
}
catch (e) {
throw new Error("You have to install `sass` package! Try running\n\t" +
"npm install --save-dev sass\nor\nyarn add sass --dev\n" +
"or use `sass` option to pass processor");
}
};
function ensureCompiler(sass) {
return __awaiter(this, void 0, void 0, function () {
var sassProcessor, _a;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
_a = sass;
if (_a) return [3 /*break*/, 2];
return [4 /*yield*/, requireSass()];
case 1:
_a = (_b.sent());
_b.label = 2;
case 2:
sassProcessor = _a;
if (!("compileAsync" in sassProcessor)) {
throw new Error("You have to install `sass` package! Or provide an object which implements `compileAsync` as `sass` option");
}
return [2 /*return*/, sassProcessor];
}
});
});
}
var isPostCssCompatible = function (result) {
return result && typeof result === "object" && "process" in result && typeof result.process === "function";
};
var compileSass = function (sassPath, outWatchList, _a) {
var outputExt = _a.outputExt, sass = _a.sass, postProcessor = _a.postProcessor, loadPaths = _a.loadPaths, sourceMap = _a.sourceMap, sassOptions = _a.sassOptions;
return __awaiter(void 0, void 0, void 0, function () {
var sassProcessor, watchListNeeded, compiled, css, mapObject, sources, map, result, _b, _c;
return __generator(this, function (_d) {
switch (_d.label) {
case 0:
if (!sassPath) {
return [2 /*return*/, { css: "", map: "" }];
}
return [4 /*yield*/, ensureCompiler(sass)];
case 1:
sassProcessor = _d.sent();
watchListNeeded = Array.isArray(outWatchList);
return [4 /*yield*/, sassProcessor.compileAsync(sassPath, __assign({ loadPaths: loadPaths, style: "expanded", sourceMap: !!sourceMap || watchListNeeded, sourceMapIncludeSources: !!sourceMap || watchListNeeded }, (sassOptions || [])))];
case 2:
compiled = _d.sent();
css = compiled.css.toString();
if (watchListNeeded && compiled.sourceMap && typeof compiled.sourceMap === "object") {
mapObject = "toJSON" in compiled.sourceMap && typeof compiled.sourceMap.toJSON === "function"
? compiled.sourceMap.toJSON()
: compiled.sourceMap;
sources = mapObject.sources || mapObject._sources;
outWatchList.push.apply(outWatchList, sources.filter(function (s) { return s && typeof s === "string"; }));
}
map = compiled.sourceMap
? typeof compiled.sourceMap === "object"
? JSON.stringify(compiled.sourceMap)
: compiled.sourceMap
: "";
if (!(typeof postProcessor === "function")) return [3 /*break*/, 7];
return [4 /*yield*/, postProcessor(css, map)];
case 3:
result = _d.sent();
if ((typeof result !== "string" && typeof result !== "object") || result === null) {
throw new Error("`postProcessor` must return string, object with `css` and `map` or PostCSS like object which implements `process` function");
}
_b = formatProcessedToCSS;
if (!isPostCssCompatible(result) // If PostCSS compatible result
) return [3 /*break*/, 5]; // If PostCSS compatible result
return [4 /*yield*/, Promise.resolve(result.process(css, {
from: sassPath,
to: path.parse(sassPath).name + outputExt,
map: map ? { prev: map, inline: false } : null,
}))];
case 4:
_c = _d.sent();
return [3 /*break*/, 6];
case 5:
_c = result;
_d.label = 6;
case 6: return [2 /*return*/, _b.apply(void 0, [_c, sourceMap])];
case 7: return [2 /*return*/, { css: css, map: sourceMap ? map : undefined }];
}
});
});
};
var PLUGIN_NAME = "keep-css-imports";
var FILE_URL_PREFIX = new URL("file://").toString();
var KEY_EXT_STRING = ".[keep-css-imports-plugin-ext]";
var createErrorMessage = function (message) { return "[".concat(PLUGIN_NAME, "] ").concat(message); };
var ImportUpdater = /** @class */ (function () {
function ImportUpdater(pluginContext, outputOptions) {
var _this = this;
this.addImportAndGetNewId = function (resolvedId) {
var moduleIndex = _this._pluginContext.allStyleImports.indexOf(resolvedId);
return !~moduleIndex ? _this._pluginContext.allStyleImports.push(resolvedId) - 1 : moduleIndex;
};
this._pluginContext = pluginContext;
this._outputOptions = outputOptions;
}
ImportUpdater.prototype.getMagicId = function (id) {
return "\0" + this.addImportAndGetNewId(id) + KEY_EXT_STRING;
};
ImportUpdater.prototype.updateImports = function (code, chunk, bundleOutDir, moduleRoot) {
var _this = this;
var magicString = new MagicString(code);
var matchRegex = new RegExp("\0([^\"']+)".concat(escapeRegex(KEY_EXT_STRING)), "g");
Array.from(code.matchAll(matchRegex))
.reverse()
.forEach(function (m) {
return _this.updateMatchedImport(m, magicString, {
chunk: chunk,
bundleOutDir: bundleOutDir,
moduleRoot: moduleRoot,
});
});
return {
code: magicString.toString(),
map: magicString.generateMap({ hires: true }),
};
};
ImportUpdater.prototype.updateMatchedImport = function (m, magicString, chunkDetails) {
var importId = m[0];
var assetId = this._pluginContext.allStyleImports[m[1]];
if (!assetId || typeof assetId !== "string" || !this._pluginContext.stylesToEmit[assetId]) {
return;
}
var updatedImport = this.saveAndGetUpdatedImportPath(assetId, chunkDetails);
var start = m.index;
var end = start + importId.length;
magicString.overwrite(start, end, updatedImport);
this.updateChunk(importId, updatedImport, chunkDetails.chunk);
};
ImportUpdater.prototype.updateChunk = function (importId, updatedImport, chunk) {
if (chunk.importedBindings[importId]) {
chunk.importedBindings[updatedImport] = chunk.importedBindings[importId];
if (updatedImport !== importId) {
delete chunk.importedBindings[importId];
}
}
var importIndex = chunk.imports.indexOf(importId);
if (~importIndex) {
chunk.imports[importIndex] = updatedImport;
}
};
ImportUpdater.prototype.saveAndGetUpdatedImportPath = function (assetId, _a) {
var bundleOutDir = _a.bundleOutDir, moduleRoot = _a.moduleRoot, chunk = _a.chunk;
var assetOutput = this.resolveOutputPath(bundleOutDir, assetId, moduleRoot);
var updatedImport = path
.relative(path.dirname(path.resolve(bundleOutDir, chunk.fileName)), assetOutput)
.replace(/\\/g, "/");
this._pluginContext.stylesToEmit[assetId].output = path.relative(path.resolve(bundleOutDir), assetOutput);
if (this.shouldAddPrefixCurrentDir(updatedImport) &&
!updatedImport.startsWith("./") &&
!updatedImport.startsWith("../") &&
!updatedImport.match(/^[a-zA-Z]:/)) {
updatedImport = "./" + updatedImport;
}
return updatedImport;
};
ImportUpdater.prototype.shouldAddPrefixCurrentDir = function (updatedImport) {
var skip = this._outputOptions.skipCurrentFolderPart;
return !skip || (skip instanceof RegExp && !skip.test(updatedImport));
};
ImportUpdater.prototype.resolveOutputPath = function (bundleOutDir, assetId, moduleRoot) {
var _a = this._outputOptions, outputPath = _a.outputPath, outputDir = _a.outputDir, outputExt = _a.outputExt;
var newPath = undefined;
if (typeof outputPath === "function") {
newPath = outputPath(assetId);
assertLocation(bundleOutDir, newPath);
}
else if (typeof outputPath === "string") {
newPath = path.resolve(bundleOutDir, outputDir, outputPath !== "keep" ? outputPath : path.relative(moduleRoot, assetId));
assertLocation(bundleOutDir, newPath);
}
else {
throw new Error(createErrorMessage("Invalid outputPath option value!"));
}
return newPath.replace(/\.s[ca]ss$/, outputExt);
};
return ImportUpdater;
}());
var ensureStylesInfo = function (stylesMap, importer, resolvedId) {
stylesMap[resolvedId] = stylesMap[resolvedId] || { importers: [], watchList: [] };
stylesMap[resolvedId].importers.push(importer);
return stylesMap[resolvedId];
};
var ensureCodeAndWatchList = function (filePath, stylesInfo, isWatch, compilerOptions) {
return __awaiter(void 0, void 0, void 0, function () {
var outWatchList, _a, _b, css, map;
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
outWatchList = [];
if (!filePath.endsWith(".css")) return [3 /*break*/, 2];
_a = stylesInfo;
return [4 /*yield*/, readFile(filePath, "utf8")];
case 1:
_a.css = _c.sent();
return [3 /*break*/, 4];
case 2: return [4 /*yield*/, compileSass(filePath, isWatch ? outWatchList : undefined, compilerOptions)];
case 3:
_b = _c.sent(), css = _b.css, map = _b.map;
stylesInfo.css = css;
stylesInfo.map = map;
_c.label = 4;
case 4:
outWatchList.push(filePath);
stylesInfo.watchList = outWatchList.map(function (watchFile) { return path.resolve(watchFile.replace(FILE_URL_PREFIX, "")); });
return [2 /*return*/];
}
});
});
};
function keepCssImports(_a) {
if (_a === void 0) { _a = {}; }
var _b = _a.outputExt, outputExt = _b === void 0 ? ".css" : _b, _c = _a.outputPath, outputPath = _c === void 0 ? "keep" : _c, _d = _a.skipCurrentFolderPart, skipCurrentFolderPart = _d === void 0 ? false : _d, _e = _a.includeRegexp, includeRegexp = _e === void 0 ? /\.(?:s[ca]|c)ss$/ : _e, sass = _a.sass, postProcessor = _a.postProcessor, sassOptions = _a.sassOptions, options = __rest(_a, ["outputExt", "outputPath", "skipCurrentFolderPart", "includeRegexp", "sass", "postProcessor", "sassOptions"]);
var stylesOutputOptions = {
outputPath: outputPath,
outputExt: outputExt,
outputDir: options.outputDir ? path.resolve(options.outputDir) : "./",
skipCurrentFolderPart: skipCurrentFolderPart,
};
var context = {
allStyleImports: [],
modulesWithCss: new Set(),
stylesToEmit: {},
};
var importUpdater = new ImportUpdater(context, stylesOutputOptions);
var loadPaths = options.includePaths || ["node_modules/"];
loadPaths.push(process.cwd());
loadPaths = loadPaths.filter(function (v, i, a) { return a.indexOf(v) === i; });
var compilerOptions = {
outputExt: outputExt,
sass: sass,
postProcessor: typeof postProcessor === "function"
? function (css, map) { return postProcessor(css, map, context.stylesToEmit); }
: undefined,
loadPaths: loadPaths,
sourceMap: !!options.sourceMap,
sassOptions: sassOptions,
};
return {
name: PLUGIN_NAME,
resolveId: function (source, importer, resolveOptions) {
return __awaiter(this, void 0, void 0, function () {
var _a, custom, _b, _c, _d, _e, _f, alreadyResolving, resolved, styleInfo;
var _g, _h;
var _this = this;
return __generator(this, function (_j) {
switch (_j.label) {
case 0:
if (!importer || !includeRegexp.test(source) || /\0/.test(source)) {
return [2 /*return*/, null];
}
_a = resolveOptions.custom, custom = _a === void 0 ? {} : _a;
_b = custom, _c = PLUGIN_NAME, _d = _b[_c], _e = _d === void 0 ? {} : _d, _f = _e.resolving, alreadyResolving = _f === void 0 ? false : _f;
if (alreadyResolving) {
return [2 /*return*/, null];
}
return [4 /*yield*/, this.resolve(source, importer, __assign(__assign({ skipSelf: true }, resolveOptions), { custom: __assign(__assign({}, custom), (_g = {}, _g[PLUGIN_NAME] = __assign(__assign({}, custom[PLUGIN_NAME]), { resolving: true }), _g)) }))];
case 1:
resolved = _j.sent();
if (!resolved || resolved.external) {
return [2 /*return*/, resolved];
}
context.modulesWithCss.add(importer);
styleInfo = ensureStylesInfo(context.stylesToEmit, importer, resolved.id);
return [4 /*yield*/, ensureCodeAndWatchList(resolved.id, styleInfo, this.meta.watchMode, compilerOptions)];
case 2:
_j.sent();
styleInfo.watchList.forEach(function (watchFile) {
_this.addWatchFile(watchFile);
});
return [2 /*return*/, {
id: importUpdater.getMagicId(resolved.id),
meta: (_h = {}, _h[PLUGIN_NAME] = { sourceId: resolved.id }, _h),
external: true,
}];
}
});
});
},
buildStart: function () {
var _this = this;
// Every rebuild will refresh watcher, so we need to reattach
if (this.meta.watchMode) {
var allWatched_1 = this.getWatchFiles();
Object.values(context.stylesToEmit).forEach(function (styleInfo) {
return styleInfo.watchList.forEach(function (watchFile) {
if (!allWatched_1.find(function (watched) { return path.normalize(watched) === path.normalize(watchFile); })) {
_this.addWatchFile(watchFile);
}
});
});
}
},
watchChange: function (id) {
return __awaiter(this, void 0, void 0, function () {
var resolvedId, filesToUpdate;
var _this = this;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
resolvedId = path.resolve(id);
filesToUpdate = Object.entries(context.stylesToEmit).filter(function (_a) {
var styleInfo = _a[1];
return styleInfo.watchList.includes(resolvedId);
});
return [4 /*yield*/, Promise.all(filesToUpdate.map(function (_a) {
var fileName = _a[0], styleInfo = _a[1];
return ensureCodeAndWatchList(fileName, styleInfo, _this.meta.watchMode, compilerOptions);
}))];
case 1:
_a.sent();
return [2 /*return*/];
}
});
});
},
renderChunk: function (code, chunk, outputOptions) {
var bundleOutDir = path.resolve(outputOptions.dir || path.dirname(outputOptions.file));
if (code && chunk.modules && Object.keys(chunk.modules).some(function (m) { return context.modulesWithCss.has(m); })) {
var moduleRoot = outputOptions.preserveModulesRoot || process.cwd();
return importUpdater.updateImports(code, chunk, bundleOutDir, moduleRoot);
}
return null;
},
generateBundle: function (_, __, isWrite) {
if (!isWrite) {
return;
}
assertDuplicates(context.stylesToEmit);
for (var file in context.stylesToEmit) {
var stylesInfo = context.stylesToEmit[file];
var fileName = stylesInfo.output;
var source = file.endsWith(".css")
? stylesInfo.css
: ensureSourceMap(stylesInfo, options.sourceMap || (sassOptions === null || sassOptions === void 0 ? void 0 : sassOptions.sourceMap), fileName, this.emitFile);
this.emitFile({
type: "asset",
fileName: fileName,
source: source,
});
}
},
};
}
export { keepCssImports as default };

View file

@ -0,0 +1,110 @@
import { type CompilationOptions, PostCssCompatible } from "./compileSass";
import type { Options as SassOptions } from "sass";
export type KeepCssImportsOptions = OutputOptions & InputOptions & Extensions;
export type StyleRefInfo = {
/**
* Collection of files with reference to the current file
*/
importers: string[];
/**
* List of files which are used to render the current file
*/
watchList: string[];
/**
* Emit path
*/
output?: string;
/**
* Processed CSS content to emit
*/
css?: string | Uint8Array;
/**
* Processed CSS content map to emit
*/
map?: string | Uint8Array;
};
export type StylesMap = Record<string, StyleRefInfo>;
interface Extensions {
/**
* Customised SASS (SCSS) processor. If not provided plugin will try to
* import locally installed `sass` if required
*/
sass?: CompilationOptions["sass"];
/**
* An optional object that allows to provide additional options for the
* SASS compiler.
*/
sassOptions?: SassOptions<"async">;
/**
* Specifies the list of include paths for SASS to search when resolving imports.
*
* Default: `["node_modules/"]`
*/
includePaths?: string[];
/**
* An optional function that allows you to perform additional processing on the
* generated CSS, such as applying PostCSS plugins.
*/
postProcessor?: (css: string, map: string, stylesMap: StylesMap) => Promise<PostCssCompatible | string | {
css: string;
map?: string;
}>;
}
type OutputPath = string | "keep" | ((assetId: string) => string);
export interface OutputOptions {
/**
* Specifies the file extension for the output CSS files.
*
* Default: `".css"`
*/
outputExt?: string;
/**
* Specifies the output directory for the generated CSS files.
* Relative to Rollup output folder.
*
* Default: `"./"`
*/
outputDir?: string;
/**
* Specifies the output path relative to `outputDir` for the generated CSS
* files.
* The default value, "keep", preserves the original file paths. It is also
* possible to provide a custom function to generate output paths based on
* the input file.
*
* Default: `"keep"`
*/
outputPath?: OutputPath;
/**
* Specifies whether to generate source maps for the compiled CSS.
* Use `"inline"` to inline source maps into CSS files.
*
* Default: `false`
*/
sourceMap?: boolean | "inline";
/**
* By default CSS paths will be prefixed with current folder mark `./`.
* To avoid this for CSS files use `true` or specify RegExp filter.
*
* If RegExp filter matches `./` won't be added to the path.
* This option may be helpful if you have some issues with external
* modules imports from `node_modules`
*
* Default: `false`
*/
skipCurrentFolderPart?: boolean | RegExp;
}
interface InputOptions {
/**
* Regular expression to test if an import should be processed by this plugin
*
* Default: `/\.(?:s[ca]|c)ss$/`
*/
includeRegexp?: RegExp;
}
export interface KeepCssImportsPluginContext {
allStyleImports: string[];
modulesWithCss: Set<string>;
stylesToEmit: StylesMap;
}
export {};

View file

@ -0,0 +1,74 @@
{
"name": "rollup-plugin-keep-css-imports",
"version": "1.0.0",
"description": "Rollup plugin that allows to maintain the original structure of style imports without altering them during the bundling process",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.cjs"
}
}
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"keywords": [
"rollup",
"rollup-plugin",
"css-modules",
"sass",
"scss",
"keep",
"preserve",
"imports"
],
"homepage": "https://github.com/SLTKA/rollup-plugin-keep-css-imports",
"author": "Alexandr Yeskov",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/SLTKA/rollup-plugin-keep-css-imports"
},
"bugs": {
"url": "https://github.com/SLTKA/rollup-plugin-keep-css-imports/issues"
},
"scripts": {
"prebuild": "rimraf -rf dist/",
"build": "rollup -c",
"test": "mocha",
"pretest": "yarn build"
},
"devDependencies": {
"@rollup/plugin-typescript": "^11.1.6",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.24",
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-mocha": "^10.2.0",
"eslint-plugin-prettier": "^5.1.3",
"mocha": "^10.2.0",
"prettier": "^3.2.4",
"rimraf": "^5.0.5",
"rollup": "^4.9.5",
"rollup-plugin-dts": "^6.1.0",
"sass": "^1.70.0",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"typescript-eslint": "^7.1.1"
},
"dependencies": {
"magic-string": "^0.30.5"
}
}

View file

@ -0,0 +1,47 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
// @ts-check
import nodeResolve from '@rollup/plugin-node-resolve';
import { join } from 'path';
import { defineConfig } from 'rollup';
import { dts } from "rollup-plugin-dts";
import { dtsDeprecationWarning, mapModuleId } from '../shared.mjs';
const root = join(import.meta.dirname, '../../');
export default defineConfig({
input: {
entry: join(root, './src/editor/editor.main.ts'),
editorApi: join(root, './src/editor/editor.api.ts'),
},
output: {
dir: join(root, './out/monaco-editor/esm'),
format: 'es',
preserveModules: false,
entryFileNames: function (chunkInfo) {
const moduleId = chunkInfo.facadeModuleId;
if (moduleId) {
const m = mapModuleId(moduleId, '.d.ts');
if (m !== undefined) {
return m;
}
}
return '[name].d.ts';
},
},
external: [/.*\.css/],
plugins: [
nodeResolve(),
dts({
compilerOptions: {
stripInternal: true,
},
includeExternal: ['monaco-editor-core', '@vscode/monaco-lsp-client']
}),
dtsDeprecationWarning(f => f.endsWith('editor.api.d.ts')),
],
});

View file

@ -0,0 +1,63 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/**
* @type {() => import('rollup').Plugin}
*/
export function urlToEsmPlugin() {
return {
name: 'import-meta-url',
async transform(code, id) {
if (this.environment?.mode === 'dev') {
return;
}
// Look for `new URL(..., import.meta.url)` patterns.
const regex = /new\s+URL\s*\(\s*(['"`])(.*?)\1\s*,\s*import\.meta\.url\s*\)?/g;
let match;
let modified = false;
let result = code;
let offset = 0;
while ((match = regex.exec(code)) !== null) {
let path = match[2];
if (!path.startsWith('.') && !path.startsWith('/')) {
path = `./${path}`;
}
const resolved = await this.resolve(path, id);
if (!resolved) {
continue;
}
// Add the file as an entry point
const refId = this.emitFile({
type: 'chunk',
id: resolved.id,
});
const start = match.index;
const end = start + match[0].length;
const replacement = `import.meta.ROLLUP_FILE_URL_OBJ_${refId}`;
result = result.slice(0, start + offset) + replacement + result.slice(end + offset);
offset += replacement.length - (end - start);
modified = true;
}
if (!modified) {
return null;
}
return {
code: result,
map: null
};
}
};
}

View file

@ -0,0 +1,86 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
// @ts-check
import { join, relative } from 'path';
import { defineConfig } from 'rollup';
import esbuild from 'rollup-plugin-esbuild';
//import { urlToEsmPlugin } from '../rollup-url-to-module-plugin/index.mjs';
import del from 'rollup-plugin-delete';
import keepCssImports from './rollup-plugin-keep-css-imports/dist/index.mjs';
import nodeResolve from '@rollup/plugin-node-resolve';
import { urlToEsmPlugin } from './rollup-url-to-module-plugin/index.mjs';
import { getNlsEntryPoints, mapModuleId } from '../shared.mjs';
import { readFileSync } from 'fs';
const root = join(import.meta.dirname, '../../');
const outDir = join(root, './out/monaco-editor/esm');
export default defineConfig({
input: {
entry: join(root, './src/editor/editor.main.ts'),
editorAll: join(root, './src/editor/editor.all.ts'),
edcoreMain: join(root, './src/editor/edcore.main.ts'),
editorApi: join(root, './src/editor/editor.api.ts'),
editorWorker: join(root, './src/editor/editor.worker.ts'),
...getNlsEntryPoints(),
},
output: {
dir: outDir,
format: 'es',
entryFileNames: function (chunkInfo) {
const moduleId = chunkInfo.facadeModuleId;
if (moduleId) {
const r = mapModuleId(moduleId, '.js');
if (r !== undefined) {
return r;
}
}
return '[name].js';
},
preserveModules: true,
},
plugins: [
del({ targets: outDir, force: true }),
{
name: 'copy-codicon-font',
generateBundle() {
this.emitFile({
type: 'asset',
fileName: 'vs/base/browser/ui/codicons/codicon/codicon.ttf',
source: readFileSync(join(root, 'node_modules/monaco-editor-core/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf'))
});
}
},
urlToEsmPlugin(),
esbuild(),
keepCssImports({
/**
* @param {string} assetId
*/
outputPath: (assetId) => {
const r = mapModuleId(assetId, '.css');
if (r !== undefined) {
return join(outDir, r);
}
const relativePath = join(outDir, relative(root, assetId));
return relativePath.replace(/(\.s[ca]ss)$/, ".min$1")
},
}),
nodeResolve({
dedupe: ['monaco-editor-core', '@vscode/monaco-lsp-client'],
browser: true,
}),
],
});

67
build/fs.ts Normal file
View file

@ -0,0 +1,67 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as fs from 'fs';
import * as path from 'path';
const REPO_ROOT = path.join(__dirname, '../');
const existingDirCache = new Set();
export function ensureDir(dirname: string) {
/** @type {string[]} */
const dirs = [];
while (dirname.length > REPO_ROOT.length) {
dirs.push(dirname);
dirname = path.dirname(dirname);
}
dirs.reverse();
dirs.forEach((dir) => {
if (!existingDirCache.has(dir)) {
try {
fs.mkdirSync(dir);
} catch (err) { }
existingDirCache.add(dir);
}
});
}
/**
* Remove a directory and all its contents.
*/
export function removeDir(_dirPath: string, keep?: (filename: string) => boolean) {
if (typeof keep === 'undefined') {
keep = () => false;
}
const dirPath = path.join(REPO_ROOT, _dirPath);
if (!fs.existsSync(dirPath)) {
return;
}
rmDir(dirPath, _dirPath);
console.log(`Deleted ${_dirPath}`);
function rmDir(dirPath: string, relativeDirPath: string): boolean {
let keepsFiles = false;
const entries = fs.readdirSync(dirPath);
for (const entry of entries) {
const filePath = path.join(dirPath, entry);
const relativeFilePath = path.join(relativeDirPath, entry);
if (keep!(relativeFilePath)) {
keepsFiles = true;
continue;
}
if (fs.statSync(filePath).isFile()) {
fs.unlinkSync(filePath);
} else {
keepsFiles = rmDir(filePath, relativeFilePath) || keepsFiles;
}
}
if (!keepsFiles) {
fs.rmdirSync(dirPath);
}
return keepsFiles;
}
}

192
build/importTypescript.ts Normal file
View file

@ -0,0 +1,192 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import path = require('path');
import fs = require('fs');
import child_process = require('child_process');
import { REPO_ROOT } from './utils';
const generatedNote = `//
// **NOTE**: Do not edit directly! This file is generated using \`npm run import-typescript\`
//
`;
const TYPESCRIPT_LIB_SOURCE = path.join(REPO_ROOT, 'node_modules/typescript/lib');
const TYPESCRIPT_LIB_DESTINATION = path.join(REPO_ROOT, 'src/language/typescript/lib');
(function () {
try {
fs.statSync(TYPESCRIPT_LIB_DESTINATION);
} catch (err) {
fs.mkdirSync(TYPESCRIPT_LIB_DESTINATION);
}
importLibs();
const npmLsOutput = JSON.parse(
child_process.execSync('npm ls typescript --depth=0 --json=true', { cwd: REPO_ROOT }).toString()
);
const typeScriptDependencyVersion = npmLsOutput.dependencies.typescript.version;
fs.writeFileSync(
path.join(TYPESCRIPT_LIB_DESTINATION, 'typescriptServicesMetadata.ts'),
`${generatedNote}
export const typescriptVersion = "${typeScriptDependencyVersion}";\n`
);
let tsServices = fs.readFileSync(path.join(TYPESCRIPT_LIB_SOURCE, 'typescript.js')).toString();
tsServices = tsServices
.replace(
'const path = matchedStar ? subst.replace("*", matchedStar) : subst;',
'const path = matchedStar ? subst.replace("*", matchedStar) : subst; // CodeQL [SM02383] This is a false positive, the code is from the TypeScript compiler'
)
.replace(
'return key.replace("*", matchedStar);',
'return key.replace("*", matchedStar); // CodeQL [SM02383] This is a false positive, the code is from the TypeScript compiler'
);
// The output from this build will only be accessible via ESM; rather than removing
// references to require/module, define them as dummy variables that bundlers will ignore.
// The TS code can figure out that it's not running under Node even with these defined.
tsServices =
`
/* MONACOCHANGE */
var require = undefined;
var module = { exports: {} };
/* END MONACOCHANGE */
` + tsServices;
const tsServices_esm =
generatedNote +
tsServices +
`
// MONACOCHANGE
export var createClassifier = ts.createClassifier;
export var createLanguageService = ts.createLanguageService;
export var displayPartsToString = ts.displayPartsToString;
export var EndOfLineState = ts.EndOfLineState;
export var flattenDiagnosticMessageText = ts.flattenDiagnosticMessageText;
export var IndentStyle = ts.IndentStyle;
export var ScriptKind = ts.ScriptKind;
export var ScriptTarget = ts.ScriptTarget;
export var TokenClass = ts.TokenClass;
export var typescript = ts;
// END MONACOCHANGE
`;
fs.writeFileSync(
path.join(TYPESCRIPT_LIB_DESTINATION, 'typescriptServices.js'),
stripSourceMaps(tsServices_esm)
);
let dtsServices = fs.readFileSync(path.join(TYPESCRIPT_LIB_SOURCE, 'typescript.d.ts')).toString();
fs.writeFileSync(
path.join(TYPESCRIPT_LIB_DESTINATION, 'typescriptServices.d.ts'),
generatedNote + dtsServices
);
})();
function importLibs() {
function readLibFile(name) {
const srcPath = path.join(TYPESCRIPT_LIB_SOURCE, name);
return fs.readFileSync(srcPath).toString();
}
let strLibResult = `/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
${generatedNote}
/** Contains all the lib files */
export const libFileMap: Record<string, string> = {}
`;
let strIndexResult = `/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
${generatedNote}
/** Contains all the lib files */
export const libFileSet: Record<string, boolean> = {}
`;
const dtsFiles = fs.readdirSync(TYPESCRIPT_LIB_SOURCE).filter((f) => f.includes('lib.'));
while (dtsFiles.length > 0) {
const name = dtsFiles.shift();
const output = readLibFile(name).replace(/\r\n/g, '\n');
strLibResult += `libFileMap['${name}'] = "${escapeText(output)}";\n`;
strIndexResult += `libFileSet['${name}'] = true;\n`;
}
fs.writeFileSync(path.join(TYPESCRIPT_LIB_DESTINATION, 'lib.ts'), strLibResult);
fs.writeFileSync(path.join(TYPESCRIPT_LIB_DESTINATION, 'lib.index.ts'), strIndexResult);
}
/**
* Escape text such that it can be used in a javascript string enclosed by double quotes (")
*/
function escapeText(text) {
// See http://www.javascriptkit.com/jsref/escapesequence.shtml
const _backspace = '\b'.charCodeAt(0);
const _formFeed = '\f'.charCodeAt(0);
const _newLine = '\n'.charCodeAt(0);
const _nullChar = 0;
const _carriageReturn = '\r'.charCodeAt(0);
const _tab = '\t'.charCodeAt(0);
const _verticalTab = '\v'.charCodeAt(0);
const _backslash = '\\'.charCodeAt(0);
const _doubleQuote = '"'.charCodeAt(0);
const len = text.length;
let startPos = 0;
let chrCode;
let replaceWith = null;
let resultPieces = [];
for (let i = 0; i < len; i++) {
chrCode = text.charCodeAt(i);
switch (chrCode) {
case _backspace:
replaceWith = '\\b';
break;
case _formFeed:
replaceWith = '\\f';
break;
case _newLine:
replaceWith = '\\n';
break;
case _nullChar:
replaceWith = '\\0';
break;
case _carriageReturn:
replaceWith = '\\r';
break;
case _tab:
replaceWith = '\\t';
break;
case _verticalTab:
replaceWith = '\\v';
break;
case _backslash:
replaceWith = '\\\\';
break;
case _doubleQuote:
replaceWith = '\\"';
break;
}
if (replaceWith !== null) {
resultPieces.push(text.substring(startPos, i));
resultPieces.push(replaceWith);
startPos = i + 1;
replaceWith = null;
}
}
resultPieces.push(text.substring(startPos, len));
return resultPieces.join('');
}
function stripSourceMaps(str) {
return str.replace(/\/\/# sourceMappingURL[^\n]+/gm, '');
}

44
build/npm/installAll.ts Normal file
View file

@ -0,0 +1,44 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import glob = require('glob');
import path = require('path');
import fs = require('fs');
import cp = require('child_process');
const npm = process.platform === 'win32' ? 'npm.cmd' : 'npm';
import { REPO_ROOT } from '../utils';
const files = glob.sync('**/package.json', {
cwd: REPO_ROOT,
ignore: ['**/node_modules/**', '**/dist/**', '**/out/**']
});
for (const file of files) {
const filePath = path.join(REPO_ROOT, file);
const contents = JSON.parse(fs.readFileSync(filePath).toString());
if (!contents.dependencies && !contents.devDependencies && !contents.optionalDependencies) {
// nothing to install
continue;
}
npmInstall(path.dirname(file));
}
function npmInstall(location) {
const stdio = 'inherit';
const args = ['install'];
console.log(`Installing dependencies in ${location}...`);
console.log(`$ npm ${args.join(' ')}`);
const result = cp.spawnSync(npm, args, {
env: process.env,
cwd: location,
stdio
});
if (result.error || result.status !== 0) {
process.exit(1);
}
}

20
build/npm/removeAll.ts Normal file
View file

@ -0,0 +1,20 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import glob from 'glob';
import path from 'path';
import fs from 'fs';
import { REPO_ROOT } from '../utils';
const files = glob.sync('**/package-lock.json', {
cwd: REPO_ROOT,
ignore: ['**/node_modules/**', '**/out/**']
});
for (const file of files) {
const filePath = path.join(REPO_ROOT, file);
console.log(`Deleting ${file}...`);
fs.unlinkSync(filePath);
}

23
build/postinstall.ts Normal file
View file

@ -0,0 +1,23 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import cp = require('child_process');
import path = require('path');
function huskyInstall() {
console.log(`Installing husky hooks...`);
console.log(`$ husky install`);
const result = cp.spawnSync(
process.execPath,
[path.join(__dirname, '../node_modules/husky/lib/bin.js'), 'install'],
{ stdio: 'inherit' }
);
if (result.error || result.status !== 0) {
process.exit(1);
}
}
huskyInstall();

280
build/releaseMetadata.ts Normal file
View file

@ -0,0 +1,280 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import glob = require('glob');
import path = require('path');
import fs = require('fs');
import { REPO_ROOT } from './utils';
import { ensureDir } from './fs';
const customFeatureLabels = {
'vs/editor/browser/controller/coreCommands': 'coreCommands',
'vs/editor/contrib/caretOperations/caretOperations': 'caretOperations',
'vs/editor/contrib/caretOperations/transpose': 'transpose',
'vs/editor/contrib/colorPicker/colorDetector': 'colorDetector',
'vs/editor/contrib/rename/onTypeRename': 'onTypeRename',
'vs/editor/contrib/gotoSymbol/link/goToDefinitionAtPosition': 'gotoSymbol',
'vs/editor/contrib/snippet/snippetController2': 'snippets',
'vs/editor/standalone/browser/quickAccess/standaloneGotoLineQuickAccess': 'gotoLine',
'vs/editor/standalone/browser/quickAccess/standaloneCommandsQuickAccess': 'quickCommand',
'vs/editor/standalone/browser/quickAccess/standaloneGotoSymbolQuickAccess': 'quickOutline',
'vs/editor/standalone/browser/quickAccess/standaloneHelpQuickAccess': 'quickHelp'
};
function getBasicLanguages(): Promise<{ label: string; entry: string }[]> {
return new Promise((resolve, reject) => {
glob(
'./out/monaco-editor/esm/vs/basic-languages/*/*.contribution.js',
{ cwd: path.dirname(__dirname) },
(err, files) => {
if (err) {
reject(err);
return;
}
resolve(
files.map((file) => {
const entry = file.substring('./out/monaco-editor/esm/'.length).replace(/\.js$/, '');
const label = path.basename(file).replace(/\.contribution\.js$/, '');
return {
label: label,
entry: entry
};
})
);
}
);
});
}
function readAdvancedLanguages(): Promise<string[]> {
return new Promise((resolve, reject) => {
glob(
'./out/monaco-editor/esm/vs/language/*/monaco.contribution.js',
{ cwd: path.dirname(__dirname) },
(err, files) => {
if (err) {
reject(err);
return;
}
resolve(
files
.map((file) => file.substring('./out/monaco-editor/esm/vs/language/'.length))
.map((file) => file.substring(0, file.length - '/monaco.contribution.js'.length))
);
}
);
});
}
function getAdvancedLanguages(): Promise<
{ label: string; entry: string; worker: { id: string; entry: string } }[]
> {
return readAdvancedLanguages().then((languages) => {
let result = [];
for (const lang of languages) {
let shortLang = lang === 'typescript' ? 'ts' : lang;
const entry = `vs/language/${lang}/monaco.contribution`;
checkFileExists(entry);
const workerId = `vs/language/${lang}/${shortLang}Worker`;
const workerEntry = `vs/language/${lang}/${shortLang}.worker`;
checkFileExists(workerEntry);
result.push({
label: lang,
entry: entry,
worker: {
id: workerId,
entry: workerEntry
}
});
}
return result;
});
function checkFileExists(moduleName) {
const filePath = path.join(REPO_ROOT, 'out/monaco-editor/esm', `${moduleName}.js`);
if (!fs.existsSync(filePath)) {
console.error(`Could not find ${filePath}.`);
process.exit(1);
}
}
}
export function generateEsmMetadataJsAndDTs() {
return Promise.all([getBasicLanguages(), getAdvancedLanguages()]).then(
([basicLanguages, advancedLanguages]) => {
basicLanguages.sort((a, b) => strcmp(a.entry, b.entry));
advancedLanguages.sort((a, b) => strcmp(a.entry, b.entry));
let i = 0,
len = basicLanguages.length;
let j = 0,
lenJ = advancedLanguages.length;
let languages = [];
while (i < len || j < lenJ) {
if (i < len && j < lenJ) {
if (basicLanguages[i].label === advancedLanguages[j].label) {
let entry = [];
entry.push(basicLanguages[i].entry);
entry.push(advancedLanguages[j].entry);
languages.push({
label: basicLanguages[i].label,
entry: entry,
worker: advancedLanguages[j].worker
});
i++;
j++;
} else if (basicLanguages[i].label < advancedLanguages[j].label) {
languages.push(basicLanguages[i]);
i++;
} else {
languages.push(advancedLanguages[j]);
j++;
}
} else if (i < len) {
languages.push(basicLanguages[i]);
i++;
} else {
languages.push(advancedLanguages[j]);
j++;
}
}
const features = getFeatures();
const dtsContents = `
/*!----------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Released under the MIT license
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
*----------------------------------------------------------------*/
export interface IWorkerDefinition {
id: string;
entry: string;
}
export interface IFeatureDefinition {
label: string;
entry: string | string[] | undefined;
worker?: IWorkerDefinition;
}
export const features: IFeatureDefinition[];
export const languages: IFeatureDefinition[];
export type EditorLanguage = ${languages.map((el) => `'${el.label}'`).join(' | ')};
export type EditorFeature = ${features.map((el) => `'${el.label}'`).join(' | ')};
export type NegatedEditorFeature = ${features.map((el) => `'!${el.label}'`).join(' | ')};
`;
const dtsDestination = path.join(REPO_ROOT, 'out/monaco-editor/esm/metadata.d.ts');
ensureDir(path.dirname(dtsDestination));
fs.writeFileSync(dtsDestination, dtsContents.replace(/\r\n/g, '\n'));
const jsContents = `
exports.features = ${JSON.stringify(features, null, ' ')};
exports.languages = ${JSON.stringify(languages, null, ' ')};
`;
const jsDestination = path.join(REPO_ROOT, 'out/monaco-editor/esm/metadata.js');
ensureDir(path.dirname(jsDestination));
fs.writeFileSync(jsDestination, jsContents.replace(/\r\n/g, '\n'));
for (const feature of [...features, ...languages]) {
const entries = [].concat(feature.entry);
for (const entry of entries) {
const dtsDestination = path.join(REPO_ROOT, 'out/monaco-editor/esm', entry) + '.d.ts';
ensureDir(path.dirname(dtsDestination));
fs.writeFileSync(dtsDestination, 'export {}\n');
}
}
}
);
}
function strcmp(a: string, b: string) {
if (a < b) {
return -1;
}
if (a > b) {
return 1;
}
return 0;
}
function getFeatures(): { label: string; entry: string | string[] }[] {
const skipImports = [
'vs/editor/browser/widget/codeEditorWidget',
'vs/editor/browser/widget/diffEditorWidget',
'vs/editor/browser/widget/diffNavigator',
'vs/editor/common/standaloneStrings',
'vs/editor/contrib/tokenization/tokenization',
'vs/editor/editor.all',
'vs/base/browser/ui/codicons/codiconStyles',
'vs/editor/contrib/gotoSymbol/documentSymbols'
];
let features: string[] = [];
const files =
fs
.readFileSync(path.join(REPO_ROOT, 'out/monaco-editor/esm/vs/editor/edcore.main.js'))
.toString() +
fs
.readFileSync(path.join(REPO_ROOT, 'out/monaco-editor/esm/vs/editor/editor.all.js'))
.toString();
files.split(/\r\n|\n/).forEach((line) => {
const m = line.match(/import '([^']+)'/);
if (m) {
const tmp = path.posix.join('vs/editor', m[1]).replace(/\.js$/, '');
if (skipImports.indexOf(tmp) === -1) {
features.push(tmp);
}
}
});
let result: { label: string; entry: any }[] = features.map((feature) => {
/** @type {string} */ let label;
if (customFeatureLabels[feature]) {
label = customFeatureLabels[feature];
} else {
const m1 = feature.match(/^vs\/editor\/contrib\/([^\/]+)/);
if (m1) {
// for editor/contrib features, use the first segment
label = m1[1];
} else {
// for everything else, use the last segment folder
label = path.basename(path.dirname(feature));
}
}
return {
label: label,
entry: feature
};
});
result.sort((a, b) => {
const labelCmp = strcmp(a.label, b.label);
if (labelCmp === 0) {
return strcmp(a.entry, b.entry);
}
return labelCmp;
});
for (let i = 0; i < result.length; i++) {
if (i + 1 < result.length && result[i].label === result[i + 1].label) {
if (typeof result[i].entry === 'string') {
result[i].entry = [result[i].entry];
}
result[i].entry.push(result[i + 1].entry);
result.splice(i + 1, 1);
}
}
return result;
}

96
build/shared.mjs Normal file
View file

@ -0,0 +1,96 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
// @ts-check
import { dirname, join } from 'path';
import { fileURLToPath } from 'url';
import { readdirSync } from 'fs';
/**
* @param {string} filePath
* @param {string} newExt
*/
export function changeExt(filePath, newExt) {
const idx = filePath.lastIndexOf('.');
if (idx === -1) {
return filePath + newExt;
} else {
return filePath.substring(0, idx) + newExt;
}
}
export function getNlsEntryPoints() {
const nlsDir = dirname(fileURLToPath(import.meta.resolve('monaco-editor-core/esm/nls.messages.en.js')));
const nlsFiles = readdirSync(nlsDir)
.filter(file => file.startsWith('nls.messages.') && file.endsWith('.js'))
.reduce((acc, file) => {
// @ts-ignore
acc[file] = join(nlsDir, file);
return acc;
}, {});
return nlsFiles;
}
const root = join(import.meta.dirname, '../');
const mappedPaths = {
[join(root, 'node_modules/monaco-editor-core/esm/')]: '.',
[join(root, 'node_modules/')]: 'external/',
[join(root, 'monaco-lsp-client/')]: 'external/monaco-lsp-client/',
[join(root, 'src/')]: 'vs/',
};
/**
* @param {string} moduleId
* @param {string} newExt (with leading .)
* @returns {string | undefined}
*/
export function mapModuleId(moduleId, newExt) {
for (const [key, val] of Object.entries(mappedPaths)) {
if (moduleId.startsWith(key)) {
const relativePath = moduleId.substring(key.length);
return changeExt(join(val, relativePath), newExt);
}
}
return undefined;
}
/**
* @param {(moduleId: string) => boolean} [filter]
* @return {import('rollup').Plugin}
*/
export function dtsDeprecationWarning(filter) {
return {
name: 'add-dts-deprecation-warning',
generateBundle(options, bundle) {
for (const fileName in bundle) {
if (filter && !filter(fileName)) {
continue;
}
const file = bundle[fileName];
if (file.type === 'chunk' && fileName.endsWith('.d.ts')) {
let content = file.code.toString();
content = content + `
declare namespace languages {
/** @deprecated Use the new top level "css" namespace instead. */
export const css: { deprecated: true };
/** @deprecated Use the new top level "html" namespace instead. */
export const html: { deprecated: true };
/** @deprecated Use the new top level "json" namespace instead. */
export const json: { deprecated: true };
/** @deprecated Use the new top level "typescript" namespace instead. */
export const typescript: { deprecated: true };
}
`;
file.code = content;
}
}
}
};
}

69
build/simpleserver.ts Normal file
View file

@ -0,0 +1,69 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import fs = require('fs');
import path = require('path');
import http = require('http');
import yaserver = require('yaserver');
import { REPO_ROOT } from './utils';
import { ensureDir } from './fs';
generateTestSamplesTask();
const SERVER_ROOT = path.normalize(path.join(REPO_ROOT, '../'));
createSimpleServer(SERVER_ROOT, 8080);
createSimpleServer(SERVER_ROOT, 8088);
function generateTestSamplesTask() {
const sampleNames = fs.readdirSync(path.join(REPO_ROOT, 'test/manual/samples'));
let samples = sampleNames.map((sampleName) => {
const samplePath = path.join(REPO_ROOT, 'test/manual/samples', sampleName);
const sampleContent = fs.readFileSync(samplePath).toString();
return {
name: sampleName,
content: sampleContent
};
});
// Add samples from website
{
let sampleNames = fs.readdirSync(path.join(REPO_ROOT, 'website/index/samples'));
sampleNames = sampleNames.filter((name) => /^sample/.test(name));
samples = samples.concat(
sampleNames.map((sampleName) => {
const samplePath = path.join(REPO_ROOT, 'website/index/samples', sampleName);
const sampleContent = fs.readFileSync(samplePath).toString();
return {
name: sampleName,
content: sampleContent
};
})
);
}
const prefix =
'//This is a generated file via `npm run simpleserver`\ndefine([], function() { return';
const suffix = '; });';
const destination = path.join(REPO_ROOT, 'test/manual/generated/all-samples.js');
ensureDir(path.dirname(destination));
fs.writeFileSync(destination, prefix + JSON.stringify(samples, null, '\t') + suffix);
}
function createSimpleServer(rootDir: string, port: number) {
yaserver
.createServer({
rootDir: rootDir
})
.then((staticServer) => {
const server = http.createServer((request, response) => {
return staticServer.handle(request, response);
});
server.listen(port, '127.0.0.1', () => {
console.log(`Running at http://127.0.0.1:${port}`);
});
});
}

8
build/tsconfig.json Normal file
View file

@ -0,0 +1,8 @@
{
"compilerOptions": {
"noEmit": true,
"module": "CommonJS",
"esModuleInterop": true
},
"include": ["./**/*"]
}

52
build/utils.ts Normal file
View file

@ -0,0 +1,52 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as fs from 'fs';
import * as path from 'path';
import * as glob from 'glob';
import { ensureDir } from './fs';
export const REPO_ROOT = path.join(__dirname, '../');
export interface IFile {
path: string;
contents: Buffer;
}
export function readFiles(
pattern: string,
options: { base: string; ignore?: string[]; dot?: boolean }
): IFile[] {
let files = glob.sync(pattern, { cwd: REPO_ROOT, ignore: options.ignore, dot: options.dot });
// remove dirs
files = files.filter((file) => {
const fullPath = path.join(REPO_ROOT, file);
const stats = fs.statSync(fullPath);
return stats.isFile();
});
const base = options.base;
return files.map((file) => readFile(file, base));
}
export function readFile(file: string, base: string = '') {
const baseLength = base === '' ? 0 : base.endsWith('/') ? base.length : base.length + 1;
const fullPath = path.join(REPO_ROOT, file);
const contents = fs.readFileSync(fullPath);
const relativePath = file.substring(baseLength);
return {
path: relativePath,
contents
};
}
export function writeFiles(files: IFile[], dest: string) {
for (const file of files) {
const fullPath = path.join(REPO_ROOT, dest, file.path);
ensureDir(path.dirname(fullPath));
fs.writeFileSync(fullPath, file.contents);
}
}

275
docs/code-structure.dio.svg Normal file
View file

@ -0,0 +1,275 @@
<svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="601px" height="391px" viewBox="-0.5 -0.5 601 391" content="&lt;mxfile&gt;&lt;diagram id=&quot;cU4r2CM7fKKh95v30pN0&quot; name=&quot;Page-1&quot;&gt;1Vpdk9osFP41XrqThBj1sqvd9qKd6XTfmbaXmKChjSED8au//j0kkA+IdtXo7t6sgcAJPOechwfYAZqt9584zuKvLCLJwHOi/QDNB57nOhMHfmTNoayZ+KpixWmkGtUVz/Qv0T1V7YZGRLQa5owlOc3alSFLUxLmrTrMOdu1my1Z0v5qhlfEqngOcWLX/qBRHqtZeOO6/jOhq1h/2Q2m5Zs11o3VTESMI7ZrVKGPAzTjjOXl03o/I4kET+NS9ns68rYaGCdp/pIOHlLjyA96ciSCuapiylL4eYzzdQIlFx7JnuY/4dl5GKnSr8abuXSxowsHXUhzfmh0ksVfzXd1t6Kk+5VDk+M5OjtVJdiGh7pVoCIC8xXRzcYVthCUhK0JfAfacJLgnG7b9rGKjlXVrgYQHhSG3Xgir7SxxclGWf3G2bYIVxhSTOrByrjjneh/wQtImBbsOKGrFJ5DmDnhULElPKcQkR/UizWNImnjkRNB/+JFYU+CmDGa5sWMRo+D0byCVRog+0FHuqjOdZA2AS8DxkZSWXIeIJnLXiq3FSAvRlqZ/iaHXdsdul7L6tD32ybYcinA26arqhG+yHs6dBre+0Tzz5sF1H0nGRM0Z3KUQQJoPC7Ae8FKPq1pyJlgS/j+01aEwHeWX3cxzclzhoso3QEttv171CdWsB+F3tXuUhAFU1Xe1RTlauaNG/QUONfHvTu2kEuzdTH+8I9kUxszluKQDUkkMR2GjJ+N2ZImyYwlkEQVUZlZkbPsNuBWK9a/wHWdPtCdXh+XLbzPhbob1w4H9AA1mvw7jpHfBbXbA9TazxcG8ivkPZq28XIdryM2gxslPhrdV0B4ZykIkkYfpN6TK2eChaBhWflEk7YHzhUZlexsiIyGgLtMZBRdYbz40Gig1u+jK6M/NphpZCg+sz0y2k8cw9/lCC5dQ5G9EjQUUILT1aZII2dJcL7htSASdmrRNEw2EU1X0Oi/QwYSnNMM5jKTgSxDqngKhSgffguW2kZwGsE7BtqLi85Yfctyq0yvE3ILTYO2MlLGr9VbuovWW1p/9aq39EcasfIEezHCbS+CKcHDV6DXkdPOl3HXyu90sOuoj9XIv5RdG9xaM203u0ZYxCTSBm7GmF4f7GgFanUmoOnM1FslQ6te10WrrcLmRAAlLSSJxYCZPIaAP4sNTaJ3RzVlrJ2gGteZGJsw1AvXGNJ6aBjoh2nsffkppinWGXu1uL+Yuy/bjC9lGyXLzhVz47PE3J14SgnaXo+PLlJ2gdbWmtrMszwzjwLnVPvrlZ29NZqTLVTMSQbIkzQ8vD/SO+LZivTGAGubnrx+SK9tdHIDzkPBxel8h2y+awK/ztYsMBMSnU7gkaFlpqjnBJ5YCaxONR7KrdM7S94ywE9tjnyt2Qxtce3uqG01GN9CsYxsxUKTjvMnMHTSi7cXLYH7iqIF3fkG640cQKE3cwBl7sCm0/MOoIz217OcbyWOdQVXXjc4+sy2PoF6bwx4+jZu6Dw4vtvrfdxNBYt9HCRimmUg+o+76A4Xa+aJadfFWtf5un8+vUGxvvwvIaz/hQJ9/B8=&lt;/diagram&gt;&lt;/mxfile&gt;">
<defs/>
<g>
<path d="M 90 60 L 90 143.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 90 148.88 L 86.5 141.88 L 90 143.63 L 93.5 141.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 74px; margin-left: 80px;">
<div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">
Provides the source for
</div>
</div>
</div>
</foreignObject>
<text x="80" y="77" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">
Provides the source for
</text>
</switch>
</g>
<rect x="0" y="0" width="180" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 178px; height: 1px; padding-top: 30px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
GitHub Repository
<br/>
microsoft/vscode
</div>
</div>
</div>
</foreignObject>
<text x="90" y="34" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
GitHub Repository...
</text>
</switch>
</g>
<rect x="0" y="150" width="180" height="100" fill="none" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 178px; height: 1px; padding-top: 157px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
npm package
<br/>
monaco-editor-core
</div>
</div>
</div>
</foreignObject>
<text x="90" y="169" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
npm package...
</text>
</switch>
</g>
<rect x="260" y="0" width="340" height="110" fill="none" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 338px; height: 1px; padding-top: 7px; margin-left: 261px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
GitHub Repository
<br/>
microsoft/monaco-editor
</div>
</div>
</div>
</foreignObject>
<text x="430" y="19" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
GitHub Repository...
</text>
</switch>
</g>
<rect x="270" y="330" width="160" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 360px; margin-left: 271px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
npm package
<br/>
monaco-editor
</div>
</div>
</div>
</foreignObject>
<text x="350" y="364" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
npm package...
</text>
</switch>
</g>
<path d="M 430 100 L 358 154 Q 350 160 342 166 L 318 184 Q 310 190 310 200 L 310 323.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 310 328.88 L 306.5 321.88 L 310 323.63 L 313.5 321.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 231px; margin-left: 290px;">
<div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">
Provides language feature sources
<br/>
including TypeScript, html, css, json
<br/>
and others
</div>
</div>
</div>
</foreignObject>
<text x="290" y="234" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">
Provides language feature sources...
</text>
</switch>
</g>
<rect x="380" y="50" width="100" height="50" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 75px; margin-left: 381px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
Folder
<br/>
/src
</div>
</div>
</div>
</foreignObject>
<text x="430" y="79" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
Folder...
</text>
</switch>
</g>
<path d="M 270 75 L 96.25 108.78" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" stroke-dasharray="3 3" pointer-events="stroke"/>
<path d="M 91.1 109.79 L 97.3 105.01 L 96.25 108.78 L 98.64 111.89 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 91px; margin-left: 190px;">
<div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">
Describe how to build
</div>
</div>
</div>
</foreignObject>
<text x="190" y="94" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">
Describe how to build
</text>
</switch>
</g>
<rect x="270" y="50" width="100" height="50" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 75px; margin-left: 271px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
Folder
<br/>
/scripts
</div>
</div>
</div>
</foreignObject>
<text x="320" y="79" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
Folder...
</text>
</switch>
</g>
<path d="M 515 100 L 515 120 Q 515 130 505 130 L 150 130 Q 140 130 138.27 136.91 L 136.54 143.82" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" stroke-dasharray="3 3" pointer-events="stroke"/>
<path d="M 135.27 148.92 L 133.57 141.28 L 136.54 143.82 L 140.36 142.97 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 120px; margin-left: 181px;">
<div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">
Dev Dependency
</div>
</div>
</div>
</foreignObject>
<text x="181" y="124" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">
Dev Dependency
</text>
</switch>
</g>
<path d="M 540 100 L 540 130 Q 540 140 531.68 145.55 L 398.32 234.45 Q 390 240 390 250 L 390 323.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 390 328.88 L 386.5 321.88 L 390 323.63 L 393.5 321.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 300px; margin-left: 391px;">
<div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">
package.json
</div>
</div>
</div>
</foreignObject>
<text x="391" y="303" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">
package.json
</text>
</switch>
</g>
<rect x="490" y="50" width="100" height="50" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 75px; margin-left: 491px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
File
<br/>
/package.json
</div>
</div>
</div>
</foreignObject>
<text x="540" y="79" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
File...
</text>
</switch>
</g>
<path d="M 90 240 L 90 290 Q 90 300 100 300 L 300 300 Q 310 300 310 310 L 310 323.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 310 328.88 L 306.5 321.88 L 310 323.63 L 313.5 321.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 290px; margin-left: 179px;">
<div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">
Provides the core editor sources
</div>
</div>
</div>
</foreignObject>
<text x="179" y="294" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">
Provides the core editor sources
</text>
</switch>
</g>
<rect x="10" y="200" width="160" height="40" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 158px; height: 1px; padding-top: 220px; margin-left: 11px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
shipped sources
</div>
</div>
</div>
</foreignObject>
<text x="90" y="224" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
shipped sources
</text>
</switch>
</g>
</g>
<switch>
<g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/>
<a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank">
<text text-anchor="middle" font-size="10px" x="50%" y="100%">
Text is not SVG - cannot display
</text>
</a>
</switch>
</svg>

After

Width:  |  Height:  |  Size: 23 KiB

BIN
docs/debugging-core.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 KiB

229
docs/integrate-esm.md Normal file
View file

@ -0,0 +1,229 @@
## Integrating the ESM version of the Monaco Editor
- [Webpack](#using-webpack)
- [Option 1: Using the Monaco Editor WebPack Plugin](#option-1-using-the-monaco-editor-webpack-plugin)
- [Option 2: Using plain webpack](#option-2-using-plain-webpack)
- [Parcel](#using-parcel)
- [Vite](#using-vite)
### Using webpack
Here is the most basic script that imports the editor using ESM with webpack.
More self-contained samples are available in the [samples folder](../samples/).
---
### Option 1: Using the Monaco Editor WebPack Plugin
This is the easiest method, and it allows for options to be passed into the plugin in order to select only a subset of editor features or editor languages. Read more about the [Monaco Editor WebPack Plugin](../webpack-plugin/), which is a community authored plugin.
- `index.js`
```js
import * as monaco from 'monaco-editor';
monaco.editor.create(document.getElementById('container'), {
value: ['function x() {', '\tconsole.log("Hello world!");', '}'].join('\n'),
language: 'javascript'
});
```
- `webpack.config.js`
```js
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
const path = require('path');
module.exports = {
entry: './index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'app.js'
},
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
},
{
test: /\.ttf$/,
use: ['file-loader']
}
]
},
plugins: [new MonacoWebpackPlugin()]
};
```
---
### Option 2: Using plain webpack
Full working samples are available at https://github.com/microsoft/monaco-editor/tree/main/samples/browser-esm-webpack or https://github.com/microsoft/monaco-editor/tree/main/samples/browser-esm-webpack-small
- `index.js`
```js
import * as monaco from 'monaco-editor';
// Since packaging is done by you, you need
// to instruct the editor how you named the
// bundles that contain the web workers.
self.MonacoEnvironment = {
getWorkerUrl: function (moduleId, label) {
if (label === 'json') {
return './json.worker.bundle.js';
}
if (label === 'css' || label === 'scss' || label === 'less') {
return './css.worker.bundle.js';
}
if (label === 'html' || label === 'handlebars' || label === 'razor') {
return './html.worker.bundle.js';
}
if (label === 'typescript' || label === 'javascript') {
return './ts.worker.bundle.js';
}
return './editor.worker.bundle.js';
}
};
monaco.editor.create(document.getElementById('container'), {
value: ['function x() {', '\tconsole.log("Hello world!");', '}'].join('\n'),
language: 'javascript'
});
```
- `webpack.config.js`:
```js
const path = require('path');
module.exports = {
entry: {
app: './index.js',
// Package each language's worker and give these filenames in `getWorkerUrl`
'editor.worker': 'monaco-editor/esm/vs/editor/editor.worker.js',
'json.worker': 'monaco-editor/esm/vs/language/json/json.worker',
'css.worker': 'monaco-editor/esm/vs/language/css/css.worker',
'html.worker': 'monaco-editor/esm/vs/language/html/html.worker',
'ts.worker': 'monaco-editor/esm/vs/language/typescript/ts.worker'
},
output: {
globalObject: 'self',
filename: '[name].bundle.js',
path: path.resolve(__dirname, 'dist')
},
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
},
{
test: /\.ttf$/,
use: ['file-loader']
}
]
}
};
```
---
### Using parcel
A full working sample is available at https://github.com/microsoft/monaco-editor/tree/main/samples/browser-esm-parcel
When using parcel, we need to use the `getWorkerUrl` function and build the workers seperately from our main source. To simplify things, we can write a tiny bash script to build the workers for us.
- `index.js`
```js
import * as monaco from 'monaco-editor';
self.MonacoEnvironment = {
getWorkerUrl: function (moduleId, label) {
if (label === 'json') {
return './json.worker.js';
}
if (label === 'css' || label === 'scss' || label === 'less') {
return './css.worker.js';
}
if (label === 'html' || label === 'handlebars' || label === 'razor') {
return './html.worker.js';
}
if (label === 'typescript' || label === 'javascript') {
return './ts.worker.js';
}
return './editor.worker.js';
}
};
monaco.editor.create(document.getElementById('container'), {
value: ['function x() {', '\tconsole.log("Hello world!");', '}'].join('\n'),
language: 'javascript'
});
```
- `build_workers.sh`
```sh
ROOT=$PWD/node_modules/monaco-editor/esm/vs
OPTS="--no-source-maps --log-level 1" # Parcel options - See: https://parceljs.org/cli.html
parcel build $ROOT/language/json/json.worker.js $OPTS
parcel build $ROOT/language/css/css.worker.js $OPTS
parcel build $ROOT/language/html/html.worker.js $OPTS
parcel build $ROOT/language/typescript/ts.worker.js $OPTS
parcel build $ROOT/editor/editor.worker.js $OPTS
```
Then, simply run `sh ./build_workers.sh && parcel index.html`. This builds the workers into the same directory as your main bundle (usually `./dist`). If you want to change the `--out-dir` of the workers, you must change the paths in `index.js` to reflect their new location.
_note - the `getWorkerUrl` paths are relative to the build directory of your src bundle_
---
### Using Vite
Adding monaco editor to [Vite](https://vitejs.dev/) is simple since it has built-in support for web workers. You only need to implement the `getWorker` function (NOT the `getWorkerUrl`) to use Vite's output ([Source](https://github.com/vitejs/vite/discussions/1791#discussioncomment-321046)):
```js
import * as monaco from 'monaco-editor';
self.MonacoEnvironment = {
getWorker: function (workerId, label) {
const getWorkerModule = (moduleUrl, label) => {
return new Worker(self.MonacoEnvironment.getWorkerUrl(moduleUrl), {
name: label,
type: 'module'
});
};
switch (label) {
case 'json':
return getWorkerModule('/monaco-editor/esm/vs/language/json/json.worker?worker', label);
case 'css':
case 'scss':
case 'less':
return getWorkerModule('/monaco-editor/esm/vs/language/css/css.worker?worker', label);
case 'html':
case 'handlebars':
case 'razor':
return getWorkerModule('/monaco-editor/esm/vs/language/html/html.worker?worker', label);
case 'typescript':
case 'javascript':
return getWorkerModule('/monaco-editor/esm/vs/language/typescript/ts.worker?worker', label);
default:
return getWorkerModule('/monaco-editor/esm/vs/editor/editor.worker?worker', label);
}
}
};
monaco.editor.create(document.getElementById('container'), {
value: "function hello() {\n\talert('Hello world!');\n}",
language: 'javascript'
});
```

BIN
docs/launch config.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

347
docs/out-folders.dio.svg Normal file
View file

@ -0,0 +1,347 @@
<svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="772px" height="562px" viewBox="-0.5 -0.5 772 562" content="&lt;mxfile&gt;&lt;diagram id=&quot;cU4r2CM7fKKh95v30pN0&quot; name=&quot;Page-1&quot;&gt;7Vvdc9o4EP9rmLnrDIzlL+AxIaV9aG4yk4e7PgosQFfb4mQRoH/9SZZkbEmEj5hAp3lprJW0lnb399NqTTvBKNt8oXC5eCQJSju+l2w6wUPH96Owz/8Vgq0UxEAJ5hQnUgR2gmf8Eymhp6QrnKCiMZARkjK8bAqnJM/RlDVkkFKybg6bkbT51iWcI0vwPIWpLf0bJ2whpQO/v5N/RXi+0G8G8VD2ZFAPVjspFjAh65oo+NwJRpQQJp+yzQilwnbaLnLeeE9vtTCKcnbMhFAt7AWmK7W5fJmVKqY/hBX8OOWK7ieUP83FU0ZyOCVdlGBGqNoE22rLrBeYoWc+WbTX3Pl8xoJlKW8B/viCKMPcjncpnudcxogYMMNpOiIpVxc85CTnU+/tfaitCQ1oUxOpfX1BJEOMbvmQjQ6qSE5RQQYiZfP1zmV+oMYsau7yh2ogVGEyr3TvLMkflDHLJpn8KwLN91I4QamcJpVoS/u1xSon1OyGEh5gqqlMUDMb2mD2T+35O3/2epFqPYgNe7qx1Y2cr1hM6no9zwNaIqcG/VALdrPLVmP6E6KY7xxRJdzrlYKs6FRtRYGAQTpHatRAisQmX/UcRSlk+KWJMpcX1NQngnO283jlOO1x05FyTWqW4ctqGS738qbysBtGgYUiVkwtcIj9f5PxUfcuVGCYcqsKU1soyXCSCB33FBX4J5yU+oQ/lmIn5d6i+0704PSQvwc3FTsqfQ0CcuGJx5Ef+oov3ugpDU09g8xmBTrRJzaXWU5AxWSFObf73ufnR6c7TsVc/0jQeU28RQfQdi6whkcCS5mdM0EVEKd58I5SuK0NUJG3H4pxE4q+FzXPoQPjA+AZ0SBXYMxuNX6iMyOkFhXfa123ESEAXIR7T40H0Df8O3zFv2f4Ln4F+3ePD7dBxVFbVOz1wjBqZjdRK7ysCUUp7V6CpvuWq/iMgtrH5YFcci8ijk8RB0a+ENsZItCZej1DjNtKEMdkxWXjFObzFc+2OYDGMEu6VfKgbTaobcNOHm8o6Q78wyb1XSYdnG7SQ0lZOGjlyL/iiT+0+TxoPZfeY13LnPZN0Rm/k1XOGZLz7hgVmeUASng3SpQRXIF7gSCsgutQEJ6Ba/sK7lmb/sWiTqcMjTQivFbY6dUcH3eCQTv9+wS9dHyu3stw3unbKcBVQjE4lg9bCUX/Vw/F8F1C8ayMNjIy2ujADccc33YGDOwaxCmVvO6UUGSFyw1lFkauFoaOXK3vABII20CSXVuoSMgoiI5vhXri6DD1gMGFqEenKccY7Gp5gmkhV55wMQuF18wT/FbYOXDkp/rTzqVrvZFR67VKintqvW+lef2eM2nbdQ381Et6cgk1/AxrSzr5xtcCNip+rQp4NjaGDmgEb77HOW/Kfb6ncUWrQkGNWStIgSsbDRjZXjh8L6PZ9HJuNfN2cr/AZpf2b7/nkYJBPlF4IPczxr9a3T6PRKpDtAqA4MbAEAXXA4Oz5ujORmS7RslXz0oczHuxrES/u2EpwwrFAi7F43RF0+095dcLAU+nOWoRtbOdaM1SvPyqnssofiIFZpiIWwSVW6puF9+M/qoGr6v1KZrVx9u1esKgmtsdCs8V8hclkqhacFkUhw2XxcDymOuOXyHkTR5z1UfkVS/BLw3Pxf+tSHkF5C6bl/7gt77ynnYnKHM++cMXXxXECVt/+LM0kjcjOevOYIbTrZzAFcJMeFmpHcFiChMMedeIJMjslvpGJC9IyjesDnJDBed/jDgMvb/Q2q2A45MUZZS1rW+3SxkfYo8ALDeyI8U56mrvlV1D1RVX+uS9Wpufa82d9t/3DlMRK7p5aUivVxa4ys9Z8m/XoC35RvEhpXxpcyEidRKhoKUGnnmQs8t9BoMrRhTehOqCUfIDGeUBR8VA2EiLEjSDq1RbTv0cDLSW6IIGdge+jd2onWPKxq7/m7Kt4xOo5cS9HvONA/Jd2dZVCPpg2yuyrSxy0pWgWkWRvwfrvQ1DoIkhV+ULXIr1IgeGPljv0DlleKwLov5RvBcGcQs+s39g88F7t8V7e1PCDxbch6kANO9tvs2C1e377SWK3a/6ZYln918jgs//Aw==&lt;/diagram&gt;&lt;/mxfile&gt;">
<defs/>
<g>
<rect x="535" y="130" width="235" height="290" fill="none" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 233px; height: 1px; padding-top: 137px; margin-left: 536px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
npm package
<br/>
monaco-editor
</div>
</div>
</div>
</foreignObject>
<text x="653" y="149" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
npm package...
</text>
</switch>
</g>
<path d="M 120 170 L 233.41 169.92" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 238.66 169.92 L 231.66 173.43 L 233.41 169.92 L 231.66 166.43 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 170px; margin-left: 180px;">
<div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">
tsc
</div>
</div>
</div>
</foreignObject>
<text x="180" y="174" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">
tsc
</text>
</switch>
</g>
<path d="M 120 185 L 170 185 Q 180 185 180 195 L 180 280 Q 180 290 190 290 L 233.63 290" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 238.88 290 L 231.88 293.5 L 233.63 290 L 231.88 286.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 240px; margin-left: 180px;">
<div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">
esbuild ESM
</div>
</div>
</div>
</foreignObject>
<text x="180" y="243" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">
esbuild ESM
</text>
</switch>
</g>
<path d="M 90 200 L 90 360 Q 90 370 100 370 L 233.63 370" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 238.88 370 L 231.88 373.5 L 233.63 370 L 231.88 366.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 360px; margin-left: 181px;">
<div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">
esbuild AMD
</div>
</div>
</div>
</foreignObject>
<text x="181" y="364" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">
esbuild AMD
</text>
</switch>
</g>
<rect x="0" y="140" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 170px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
/src
</div>
</div>
</div>
</foreignObject>
<text x="60" y="174" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
/src
</text>
</switch>
</g>
<rect x="240" y="140" width="220" height="80" fill="none" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 218px; height: 1px; padding-top: 147px; margin-left: 241px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
/out/languages/amd-tsc
</div>
</div>
</div>
</foreignObject>
<text x="350" y="159" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
/out/languages/amd-tsc
</text>
</switch>
</g>
<path d="M 460 290 L 563.63 290" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 568.88 290 L 561.88 293.5 L 563.63 290 L 561.88 286.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="240" y="260" width="220" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 218px; height: 1px; padding-top: 290px; margin-left: 241px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
/out/languages/bundled/esm
</div>
</div>
</div>
</foreignObject>
<text x="350" y="294" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
/out/languages/bundled/esm
</text>
</switch>
</g>
<path d="M 460 370 L 563.63 370" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 568.88 370 L 561.88 373.5 L 563.63 370 L 561.88 366.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="240" y="340" width="220" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 218px; height: 1px; padding-top: 370px; margin-left: 241px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
/out/languages/bundled/amd-{dev, min}
</div>
</div>
</div>
</foreignObject>
<text x="350" y="374" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
/out/languages/bundled/amd-{dev, min}
</text>
</switch>
</g>
<path d="M 130 485 L 480 485 Q 490 485 490 475 L 490 380 Q 490 370 500 370 L 563.63 370" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 568.88 370 L 561.88 373.5 L 563.63 370 L 561.88 366.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="0" y="420" width="170" height="140" fill="none" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 168px; height: 1px; padding-top: 427px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
npm package
<br/>
monaco-editor-core
</div>
</div>
</div>
</foreignObject>
<text x="85" y="439" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
npm package...
</text>
</switch>
</g>
<rect x="570" y="340" width="180" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 178px; height: 1px; padding-top: 370px; margin-left: 571px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
/out/monaco-editor/{dev, min}
</div>
</div>
</div>
</foreignObject>
<text x="660" y="374" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
/out/monaco-editor/{dev, min}
</text>
</switch>
</g>
<rect x="570" y="260" width="180" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 178px; height: 1px; padding-top: 290px; margin-left: 571px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
/out/monaco-editor/esm
</div>
</div>
</div>
</foreignObject>
<text x="660" y="294" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
/out/monaco-editor/esm
</text>
</switch>
</g>
<path d="M 450 195 L 480 195 Q 490 195 500 195 L 563.63 195" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 568.88 195 L 561.88 198.5 L 563.63 195 L 561.88 191.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="360" y="180" width="90" height="30" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 88px; height: 1px; padding-top: 195px; margin-left: 361px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
*.d.ts
</div>
</div>
</div>
</foreignObject>
<text x="405" y="199" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
*.d.ts
</text>
</switch>
</g>
<rect x="40" y="470" width="90" height="30" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 88px; height: 1px; padding-top: 485px; margin-left: 41px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
{/dev, /min}
</div>
</div>
</div>
</foreignObject>
<text x="85" y="489" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
{/dev, /min}
</text>
</switch>
</g>
<path d="M 130 525 L 500 525 Q 510 525 510 515 L 510 300 Q 510 290 520 290 L 563.63 290" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 568.88 290 L 561.88 293.5 L 563.63 290 L 561.88 286.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="40" y="510" width="90" height="30" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 88px; height: 1px; padding-top: 525px; margin-left: 41px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
esm
</div>
</div>
</div>
</foreignObject>
<text x="85" y="529" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
esm
</text>
</switch>
</g>
<rect x="570" y="180" width="180" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 178px; height: 1px; padding-top: 210px; margin-left: 571px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
/out/monaco-editor/monaco.d.ts
</div>
</div>
</div>
</foreignObject>
<text x="660" y="214" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
/out/monaco-editor/monaco.d.ts
</text>
</switch>
</g>
<path d="M 504 41 L 499 41 Q 494 41 494 51 L 494 91 Q 494 101 489 101 L 486.5 101 Q 484 101 489 101 L 491.5 101 Q 494 101 494 111 L 494 151 Q 494 161 499 161 L 504 161" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" transform="translate(494,0)scale(-1,1)translate(-494,0)rotate(90,494,101)" pointer-events="all"/>
<rect x="361" y="62" width="250" height="30" fill="none" stroke="none" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 77px; margin-left: 486px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: nowrap;">
<div style="background-color: rgb(255, 255, 255); font-family: &quot;Cascadia Code&quot;, Consolas, &quot;Courier New&quot;, monospace, Consolas, &quot;Courier New&quot;, monospace; font-size: 11px; line-height: 19px;">
<span style="font-size: 11px;">
ts-node ./build/build-monaco-editor
</span>
</div>
</div>
</div>
</div>
</foreignObject>
<text x="486" y="80" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">
ts-node ./build/build-monaco-editor
</text>
</switch>
</g>
<path d="M 190 41 L 185 41 Q 180 41 180 51 L 180 91 Q 180 101 175 101 L 172.5 101 Q 170 101 175 101 L 177.5 101 Q 180 101 180 111 L 180 151 Q 180 161 185 161 L 190 161" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" transform="translate(180,0)scale(-1,1)translate(-180,0)rotate(90,180,101)" pointer-events="all"/>
<rect x="130" y="60" width="110" height="30" fill="none" stroke="none" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 75px; margin-left: 185px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: nowrap;">
<div style="background-color: rgb(255, 255, 255); font-family: &quot;Cascadia Code&quot;, Consolas, &quot;Courier New&quot;, monospace, Consolas, &quot;Courier New&quot;, monospace; font-size: 11px; line-height: 19px;">
npm run build
</div>
</div>
</div>
</div>
</foreignObject>
<text x="185" y="78" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">
npm run build
</text>
</switch>
</g>
<path d="M 350 -177 L 345 -177 Q 340 -177 340 -167 L 340 31 Q 340 41 335 41 L 332.5 41 Q 330 41 335 41 L 337.5 41 Q 340 41 340 51 L 340 249 Q 340 259 345 259 L 350 259" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" transform="translate(340,0)scale(-1,1)translate(-340,0)rotate(90,340,41)" pointer-events="all"/>
<rect x="234" y="0" width="200" height="30" fill="none" stroke="none" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 15px; margin-left: 334px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: nowrap;">
<div style="background-color: rgb(255, 255, 255); font-family: &quot;Cascadia Code&quot;, Consolas, &quot;Courier New&quot;, monospace, Consolas, &quot;Courier New&quot;, monospace; font-size: 11px; line-height: 19px;">
npm run build-monaco-editor
</div>
</div>
</div>
</div>
</foreignObject>
<text x="334" y="18" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">
npm run build-monaco-editor
</text>
</switch>
</g>
</g>
<switch>
<g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/>
<a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank">
<text text-anchor="middle" font-size="10px" x="50%" y="100%">
Text is not SVG - cannot display
</text>
</a>
</switch>
</svg>

After

Width:  |  Height:  |  Size: 31 KiB

13
editor.code-workspace Normal file
View file

@ -0,0 +1,13 @@
{
"folders": [
{
"path": "../vscode"
},
{
"path": "../vscode-loc"
},
{
"path": "."
}
]
}

View file

@ -1,487 +1,9 @@
var gulp = require('gulp');
var metadata = require('./metadata');
var es = require('event-stream');
var path = require('path');
var fs = require('fs');
var rimraf = require('rimraf');
var cp = require('child_process');
var httpServer = require('http-server');
var typedoc = require("gulp-typedoc");
var CleanCSS = require('clean-css');
var uncss = require('uncss');
var WEBSITE_GENERATED_PATH = path.join(__dirname, 'website/playground/new-samples');
var MONACO_EDITOR_VERSION = (function() {
var packageJsonPath = path.join(__dirname, 'package.json');
var packageJson = JSON.parse(fs.readFileSync(packageJsonPath).toString());
var version = packageJson.version;
if (!/\d+\.\d+\.\d+/.test(version)) {
console.log('unrecognized package.json version: ' + version);
process.exit(0);
}
return version;
})();
gulp.task('clean-release', function(cb) { rimraf('release', { maxBusyTries: 1 }, cb); });
gulp.task('release', ['clean-release'], function() {
return es.merge(
// dev folder
releaseOne('dev'),
// min folder
releaseOne('min'),
// package.json
gulp.src('package.json')
.pipe(es.through(function(data) {
var json = JSON.parse(data.contents.toString());
json.private = false;
data.contents = new Buffer(JSON.stringify(json, null, ' '));
this.emit('data', data);
}))
.pipe(gulp.dest('release')),
gulp.src('CHANGELOG.md')
.pipe(gulp.dest('release')),
// min-maps folder
gulp.src('node_modules/monaco-editor-core/min-maps/**/*').pipe(gulp.dest('release/min-maps')),
// other files
gulp.src([
'node_modules/monaco-editor-core/LICENSE',
'node_modules/monaco-editor-core/monaco.d.ts',
'node_modules/monaco-editor-core/ThirdPartyNotices.txt',
'README.md'
])
.pipe(addPluginDTS())
.pipe(addPluginThirdPartyNotices())
.pipe(gulp.dest('release'))
)
});
function releaseOne(type) {
return es.merge(
gulp.src('node_modules/monaco-editor-core/' + type + '/**/*')
.pipe(addPluginContribs())
.pipe(gulp.dest('release/' + type)),
pluginStreams('release/' + type + '/')
)
}
function pluginStreams(destinationPath) {
return es.merge(
metadata.METADATA.PLUGINS.map(function(plugin) {
return pluginStream(plugin, destinationPath);
})
);
}
function pluginStream(plugin, destinationPath) {
var contribPath = path.join(plugin.paths.npm, plugin.contrib.substr(plugin.modulePrefix.length)) + '.js';
return (
gulp.src([
plugin.paths.npm + '/**/*',
'!' + contribPath,
'!' + plugin.paths.npm + '/**/monaco.d.ts'
])
.pipe(gulp.dest(destinationPath + plugin.modulePrefix))
);
}
/**
* Edit editor.main.js:
* - rename the AMD module 'vs/editor/editor.main' to 'vs/editor/edcore.main'
* - append contribs from plugins
* - append new AMD module 'vs/editor/editor.main' that stiches things together
*/
function addPluginContribs() {
return es.through(function(data) {
if (!/editor\.main\.js$/.test(data.path)) {
this.emit('data', data);
return;
}
var contents = data.contents.toString();
// Rename the AMD module 'vs/editor/editor.main' to 'vs/editor/edcore.main'
contents = contents.replace(/"vs\/editor\/editor\.main\"/, '"vs/editor/edcore.main"');
var extraContent = [];
var allPluginsModuleIds = [];
metadata.METADATA.PLUGINS.forEach(function(plugin) {
allPluginsModuleIds.push(plugin.contrib);
var contribPath = path.join(__dirname, plugin.paths.npm, plugin.contrib.substr(plugin.modulePrefix.length)) + '.js';
var contribContents = fs.readFileSync(contribPath).toString();
var contribDefineIndex = contribContents.indexOf('define("' + plugin.contrib);
if (contribDefineIndex === -1) {
console.error('(1) CANNOT DETERMINE AMD define location for contribution', plugin);
process.exit(-1);
}
var depsEndIndex = contribContents.indexOf(']', contribDefineIndex);
if (contribDefineIndex === -1) {
console.error('(2) CANNOT DETERMINE AMD define location for contribution', plugin);
process.exit(-1);
}
contribContents = contribContents.substring(0, depsEndIndex) + ',"vs/editor/edcore.main"' + contribContents.substring(depsEndIndex);
extraContent.push(contribContents);
});
extraContent.push(`define("vs/editor/editor.main", ["vs/editor/edcore.main","${allPluginsModuleIds.join('","')}"], function() {});`);
var insertIndex = contents.lastIndexOf('//# sourceMappingURL=');
if (insertIndex === -1) {
insertIndex = contents.length;
}
contents = contents.substring(0, insertIndex) + '\n' + extraContent.join('\n') + '\n' + contents.substring(insertIndex);
data.contents = new Buffer(contents);
this.emit('data', data);
});
}
/**
* Edit monaco.d.ts:
* - append monaco.d.ts from plugins
*/
function addPluginDTS() {
return es.through(function(data) {
if (!/monaco\.d\.ts$/.test(data.path)) {
this.emit('data', data);
return;
}
var contents = data.contents.toString();
var extraContent = [];
metadata.METADATA.PLUGINS.forEach(function(plugin) {
var dtsPath = path.join(plugin.paths.npm, 'monaco.d.ts');
try {
extraContent.push(fs.readFileSync(dtsPath).toString());
} catch (err) {
return;
}
});
contents = [
'/*!-----------------------------------------------------------',
' * Copyright (c) Microsoft Corporation. All rights reserved.',
' * Type definitions for monaco-editor v'+MONACO_EDITOR_VERSION,
' * Released under the MIT license',
'*-----------------------------------------------------------*/',
].join('\n') + '\n' + contents + '\n' + extraContent.join('\n');
// Ensure consistent indentation and line endings
contents = cleanFile(contents);
data.contents = new Buffer(contents);
fs.writeFileSync('website/playground/monaco.d.ts.txt', contents);
fs.writeFileSync('monaco.d.ts', contents);
this.emit('data', data);
});
}
/**
* Normalize line endings and ensure consistent 4 spaces indentation
*/
function cleanFile(contents) {
return contents.split(/\r\n|\r|\n/).map(function(line) {
var m = line.match(/^(\t+)/);
if (!m) {
return line;
}
var tabsCount = m[1].length;
var newIndent = '';
for (var i = 0; i < 4 * tabsCount; i++) {
newIndent += ' ';
}
return newIndent + line.substring(tabsCount);
}).join('\n');
}
/**
* Edit ThirdPartyNotices.txt:
* - append ThirdPartyNotices.txt from plugins
*/
function addPluginThirdPartyNotices() {
return es.through(function(data) {
if (!/ThirdPartyNotices\.txt$/.test(data.path)) {
this.emit('data', data);
return;
}
var contents = data.contents.toString();
var extraContent = [];
metadata.METADATA.PLUGINS.forEach(function(plugin) {
if (!plugin.thirdPartyNotices) {
return;
}
console.log('ADDING ThirdPartyNotices from ' + plugin.thirdPartyNotices);
var thirdPartyNoticeContent = fs.readFileSync(plugin.thirdPartyNotices).toString();
thirdPartyNoticeContent = thirdPartyNoticeContent.split('\n').slice(8).join('\n');
extraContent.push(thirdPartyNoticeContent);
});
contents += '\n' + extraContent.join('\n');
data.contents = new Buffer(contents);
this.emit('data', data);
});
}
// --- website
gulp.task('clean-website', function(cb) { rimraf('../monaco-editor-website', { maxBusyTries: 1 }, cb); });
gulp.task('website', ['clean-website'], function() {
function replaceWithRelativeResource(dataPath, contents, regex, callback) {
return contents.replace(regex, function(_, m0) {
var filePath = path.join(path.dirname(dataPath), m0);
return callback(m0, fs.readFileSync(filePath));
});
}
var waiting = 0;
var done = false;
return (
es.merge(
gulp.src([
'website/**/*',
'!website/typedoc-theme/**'
], { dot: true })
.pipe(es.through(function(data) {
if (!data.contents || !/\.(html)$/.test(data.path) || /new-samples/.test(data.path)) {
return this.emit('data', data);
}
var contents = data.contents.toString();
contents = contents.replace(/\.\.\/release\/dev/g, 'node_modules/monaco-editor/min');
contents = contents.replace(/{{version}}/g, MONACO_EDITOR_VERSION);
// contents = contents.replace('&copy; 2017 Microsoft', '&copy; 2017 Microsoft [' + builtTime + ']');
// Preload xhr contents
contents = replaceWithRelativeResource(data.path, contents, /<pre data-preload="([^"]+)".*/g, function(m0, fileContents) {
return (
'<pre data-preload="' + m0 + '" style="display:none">'
+ fileContents.toString('utf8')
.replace(/&/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
+ '</pre>'
);
});
// Inline fork.png
contents = replaceWithRelativeResource(data.path, contents, /src="(\.\/fork.png)"/g, function(m0, fileContents) {
return (
'src="data:image/png;base64,' + fileContents.toString('base64') + '"'
);
});
var allCSS = '';
var tmpcontents = replaceWithRelativeResource(data.path, contents, /<link data-inline="yes-please" href="([^"]+)".*/g, function(m0, fileContents) {
allCSS += fileContents.toString('utf8');
return '';
});
tmpcontents = tmpcontents.replace(/<script.*/g, '');
tmpcontents = tmpcontents.replace(/<link.*/g, '');
waiting++;
uncss(tmpcontents, {
raw: allCSS,
ignore: [/\.alert\b/, /\.alert-error\b/, /\.playground-page\b/]
}, function(err, output) {
waiting--;
if (!err) {
output = new CleanCSS().minify(output).styles;
var isFirst = true;
contents = contents.replace(/<link data-inline="yes-please" href="([^"]+)".*/g, function(_, m0) {
if (isFirst) {
isFirst = false;
return '<style>' + output + '</style>';
}
return '';
});
}
// Inline javascript
contents = replaceWithRelativeResource(data.path, contents, /<script data-inline="yes-please" src="([^"]+)".*/g, function(m0, fileContents) {
return '<script>' + fileContents.toString('utf8') + '</script>';
});
data.contents = new Buffer(contents.split(/\r\n|\r|\n/).join('\n'));
this.emit('data', data);
if (done && waiting === 0) {
this.emit('end');
}
}.bind(this));
}, function() {
done = true;
if (waiting === 0) {
this.emit('end');
}
}))
.pipe(gulp.dest('../monaco-editor-website')),
gulp.src('monaco.d.ts')
.pipe(typedoc({
mode: 'file',
out: '../monaco-editor-website/api',
includeDeclarations: true,
theme: 'website/typedoc-theme',
entryPoint: 'monaco',
name: 'Monaco Editor API v' + MONACO_EDITOR_VERSION,
readme: 'none',
hideGenerator: true
}))
)
.pipe(es.through(function(data) {
this.emit('data', data);
}, function() {
// temporarily create package.json so that npm install doesn't bark
fs.writeFileSync('../monaco-editor-website/package.json', '{}');
fs.writeFileSync('../monaco-editor-website/.nojekyll', '');
cp.execSync('npm install monaco-editor', {
cwd: path.join(__dirname, '../monaco-editor-website')
});
fs.unlink('../monaco-editor-website/package.json');
cp.execSync('git init', {
cwd: path.join(__dirname, '../monaco-editor-website')
});
cp.execSync('git checkout -b gh-pages', {
cwd: path.join(__dirname, '../monaco-editor-website')
});
cp.execSync('git add .', {
cwd: path.join(__dirname, '../monaco-editor-website')
});
cp.execSync('git commit -m "Publish website"', {
cwd: path.join(__dirname, '../monaco-editor-website')
});
cp.execSync('git remote add origin https://github.com/Microsoft/monaco-editor.git', {
cwd: path.join(__dirname, '../monaco-editor-website')
});
console.log('RUN monaco-editor-website>git push origin gh-pages --force')
this.emit('end');
}))
);
});
gulp.task('generate-test-samples', function() {
var sampleNames = fs.readdirSync(path.join(__dirname, 'test/samples'));
var samples = sampleNames.map(function(sampleName) {
var samplePath = path.join(__dirname, 'test/samples', sampleName);
var sampleContent = fs.readFileSync(samplePath).toString();
return {
name: sampleName,
content: sampleContent
};
});
var prefix = '//This is a generated file via gulp generate-test-samples\ndefine([], function() { return';
var suffix = '; });'
fs.writeFileSync(path.join(__dirname, 'test/samples-all.generated.js'), prefix + JSON.stringify(samples, null, '\t') + suffix );
var PLAY_SAMPLES = require(path.join(WEBSITE_GENERATED_PATH, 'all.js')).PLAY_SAMPLES;
var locations = [];
for (var i = 0; i < PLAY_SAMPLES.length; i++) {
var sample = PLAY_SAMPLES[i];
var sampleId = sample.id;
var samplePath = path.join(WEBSITE_GENERATED_PATH, sample.path);
var html = fs.readFileSync(path.join(samplePath, 'sample.html'));
var js = fs.readFileSync(path.join(samplePath, 'sample.js'));
var css = fs.readFileSync(path.join(samplePath, 'sample.css'));
var result = [
'<!DOCTYPE html>',
'<!-- THIS IS A GENERATED FILE VIA gulp generate-test-samples -->',
'<html>',
'<head>',
' <base href="..">',
' <meta http-equiv="X-UA-Compatible" content="IE=edge" />',
' <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />',
'</head>',
'<body>',
'<style>',
'/*----------------------------------------SAMPLE CSS START*/',
'',
css,
'',
'/*----------------------------------------SAMPLE CSS END*/',
'</style>',
'<a class="loading-opts" href="playground.generated/index.html">[&lt;&lt; BACK]</a> <br/>',
'THIS IS A GENERATED FILE VIA gulp generate-test-samples',
'',
'<div id="bar" style="margin-bottom: 6px;"></div>',
'',
'<div style="clear:both"></div>',
'<div id="outer-container" style="width:800px;height:450px;border: 1px solid grey">',
'<!-- ----------------------------------------SAMPLE HTML START-->',
'',
html,
'',
'<!-- ----------------------------------------SAMPLE HTML END-->',
'</div>',
'<div style="clear:both"></div>',
'',
'<script src="../metadata.js"></script>',
'<script src="dev-setup.js"></script>',
'<script>',
'loadEditor(function() {',
'/*----------------------------------------SAMPLE JS START*/',
'',
js,
'',
'/*----------------------------------------SAMPLE CSS END*/',
'});',
'</script>',
'</body>',
'</html>',
];
fs.writeFileSync(path.join(__dirname, 'test/playground.generated/' + sampleId + '.html'), result.join('\n'));
locations.push({
path: sampleId + '.html',
name: sample.chapter + ' &gt; ' + sample.name
})
}
var index = [
'<!DOCTYPE html>',
'<!-- THIS IS A GENERATED FILE VIA gulp generate-test-samples -->',
'<html>',
'<head>',
' <base href="..">',
'</head>',
'<body>',
'<a class="loading-opts" href="index.html">[&lt;&lt; BACK]</a><br/>',
'THIS IS A GENERATED FILE VIA gulp generate-test-samples<br/><br/>',
locations.map(function(location) {
return '<a class="loading-opts" href="playground.generated/' + location.path + '">' + location.name + '</a>';
}).join('<br/>\n'),
'<script src="../metadata.js"></script>',
'<script src="dev-setup.js"></script>',
'</body>',
'</html>',
]
fs.writeFileSync(path.join(__dirname, 'test/playground.generated/index.html'), index.join('\n'));
});
gulp.task('simpleserver', ['generate-test-samples'], function(cb) {
httpServer.createServer({ root: '../', cache: 5 }).listen(8080);
httpServer.createServer({ root: '../', cache: 5 }).listen(8088);
console.log('LISTENING on 8080 and 8088');
});
const gulp = require('gulp');
const es = require('event-stream');
const path = require('path');
const fs = require('fs');
const rimraf = require('rimraf');
const cp = require('child_process');
const CleanCSS = require('clean-css');
const uncss = require('uncss');
const File = require('vinyl');

View file

@ -1,66 +0,0 @@
(function() {
var METADATA = {
CORE: {
paths: {
npm: 'node_modules/monaco-editor-core/min/vs',
// npm: 'node_modules/monaco-editor-core/dev/vs',
dev: '/vscode/out/vs',
built: '/vscode/out-monaco-editor-core/min/vs',
releaseDev: 'release/dev/vs',
releaseMin: 'release/min/vs',
}
},
PLUGINS: [{
name: 'monaco-typescript',
contrib: 'vs/language/typescript/src/monaco.contribution',
modulePrefix: 'vs/language/typescript',
thirdPartyNotices: 'node_modules/monaco-typescript/ThirdPartyNotices.txt',
paths: {
npm: 'node_modules/monaco-typescript/release',
dev: '/monaco-typescript/out'
}
},{
name: 'monaco-css',
contrib: 'vs/language/css/monaco.contribution',
modulePrefix: 'vs/language/css',
paths: {
npm: 'node_modules/monaco-css/release/min',
dev: '/monaco-css/release/dev'
}
},{
name: 'monaco-json',
contrib: 'vs/language/json/monaco.contribution',
modulePrefix: 'vs/language/json',
paths: {
npm: 'node_modules/monaco-json/release/min',
dev: '/monaco-json/release/dev'
}
},{
name: 'monaco-html',
contrib: 'vs/language/html/monaco.contribution',
modulePrefix: 'vs/language/html',
thirdPartyNotices: 'node_modules/monaco-html/ThirdPartyNotices.txt',
paths: {
npm: 'node_modules/monaco-html/release/min',
dev: '/monaco-html/release/dev'
}
},{
name: 'monaco-languages',
contrib: 'vs/basic-languages/src/monaco.contribution',
modulePrefix: 'vs/basic-languages',
thirdPartyNotices: 'node_modules/monaco-languages/ThirdPartyNotices.txt',
paths: {
npm: 'node_modules/monaco-languages/release',
dev: '/monaco-languages/out'
}
}]
}
if (typeof exports !== 'undefined') {
exports.METADATA = METADATA
} else {
self.METADATA = METADATA;
}
})();

View file

@ -0,0 +1,5 @@
# Monaco LSP Client
Provides a Language Server Protocol (LSP) client for the Monaco Editor.
This package is in alpha stage and might contain many bugs.

View file

@ -0,0 +1,687 @@
import * as fs from 'fs';
import * as path from 'path';
/**
* Utility class for writing formatted code with proper indentation
*/
class LineWriter {
private lines: string[] = [];
private indentLevel: number = 0;
private indentStr: string = ' '; // 4 spaces
/**
* Write a line with current indentation
*/
writeLine(line: string = ''): void {
if (line.trim() === '') {
this.lines.push('');
} else {
this.lines.push(this.indentStr.repeat(this.indentLevel) + line);
}
}
/**
* Write text without adding a new line
*/
write(text: string): void {
if (this.lines.length === 0) {
this.lines.push('');
}
const lastIndex = this.lines.length - 1;
if (this.lines[lastIndex] === '') {
this.lines[lastIndex] = this.indentStr.repeat(this.indentLevel) + text;
} else {
this.lines[lastIndex] += text;
}
}
/**
* Increase indentation level
*/
indent(): void {
this.indentLevel++;
}
/**
* Decrease indentation level
*/
outdent(): void {
if (this.indentLevel > 0) {
this.indentLevel--;
}
}
/**
* Get the generated content as a string
*/
toString(): string {
return this.lines.join('\n');
}
/**
* Clear all content and reset indentation
*/
clear(): void {
this.lines = [];
this.indentLevel = 0;
}
}
/**
* Interface definitions based on the metaModel schema
*/
interface MetaModel {
metaData: MetaData;
requests: Request[];
notifications: Notification[];
structures: Structure[];
enumerations: Enumeration[];
typeAliases: TypeAlias[];
}
interface MetaData {
version: string;
}
interface Request {
method: string;
result: Type;
messageDirection: MessageDirection;
params?: Type | Type[];
partialResult?: Type;
errorData?: Type;
registrationOptions?: Type;
registrationMethod?: string;
documentation?: string;
since?: string;
proposed?: boolean;
deprecated?: string;
}
interface Notification {
method: string;
messageDirection: MessageDirection;
params?: Type | Type[];
registrationOptions?: Type;
registrationMethod?: string;
documentation?: string;
since?: string;
proposed?: boolean;
deprecated?: string;
}
interface Structure {
name: string;
properties: Property[];
extends?: Type[];
mixins?: Type[];
documentation?: string;
since?: string;
proposed?: boolean;
deprecated?: string;
}
interface Property {
name: string;
type: Type;
optional?: boolean;
documentation?: string;
since?: string;
proposed?: boolean;
deprecated?: string;
}
interface Enumeration {
name: string;
type: EnumerationType;
values: EnumerationEntry[];
supportsCustomValues?: boolean;
documentation?: string;
since?: string;
proposed?: boolean;
deprecated?: string;
}
interface EnumerationEntry {
name: string;
value: string | number;
documentation?: string;
since?: string;
proposed?: boolean;
deprecated?: string;
}
interface EnumerationType {
kind: 'base';
name: 'string' | 'integer' | 'uinteger';
}
interface TypeAlias {
name: string;
type: Type;
documentation?: string;
since?: string;
proposed?: boolean;
deprecated?: string;
}
type MessageDirection = 'clientToServer' | 'serverToClient' | 'both';
type Type =
| BaseType
| ReferenceType
| ArrayType
| MapType
| AndType
| OrType
| TupleType
| StructureLiteralType
| StringLiteralType
| IntegerLiteralType
| BooleanLiteralType;
interface BaseType {
kind: 'base';
name:
| 'URI'
| 'DocumentUri'
| 'integer'
| 'uinteger'
| 'decimal'
| 'RegExp'
| 'string'
| 'boolean'
| 'null';
}
interface ReferenceType {
kind: 'reference';
name: string;
}
interface ArrayType {
kind: 'array';
element: Type;
}
interface MapType {
kind: 'map';
key: Type;
value: Type;
}
interface AndType {
kind: 'and';
items: Type[];
}
interface OrType {
kind: 'or';
items: Type[];
}
interface TupleType {
kind: 'tuple';
items: Type[];
}
interface StructureLiteralType {
kind: 'literal';
value: StructureLiteral;
}
interface StructureLiteral {
properties: Property[];
documentation?: string;
since?: string;
proposed?: boolean;
deprecated?: string;
}
interface StringLiteralType {
kind: 'stringLiteral';
value: string;
}
interface IntegerLiteralType {
kind: 'integerLiteral';
value: number;
}
interface BooleanLiteralType {
kind: 'booleanLiteral';
value: boolean;
}
/**
* TypeScript types generator for LSP client
*/
class LSPTypesGenerator {
private writer = new LineWriter();
/**
* Load and parse the metaModel.json file
*/
private loadMetaModel(): MetaModel {
const metaModelPath = path.join(__dirname, '..', 'metaModel.json');
const content = fs.readFileSync(metaModelPath, 'utf-8');
return JSON.parse(content) as MetaModel;
}
/**
* Convert Type to TypeScript type string
*/
private typeToTypeScript(type: Type): string {
switch (type.kind) {
case 'base':
switch (type.name) {
case 'string':
case 'DocumentUri':
case 'URI':
return 'string';
case 'integer':
case 'uinteger':
case 'decimal':
return 'number';
case 'boolean':
return 'boolean';
case 'null':
return 'null';
case 'RegExp':
return 'RegExp';
default:
return 'any';
}
case 'reference':
return type.name;
case 'array':
return `(${this.typeToTypeScript(type.element)})[]`;
case 'map':
return `{ [key: ${this.typeToTypeScript(type.key)}]: ${this.typeToTypeScript(
type.value
)} }`;
case 'and':
return type.items.map((item) => this.typeToTypeScript(item)).join(' & ');
case 'or':
return type.items.map((item) => this.typeToTypeScript(item)).join(' | ');
case 'tuple':
return `[${type.items.map((item) => this.typeToTypeScript(item)).join(', ')}]`;
case 'literal':
return this.structureLiteralToTypeScript(type.value);
case 'stringLiteral':
return `'${type.value}'`;
case 'integerLiteral':
return type.value.toString();
case 'booleanLiteral':
return type.value.toString();
default:
return 'any';
}
}
/**
* Convert structure literal to TypeScript interface
*/
private structureLiteralToTypeScript(literal: StructureLiteral): string {
const properties = literal.properties.map((prop) => {
const optional = prop.optional ? '?' : '';
return `${prop.name}${optional}: ${this.typeToTypeScript(prop.type)}`;
});
return `{\n ${properties.join(';\n ')}\n}`;
}
/**
* Generate TypeScript interface for a structure
*/
private generateStructure(structure: Structure): void {
if (structure.documentation) {
this.writer.writeLine('/**');
this.writer.writeLine(` * ${structure.documentation.replace(/\n/g, '\n * ')}`);
this.writer.writeLine(' */');
}
// Build extends clause combining extends and mixins
const allParents: string[] = [];
if (structure.extends && structure.extends.length > 0) {
allParents.push(...structure.extends.map((type) => this.typeToTypeScript(type)));
}
if (structure.mixins && structure.mixins.length > 0) {
allParents.push(...structure.mixins.map((type) => this.typeToTypeScript(type)));
}
const extendsClause = allParents.length > 0 ? ` extends ${allParents.join(', ')}` : '';
this.writer.writeLine(`export interface ${structure.name}${extendsClause} {`);
this.writer.indent();
// Add properties
for (const property of structure.properties) {
if (property.documentation) {
this.writer.writeLine('/**');
this.writer.writeLine(` * ${property.documentation.replace(/\n/g, '\n * ')}`);
this.writer.writeLine(' */');
}
const optional = property.optional ? '?' : '';
this.writer.writeLine(
`${property.name}${optional}: ${this.typeToTypeScript(property.type)};`
);
}
this.writer.outdent();
this.writer.writeLine('}');
this.writer.writeLine('');
}
/**
* Generate TypeScript enum for an enumeration
*/
private generateEnumeration(enumeration: Enumeration): void {
if (enumeration.documentation) {
this.writer.writeLine('/**');
this.writer.writeLine(` * ${enumeration.documentation.replace(/\n/g, '\n * ')}`);
this.writer.writeLine(' */');
}
this.writer.writeLine(`export enum ${enumeration.name} {`);
this.writer.indent();
for (let i = 0; i < enumeration.values.length; i++) {
const entry = enumeration.values[i];
if (entry.documentation) {
this.writer.writeLine('/**');
this.writer.writeLine(` * ${entry.documentation.replace(/\n/g, '\n * ')}`);
this.writer.writeLine(' */');
}
const isLast = i === enumeration.values.length - 1;
const comma = isLast ? '' : ',';
if (typeof entry.value === 'string') {
this.writer.writeLine(`${entry.name} = '${entry.value}'${comma}`);
} else {
this.writer.writeLine(`${entry.name} = ${entry.value}${comma}`);
}
}
this.writer.outdent();
this.writer.writeLine('}');
this.writer.writeLine('');
}
/**
* Generate TypeScript type alias
*/
private generateTypeAlias(typeAlias: TypeAlias): void {
if (typeAlias.documentation) {
this.writer.writeLine('/**');
this.writer.writeLine(` * ${typeAlias.documentation.replace(/\n/g, '\n * ')}`);
this.writer.writeLine(' */');
}
this.writer.writeLine(
`export type ${typeAlias.name} = ${this.typeToTypeScript(typeAlias.type)};`
);
this.writer.writeLine('');
}
/**
* Generate the Capability class
*/
private generateCapabilityClass(): void {
this.writer.writeLine('/**');
this.writer.writeLine(
' * Represents a capability with its associated method and registration options type'
);
this.writer.writeLine(' */');
this.writer.writeLine('export class Capability<T> {');
this.writer.indent();
this.writer.writeLine('constructor(public readonly method: string) {}');
this.writer.outdent();
this.writer.writeLine('}');
this.writer.writeLine('');
}
/**
* Generate the capabilities map
*/
private generateCapabilitiesMap(metaModel: MetaModel): void {
this.writer.writeLine('/**');
this.writer.writeLine(' * Map of all LSP capabilities with their registration options');
this.writer.writeLine(' */');
this.writer.writeLine('export const capabilities = {');
this.writer.indent();
// Collect all requests and notifications with registration options
const itemsWithRegistration: Array<{ method: string; registrationOptions?: Type }> = [];
for (const request of metaModel.requests) {
if (request.registrationOptions) {
itemsWithRegistration.push({
method: request.method,
registrationOptions: request.registrationOptions
});
}
}
for (const notification of metaModel.notifications) {
if (notification.registrationOptions) {
itemsWithRegistration.push({
method: notification.method,
registrationOptions: notification.registrationOptions
});
}
}
// Generate capability entries
for (const item of itemsWithRegistration) {
const methodIdentifier = this.methodToIdentifier(item.method);
const registrationType = item.registrationOptions
? this.typeToTypeScript(item.registrationOptions)
: 'unknown';
this.writer.writeLine(
`${methodIdentifier}: new Capability<${registrationType}>('${item.method}'),`
);
}
this.writer.outdent();
this.writer.writeLine('};');
this.writer.writeLine('');
}
/**
* Convert LSP method name to valid JavaScript identifier
*/
private methodToIdentifier(method: string): string {
const parts = method
.replace(/\$/g, '') // Remove $ characters
.split('/') // Split on forward slashes
.filter((part) => part.length > 0); // Remove empty parts
return parts
.map((part, index) => {
// Convert kebab-case to camelCase for each part
const camelCase = part.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
// Capitalize first letter of all parts except the first non-empty part
return index === 0 ? camelCase : camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
})
.join('');
}
/**
* Generate the API contract object
*/
private generateApiContract(metaModel: MetaModel): void {
this.writer.writeLine('/**');
this.writer.writeLine(' * LSP API Contract');
this.writer.writeLine(' */');
this.writer.writeLine('export const api = contract({');
this.writer.indent();
this.writer.writeLine('name: "LSP",');
// Helper function to generate request entries
const generateRequest = (request: Request, isOptional: boolean = false) => {
const methodIdentifier = this.methodToIdentifier(request.method);
const paramsType = this.getParamsType(request.params);
const resultType = this.typeToTypeScript(request.result);
if (request.documentation) {
this.writer.writeLine('/**');
this.writer.writeLine(` * ${request.documentation.replace(/\n/g, '\n * ')}`);
this.writer.writeLine(' */');
}
const optional = isOptional ? '.optional()' : '';
this.writer.writeLine(
`${methodIdentifier}: unverifiedRequest<${paramsType}, ${resultType}>({ method: "${request.method}" })${optional},`
);
};
// Helper function to generate notification entries
const generateNotification = (notification: Notification) => {
const methodIdentifier = this.methodToIdentifier(notification.method);
const paramsType = this.getParamsType(notification.params);
if (notification.documentation) {
this.writer.writeLine('/**');
this.writer.writeLine(` * ${notification.documentation.replace(/\n/g, '\n * ')}`);
this.writer.writeLine(' */');
}
this.writer.writeLine(
`${methodIdentifier}: unverifiedNotification<${paramsType}>({ method: "${notification.method}" }),`
);
};
// Server section
this.writer.writeLine('server: {');
this.writer.indent();
// Server requests (sent from client to server)
for (const request of metaModel.requests) {
if (request.messageDirection === 'clientToServer' || request.messageDirection === 'both') {
generateRequest(request);
}
}
// Server notifications (sent from client to server)
for (const notification of metaModel.notifications) {
if (
notification.messageDirection === 'clientToServer' ||
notification.messageDirection === 'both'
) {
generateNotification(notification);
}
}
this.writer.outdent();
this.writer.writeLine('},');
// Client section
this.writer.writeLine('client: {');
this.writer.indent();
// Client requests (handled by server)
for (const request of metaModel.requests) {
if (request.messageDirection === 'serverToClient' || request.messageDirection === 'both') {
generateRequest(request, true); // serverToClient requests are optional
}
}
// Client notifications (sent from server to client)
for (const notification of metaModel.notifications) {
if (
notification.messageDirection === 'serverToClient' ||
notification.messageDirection === 'both'
) {
generateNotification(notification);
}
}
this.writer.outdent();
this.writer.writeLine('}');
this.writer.outdent();
this.writer.writeLine('});');
this.writer.writeLine('');
}
/**
* Helper method to get parameter type
*/
private getParamsType(params?: Type | Type[]): string {
if (!params) {
return 'void';
}
if (Array.isArray(params)) {
const paramTypes = params.map((p) => this.typeToTypeScript(p));
return `[${paramTypes.join(', ')}]`;
} else {
return this.typeToTypeScript(params);
}
}
/**
* Generate the complete TypeScript types
*/
generate(): void {
const metaModel = this.loadMetaModel();
this.writer.clear();
this.writer.writeLine('// Generated TypeScript definitions for LSP');
this.writer.writeLine(`// Protocol version: ${metaModel.metaData.version}`);
this.writer.writeLine('// This file is auto-generated. Do not edit manually.');
this.writer.writeLine('');
// Import contract types from @hediet/json-rpc
this.writer.writeLine('import {');
this.writer.indent();
this.writer.writeLine('contract,');
this.writer.writeLine('Contract,');
this.writer.writeLine('unverifiedRequest,');
this.writer.writeLine('unverifiedNotification,');
this.writer.outdent();
this.writer.writeLine('} from "@hediet/json-rpc";');
this.writer.writeLine('');
// Generate enumerations
for (const enumeration of metaModel.enumerations) {
this.generateEnumeration(enumeration);
}
// Generate type aliases
for (const typeAlias of metaModel.typeAliases) {
this.generateTypeAlias(typeAlias);
}
// Generate structures
for (const structure of metaModel.structures) {
this.generateStructure(structure);
}
// Generate Capability class
this.generateCapabilityClass();
// Generate capabilities map
this.generateCapabilitiesMap(metaModel);
// Generate API contract
this.generateApiContract(metaModel);
// Write types file
const srcDir = path.join(__dirname, '..', 'src');
if (!fs.existsSync(srcDir)) {
fs.mkdirSync(srcDir, { recursive: true });
}
fs.writeFileSync(path.join(srcDir, 'types.ts'), this.writer.toString());
console.log('Generated LSP types file: src/types.ts');
}
}
// Run the generator
if (require.main === module) {
const generator = new LSPTypesGenerator();
generator.generate();
}

1607
monaco-lsp-client/package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,26 @@
{
"name": "@vscode/monaco-lsp-client",
"description": "description",
"authors": "vscode",
"version": "0.1.0",
"main": "out/index.js",
"types": "out/index.d.ts",
"dependencies": {
"@hediet/json-rpc": "^0.5.0",
"@hediet/json-rpc-browser": "^0.5.1",
"@hediet/json-rpc-websocket": "^0.5.1"
},
"peerDependencies": {
"monaco-editor-core": "^0.54.0-dev-20250929"
},
"devDependencies": {
"rolldown": "^1.0.0-beta.41",
"rolldown-plugin-dts": "^0.16.11",
"rollup-plugin-delete": "^3.0.1"
},
"scripts": {
"build": "npx rolldown -c rolldown.config.mjs",
"dev": "npx rolldown -c rolldown.config.mjs --watch",
"generate": "tsx generator/index.ts"
}
}

View file

@ -0,0 +1,33 @@
// @ts-check
import { join } from 'path';
import { defineConfig } from 'rolldown';
import { dts } from 'rolldown-plugin-dts';
import del from 'rollup-plugin-delete';
import alias from '@rollup/plugin-alias';
export default defineConfig({
input: {
index: join(import.meta.dirname, './src/index.ts')
},
output: {
dir: join(import.meta.dirname, './out'),
format: 'es'
},
external: ['monaco-editor-core'],
plugins: [
del({ targets: 'out/*' }),
alias({
entries: {
ws: 'undefined'
}
}),
dts({
tsconfig: false,
compilerOptions: {
stripInternal: true
},
resolve: true
})
]
});

View file

@ -0,0 +1,40 @@
import * as monaco from 'monaco-editor-core';
import { Position, Range, TextDocumentIdentifier } from '../../src/types';
export interface ITextModelBridge {
translate(
textModel: monaco.editor.ITextModel,
monacoPos: monaco.Position
): {
textDocument: TextDocumentIdentifier;
position: Position;
};
translateRange(textModel: monaco.editor.ITextModel, monacoRange: monaco.Range): Range;
translateBack(
textDocument: TextDocumentIdentifier,
position: Position
): {
textModel: monaco.editor.ITextModel;
position: monaco.Position;
};
translateBackRange(
textDocument: TextDocumentIdentifier,
range: Range
): {
textModel: monaco.editor.ITextModel;
range: monaco.Range;
};
}
export function assertTargetTextModel<T extends { textModel: monaco.editor.ITextModel }>(
input: T,
expectedTextModel: monaco.editor.ITextModel
): T {
if (input.textModel !== expectedTextModel) {
throw new Error(`Expected text model to be ${expectedTextModel}, but got ${input.textModel}`);
}
return input;
}

View file

@ -0,0 +1,254 @@
import { TypedChannel } from '@hediet/json-rpc';
import { ClientCapabilities, Capability, ServerCapabilities, api, capabilities, TextDocumentChangeRegistrationOptions, TextDocumentSyncKind } from '../../src/types';
import { IDisposable, Disposable } from '../utils';
export interface ILspCapabilitiesRegistry {
addStaticClientCapabilities(capability: ClientCapabilities): IDisposable;
registerCapabilityHandler<T>(capability: Capability<T>, handleStaticCapability: boolean, handler: (capability: T) => IDisposable): IDisposable;
}
export class LspCapabilitiesRegistry extends Disposable implements ILspCapabilitiesRegistry {
private readonly _staticCapabilities = new Set<{ cap: ClientCapabilities; }>();
private readonly _dynamicFromStatic = DynamicFromStaticOptions.create();
private readonly _registrations = new Map<Capability<any>, CapabilityInfo<any>>();
private _serverCapabilities: ServerCapabilities | undefined = undefined;
constructor(
private readonly _connection: TypedChannel
) {
super();
this._register(this._connection.registerRequestHandler(api.client.clientRegisterCapability, async (params) => {
for (const registration of params.registrations) {
const capability = getCapabilityByMethod(registration.method);
const r = new CapabilityRegistration(registration.id, capability, registration.registerOptions, false);
this._registerCapabilityOptions(r);
}
return { ok: null };
}));
this._register(this._connection.registerRequestHandler(api.client.clientUnregisterCapability, async (params) => {
for (const unregistration of params.unregisterations) {
const capability = getCapabilityByMethod(unregistration.method);
const info = this._registrations.get(capability);
const handlerInfo = info?.registrations.get(unregistration.id);
if (!handlerInfo) {
throw new Error(`No registration for method ${unregistration.method} with id ${unregistration.id}`);
}
handlerInfo?.handlerDisposables.forEach(d => d.dispose());
info?.registrations.delete(unregistration.id);
}
return { ok: null };
}));
}
private _registerCapabilityOptions<T>(registration: CapabilityRegistration<T>) {
let registrationForMethod = this._registrations.get(registration.capability);
if (!registrationForMethod) {
registrationForMethod = new CapabilityInfo();
this._registrations.set(registration.capability, registrationForMethod);
}
if (registrationForMethod.registrations.has(registration.id)) {
throw new Error(`Handler for method ${registration.capability.method} with id ${registration.id} already registered`);
}
registrationForMethod.registrations.set(registration.id, registration);
for (const h of registrationForMethod.handlers) {
if (!h.handleStaticCapability && registration.isFromStatic) {
continue;
}
registration.handlerDisposables.set(h, h.handler(registration.options));
}
}
setServerCapabilities(serverCapabilities: ServerCapabilities) {
if (this._serverCapabilities) {
throw new Error('Server capabilities already set');
}
this._serverCapabilities = serverCapabilities;
for (const cap of Object.values(capabilities)) {
const options = this._dynamicFromStatic.getOptions(cap, serverCapabilities);
if (options) {
this._registerCapabilityOptions(new CapabilityRegistration(cap.method, cap, options, true));
}
}
}
getClientCapabilities(): ClientCapabilities {
const result: ClientCapabilities = {};
for (const c of this._staticCapabilities) {
deepAssign(result, c.cap);
}
return result;
}
addStaticClientCapabilities(capability: ClientCapabilities): IDisposable {
const obj = { cap: capability };
this._staticCapabilities.add(obj);
return {
dispose: () => {
this._staticCapabilities.delete(obj);
}
};
}
registerCapabilityHandler<T>(capability: Capability<T>, handleStaticCapability: boolean, handler: (capability: T) => IDisposable): IDisposable {
let info = this._registrations.get(capability);
if (!info) {
info = new CapabilityInfo();
this._registrations.set(capability, info);
}
const handlerInfo = new CapabilityHandler(capability, handleStaticCapability, handler);
info.handlers.add(handlerInfo);
for (const registration of info.registrations.values()) {
if (!handlerInfo.handleStaticCapability && registration.isFromStatic) {
continue;
}
registration.handlerDisposables.set(handlerInfo, handler(registration.options));
}
return {
dispose: () => {
info.handlers.delete(handlerInfo);
for (const registration of info.registrations.values()) {
const disposable = registration.handlerDisposables.get(handlerInfo);
if (disposable) {
disposable.dispose();
registration.handlerDisposables.delete(handlerInfo);
}
}
}
};
}
}
class CapabilityHandler<T> {
constructor(
public readonly capability: Capability<T>,
public readonly handleStaticCapability: boolean,
public readonly handler: (capabilityOptions: T) => IDisposable
) { }
}
class CapabilityRegistration<T> {
public readonly handlerDisposables = new Map<CapabilityHandler<any>, IDisposable>();
constructor(
public readonly id: string,
public readonly capability: Capability<T>,
public readonly options: T,
public readonly isFromStatic: boolean
) { }
}
const capabilitiesByMethod = new Map([...Object.values(capabilities)].map(c => [c.method, c]));
function getCapabilityByMethod(method: string): Capability<any> {
const c = capabilitiesByMethod.get(method);
if (!c) {
throw new Error(`No capability found for method ${method}`);
}
return c;
}
class CapabilityInfo<T> {
public readonly handlers = new Set<CapabilityHandler<T>>();
public readonly registrations = new Map</* id */ string, CapabilityRegistration<T>>();
}
class DynamicFromStaticOptions {
private readonly _mappings = new Map</* method */ string, (serverCapabilities: ServerCapabilities) => any>();
public static create(): DynamicFromStaticOptions {
const o = new DynamicFromStaticOptions();
o.set(capabilities.textDocumentDidChange, s => {
if (s.textDocumentSync === undefined) {
return undefined;
}
if (typeof s.textDocumentSync === 'object') {
return {
syncKind: s.textDocumentSync.change ?? TextDocumentSyncKind.None,
documentSelector: null,
} satisfies TextDocumentChangeRegistrationOptions;
} else {
return {
syncKind: s.textDocumentSync,
documentSelector: null,
} satisfies TextDocumentChangeRegistrationOptions;
}
return null!;
});
o.set(capabilities.textDocumentCompletion, s => s.completionProvider);
o.set(capabilities.textDocumentHover, s => s.hoverProvider);
o.set(capabilities.textDocumentSignatureHelp, s => s.signatureHelpProvider);
o.set(capabilities.textDocumentDefinition, s => s.definitionProvider);
o.set(capabilities.textDocumentReferences, s => s.referencesProvider);
o.set(capabilities.textDocumentDocumentHighlight, s => s.documentHighlightProvider);
o.set(capabilities.textDocumentDocumentSymbol, s => s.documentSymbolProvider);
o.set(capabilities.textDocumentCodeAction, s => s.codeActionProvider);
o.set(capabilities.textDocumentCodeLens, s => s.codeLensProvider);
o.set(capabilities.textDocumentDocumentLink, s => s.documentLinkProvider);
o.set(capabilities.textDocumentFormatting, s => s.documentFormattingProvider);
o.set(capabilities.textDocumentRangeFormatting, s => s.documentRangeFormattingProvider);
o.set(capabilities.textDocumentOnTypeFormatting, s => s.documentOnTypeFormattingProvider);
o.set(capabilities.textDocumentRename, s => s.renameProvider);
o.set(capabilities.textDocumentFoldingRange, s => s.foldingRangeProvider);
o.set(capabilities.textDocumentDeclaration, s => s.declarationProvider);
o.set(capabilities.textDocumentTypeDefinition, s => s.typeDefinitionProvider);
o.set(capabilities.textDocumentImplementation, s => s.implementationProvider);
o.set(capabilities.textDocumentDocumentColor, s => s.colorProvider);
o.set(capabilities.textDocumentSelectionRange, s => s.selectionRangeProvider);
o.set(capabilities.textDocumentLinkedEditingRange, s => s.linkedEditingRangeProvider);
o.set(capabilities.textDocumentPrepareCallHierarchy, s => s.callHierarchyProvider);
o.set(capabilities.textDocumentSemanticTokensFull, s => s.semanticTokensProvider);
o.set(capabilities.textDocumentInlayHint, s => s.inlayHintProvider);
o.set(capabilities.textDocumentInlineValue, s => s.inlineValueProvider);
o.set(capabilities.textDocumentDiagnostic, s => s.diagnosticProvider);
o.set(capabilities.textDocumentMoniker, s => s.monikerProvider);
o.set(capabilities.textDocumentPrepareTypeHierarchy, s => s.typeHierarchyProvider);
o.set(capabilities.workspaceSymbol, s => s.workspaceSymbolProvider);
o.set(capabilities.workspaceExecuteCommand, s => s.executeCommandProvider);
return o;
}
set<T>(capability: Capability<T>, getOptionsFromStatic: (serverCapabilities: ServerCapabilities) => T | boolean | undefined): void {
if (this._mappings.has(capability.method)) {
throw new Error(`Capability for method ${capability.method} already registered`);
}
this._mappings.set(capability.method, getOptionsFromStatic);
}
getOptions<T>(capability: Capability<T>, serverCapabilities: ServerCapabilities): T | undefined {
const getter = this._mappings.get(capability.method);
if (!getter) {
return undefined;
}
const result = getter(serverCapabilities);
return result;
}
}
function deepAssign(target: any, source: any) {
for (const key of Object.keys(source)) {
const srcValue = source[key];
if (srcValue === undefined) {
continue;
}
const tgtValue = target[key];
if (tgtValue === undefined) {
target[key] = srcValue;
continue;
}
if (typeof srcValue !== 'object' || srcValue === null) {
target[key] = srcValue;
continue;
}
if (typeof tgtValue !== 'object' || tgtValue === null) {
target[key] = srcValue;
continue;
}
deepAssign(tgtValue, srcValue);
}
}

View file

@ -0,0 +1,90 @@
import { IMessageTransport, TypedChannel } from "@hediet/json-rpc";
import { LspCompletionFeature } from "./languageFeatures/LspCompletionFeature";
import { LspHoverFeature } from "./languageFeatures/LspHoverFeature";
import { LspSignatureHelpFeature } from "./languageFeatures/LspSignatureHelpFeature";
import { LspDefinitionFeature } from "./languageFeatures/LspDefinitionFeature";
import { LspDeclarationFeature } from "./languageFeatures/LspDeclarationFeature";
import { LspTypeDefinitionFeature } from "./languageFeatures/LspTypeDefinitionFeature";
import { LspImplementationFeature } from "./languageFeatures/LspImplementationFeature";
import { LspReferencesFeature } from "./languageFeatures/LspReferencesFeature";
import { LspDocumentHighlightFeature } from "./languageFeatures/LspDocumentHighlightFeature";
import { LspDocumentSymbolFeature } from "./languageFeatures/LspDocumentSymbolFeature";
import { LspRenameFeature } from "./languageFeatures/LspRenameFeature";
import { LspCodeActionFeature } from "./languageFeatures/LspCodeActionFeature";
import { LspCodeLensFeature } from "./languageFeatures/LspCodeLensFeature";
import { LspDocumentLinkFeature } from "./languageFeatures/LspDocumentLinkFeature";
import { LspFormattingFeature } from "./languageFeatures/LspFormattingFeature";
import { LspRangeFormattingFeature } from "./languageFeatures/LspRangeFormattingFeature";
import { LspOnTypeFormattingFeature } from "./languageFeatures/LspOnTypeFormattingFeature";
import { LspFoldingRangeFeature } from "./languageFeatures/LspFoldingRangeFeature";
import { LspSelectionRangeFeature } from "./languageFeatures/LspSelectionRangeFeature";
import { LspInlayHintsFeature } from "./languageFeatures/LspInlayHintsFeature";
import { LspSemanticTokensFeature } from "./languageFeatures/LspSemanticTokensFeature";
import { LspDiagnosticsFeature } from "./languageFeatures/LspDiagnosticsFeature";
import { api } from "../../src/types";
import { LspConnection } from "./LspConnection";
import { LspCapabilitiesRegistry } from './LspCapabilitiesRegistry';
import { TextDocumentSynchronizer } from "./TextDocumentSynchronizer";
import { DisposableStore, IDisposable } from "../utils";
export class MonacoLspClient {
private _connection: LspConnection;
private readonly _capabilitiesRegistry: LspCapabilitiesRegistry;
private readonly _bridge: TextDocumentSynchronizer;
private _initPromise: Promise<void>;
constructor(transport: IMessageTransport) {
const c = TypedChannel.fromTransport(transport);
const s = api.getServer(c, {});
c.startListen();
this._capabilitiesRegistry = new LspCapabilitiesRegistry(c);
this._bridge = new TextDocumentSynchronizer(s.server, this._capabilitiesRegistry);
this._connection = new LspConnection(s.server, this._bridge, this._capabilitiesRegistry, c);
this.createFeatures();
this._initPromise = this._init();
}
private async _init() {
const result = await this._connection.server.initialize({
processId: null,
capabilities: this._capabilitiesRegistry.getClientCapabilities(),
rootUri: null,
});
this._connection.server.initialized({});
this._capabilitiesRegistry.setServerCapabilities(result.capabilities);
}
protected createFeatures(): IDisposable {
const store = new DisposableStore();
store.add(new LspCompletionFeature(this._connection));
store.add(new LspHoverFeature(this._connection));
store.add(new LspSignatureHelpFeature(this._connection));
store.add(new LspDefinitionFeature(this._connection));
store.add(new LspDeclarationFeature(this._connection));
store.add(new LspTypeDefinitionFeature(this._connection));
store.add(new LspImplementationFeature(this._connection));
store.add(new LspReferencesFeature(this._connection));
store.add(new LspDocumentHighlightFeature(this._connection));
store.add(new LspDocumentSymbolFeature(this._connection));
store.add(new LspRenameFeature(this._connection));
store.add(new LspCodeActionFeature(this._connection));
store.add(new LspCodeLensFeature(this._connection));
store.add(new LspDocumentLinkFeature(this._connection));
store.add(new LspFormattingFeature(this._connection));
store.add(new LspRangeFormattingFeature(this._connection));
store.add(new LspOnTypeFormattingFeature(this._connection));
store.add(new LspFoldingRangeFeature(this._connection));
store.add(new LspSelectionRangeFeature(this._connection));
store.add(new LspInlayHintsFeature(this._connection));
store.add(new LspSemanticTokensFeature(this._connection));
store.add(new LspDiagnosticsFeature(this._connection));
return store;
}
}

View file

@ -0,0 +1,13 @@
import { TypedChannel } from '@hediet/json-rpc';
import { api } from '../../src/types';
import { ITextModelBridge } from './ITextModelBridge';
import { LspCapabilitiesRegistry } from './LspCapabilitiesRegistry';
export class LspConnection {
constructor(
public readonly server: typeof api.TServerInterface,
public readonly bridge: ITextModelBridge,
public readonly capabilities: LspCapabilitiesRegistry,
public readonly connection: TypedChannel,
) { }
}

View file

@ -0,0 +1,183 @@
import * as monaco from 'monaco-editor-core';
import { api, capabilities, Position, Range, TextDocumentContentChangeEvent, TextDocumentIdentifier } from '../../src/types';
import { Disposable } from '../utils';
import { ITextModelBridge } from './ITextModelBridge';
import { ILspCapabilitiesRegistry } from './LspCapabilitiesRegistry';
export class TextDocumentSynchronizer extends Disposable implements ITextModelBridge {
private readonly _managedModels = new Map<monaco.editor.ITextModel, ManagedModel>();
private readonly _managedModelsReverse = new Map</* uri */ string, monaco.editor.ITextModel>();
private _started = false;
constructor(
private readonly _server: typeof api.TServerInterface,
private readonly _capabilities: ILspCapabilitiesRegistry,
) {
super();
this._register(this._capabilities.addStaticClientCapabilities({
textDocument: {
synchronization: {
dynamicRegistration: true,
willSave: false,
willSaveWaitUntil: false,
didSave: false,
}
}
}));
this._register(_capabilities.registerCapabilityHandler(capabilities.textDocumentDidChange, true, e => {
if (this._started) {
return {
dispose: () => {
}
}
}
this._started = true;
this._register(monaco.editor.onDidCreateModel(m => {
this._getOrCreateManagedModel(m);
}));
for (const m of monaco.editor.getModels()) {
this._getOrCreateManagedModel(m);
}
return {
dispose: () => {
}
}
}));
}
private _getOrCreateManagedModel(m: monaco.editor.ITextModel) {
if (!this._started) {
throw new Error('Not started');
}
const uriStr = m.uri.toString(true).toLowerCase();
let mm = this._managedModels.get(m);
if (!mm) {
mm = new ManagedModel(m, this._server);
this._managedModels.set(m, mm);
this._managedModelsReverse.set(uriStr, m);
}
m.onWillDispose(() => {
mm!.dispose();
this._managedModels.delete(m);
this._managedModelsReverse.delete(uriStr);
});
return mm;
}
translateBack(textDocument: TextDocumentIdentifier, position: Position): { textModel: monaco.editor.ITextModel; position: monaco.Position; } {
const uri = textDocument.uri.toLowerCase();
const textModel = this._managedModelsReverse.get(uri);
if (!textModel) {
throw new Error(`No text model for uri ${uri}`);
}
const monacoPosition = new monaco.Position(position.line + 1, position.character + 1);
return { textModel, position: monacoPosition };
}
translateBackRange(textDocument: TextDocumentIdentifier, range: Range): { textModel: monaco.editor.ITextModel; range: monaco.Range; } {
const uri = textDocument.uri.toLowerCase();
const textModel = this._managedModelsReverse.get(uri);
if (!textModel) {
throw new Error(`No text model for uri ${uri}`);
}
const monacoRange = new monaco.Range(
range.start.line + 1,
range.start.character + 1,
range.end.line + 1,
range.end.character + 1
);
return { textModel, range: monacoRange };
}
translate(textModel: monaco.editor.ITextModel, monacoPos: monaco.Position): { textDocument: TextDocumentIdentifier; position: Position; } {
return {
textDocument: {
uri: textModel.uri.toString(true),
},
position: {
line: monacoPos.lineNumber - 1,
character: monacoPos.column - 1,
}
};
}
translateRange(textModel: monaco.editor.ITextModel, monacoRange: monaco.Range): Range {
return {
start: {
line: monacoRange.startLineNumber - 1,
character: monacoRange.startColumn - 1,
},
end: {
line: monacoRange.endLineNumber - 1,
character: monacoRange.endColumn - 1,
}
};
}
}
class ManagedModel extends Disposable {
constructor(
private readonly _textModel: monaco.editor.ITextModel,
private readonly _api: typeof api.TServerInterface
) {
super();
const uri = _textModel.uri.toString(true).toLowerCase();
this._api.textDocumentDidOpen({
textDocument: {
languageId: _textModel.getLanguageId(),
uri: uri,
version: _textModel.getVersionId(),
text: _textModel.getValue(),
}
});
this._register(_textModel.onDidChangeContent(e => {
const contentChanges = e.changes.map(c => toLspTextDocumentContentChangeEvent(c));
this._api.textDocumentDidChange({
textDocument: {
uri: uri,
version: _textModel.getVersionId(),
},
contentChanges: contentChanges
});
}));
this._register({
dispose: () => {
this._api.textDocumentDidClose({
textDocument: {
uri: uri,
}
});
}
});
}
}
function toLspTextDocumentContentChangeEvent(change: monaco.editor.IModelContentChange): TextDocumentContentChangeEvent {
return {
range: toLspRange(change.range),
rangeLength: change.rangeLength,
text: change.text,
};
}
function toLspRange(range: monaco.IRange): Range {
return {
start: {
line: range.startLineNumber - 1,
character: range.startColumn - 1,
},
end: {
line: range.endLineNumber - 1,
character: range.endColumn - 1,
}
};
}

View file

@ -0,0 +1,169 @@
import * as monaco from 'monaco-editor-core';
import { capabilities, CodeActionRegistrationOptions, Command, WorkspaceEdit, CodeAction } from '../../../src/types';
import { Disposable } from '../../utils';
import { LspConnection } from '../LspConnection';
import { toMonacoLanguageSelector } from './common';
import { lspCodeActionKindToMonacoCodeActionKind, toMonacoCodeActionKind, toLspDiagnosticSeverity, toLspCodeActionTriggerKind, toMonacoCommand } from './common';
export class LspCodeActionFeature extends Disposable {
constructor(
private readonly _connection: LspConnection,
) {
super();
this._register(this._connection.capabilities.addStaticClientCapabilities({
textDocument: {
codeAction: {
dynamicRegistration: true,
codeActionLiteralSupport: {
codeActionKind: {
valueSet: Array.from(lspCodeActionKindToMonacoCodeActionKind.keys()),
}
},
isPreferredSupport: true,
disabledSupport: true,
dataSupport: true,
resolveSupport: {
properties: ['edit'],
},
}
}
}));
this._register(this._connection.capabilities.registerCapabilityHandler(capabilities.textDocumentCodeAction, true, capability => {
return monaco.languages.registerCodeActionProvider(
toMonacoLanguageSelector(capability.documentSelector),
new LspCodeActionProvider(this._connection, capability),
);
}));
}
}
interface ExtendedCodeAction extends monaco.languages.CodeAction {
_lspAction?: CodeAction;
}
class LspCodeActionProvider implements monaco.languages.CodeActionProvider {
public readonly resolveCodeAction;
constructor(
private readonly _client: LspConnection,
private readonly _capabilities: CodeActionRegistrationOptions,
) {
if (_capabilities.resolveProvider) {
this.resolveCodeAction = async (codeAction: ExtendedCodeAction, token: monaco.CancellationToken): Promise<ExtendedCodeAction> => {
if (codeAction._lspAction) {
const resolved = await this._client.server.codeActionResolve(codeAction._lspAction);
if (resolved.edit) {
codeAction.edit = toMonacoWorkspaceEdit(resolved.edit, this._client);
}
if (resolved.command) {
codeAction.command = toMonacoCommand(resolved.command);
}
}
return codeAction;
};
}
}
async provideCodeActions(
model: monaco.editor.ITextModel,
range: monaco.Range,
context: monaco.languages.CodeActionContext,
token: monaco.CancellationToken
): Promise<monaco.languages.CodeActionList | null> {
const translated = this._client.bridge.translate(model, range.getStartPosition());
const result = await this._client.server.textDocumentCodeAction({
textDocument: translated.textDocument,
range: this._client.bridge.translateRange(model, range),
context: {
diagnostics: context.markers.map(marker => ({
range: this._client.bridge.translateRange(model, monaco.Range.lift(marker)),
message: marker.message,
severity: toLspDiagnosticSeverity(marker.severity),
})),
triggerKind: toLspCodeActionTriggerKind(context.trigger),
},
});
if (!result) {
return null;
}
const actions = Array.isArray(result) ? result : [result];
return {
actions: actions.map(action => {
if ('title' in action && !('kind' in action)) {
// Command
const cmd = action as Command;
const monacoAction: ExtendedCodeAction = {
title: cmd.title,
command: toMonacoCommand(cmd),
};
return monacoAction;
} else {
// CodeAction
const codeAction = action as CodeAction;
const monacoAction: ExtendedCodeAction = {
title: codeAction.title,
kind: toMonacoCodeActionKind(codeAction.kind),
isPreferred: codeAction.isPreferred,
disabled: codeAction.disabled?.reason,
edit: codeAction.edit ? toMonacoWorkspaceEdit(codeAction.edit, this._client) : undefined,
command: toMonacoCommand(codeAction.command),
_lspAction: codeAction,
};
return monacoAction;
}
}),
dispose: () => { },
};
}
}
function toMonacoWorkspaceEdit(
edit: WorkspaceEdit,
client: LspConnection
): monaco.languages.WorkspaceEdit {
const edits: monaco.languages.IWorkspaceTextEdit[] = [];
if (edit.changes) {
for (const uri in edit.changes) {
const textEdits = edit.changes[uri];
for (const textEdit of textEdits) {
const translated = client.bridge.translateBackRange({ uri }, textEdit.range);
edits.push({
resource: translated.textModel.uri,
versionId: undefined,
textEdit: {
range: translated.range,
text: textEdit.newText,
},
});
}
}
}
if (edit.documentChanges) {
for (const change of edit.documentChanges) {
if ('textDocument' in change) {
const uri = change.textDocument.uri;
for (const textEdit of change.edits) {
const translated = client.bridge.translateBackRange({ uri }, textEdit.range);
edits.push({
resource: translated.textModel.uri,
versionId: change.textDocument.version ?? undefined,
textEdit: {
range: translated.range,
text: textEdit.newText,
},
});
}
}
}
}
return { edits };
}

View file

@ -0,0 +1,90 @@
import * as monaco from 'monaco-editor-core';
import { capabilities, CodeLensRegistrationOptions, CodeLens } from '../../../src/types';
import { Disposable } from '../../utils';
import { LspConnection } from '../LspConnection';
import { toMonacoLanguageSelector } from './common';
import { assertTargetTextModel } from '../ITextModelBridge';
import { toMonacoCommand } from './common';
export class LspCodeLensFeature extends Disposable {
constructor(
private readonly _connection: LspConnection,
) {
super();
this._register(this._connection.capabilities.addStaticClientCapabilities({
textDocument: {
codeLens: {
dynamicRegistration: true,
}
}
}));
this._register(this._connection.capabilities.registerCapabilityHandler(capabilities.textDocumentCodeLens, true, capability => {
return monaco.languages.registerCodeLensProvider(
toMonacoLanguageSelector(capability.documentSelector),
new LspCodeLensProvider(this._connection, capability),
);
}));
}
}
interface ExtendedCodeLens extends monaco.languages.CodeLens {
_lspCodeLens?: CodeLens;
}
class LspCodeLensProvider implements monaco.languages.CodeLensProvider {
constructor(
private readonly _client: LspConnection,
private readonly _capabilities: CodeLensRegistrationOptions,
) { }
async provideCodeLenses(
model: monaco.editor.ITextModel,
token: monaco.CancellationToken
): Promise<monaco.languages.CodeLensList | null> {
const translated = this._client.bridge.translate(model, new monaco.Position(1, 1));
const result = await this._client.server.textDocumentCodeLens({
textDocument: translated.textDocument,
});
if (!result) {
return null;
}
return {
lenses: result.map(lens => {
const monacoLens: ExtendedCodeLens = {
range: assertTargetTextModel(this._client.bridge.translateBackRange(translated.textDocument, lens.range), model).range,
command: toMonacoCommand(lens.command),
_lspCodeLens: lens,
};
return monacoLens;
}),
dispose: () => { },
};
}
async resolveCodeLens(
model: monaco.editor.ITextModel,
codeLens: ExtendedCodeLens,
token: monaco.CancellationToken
): Promise<monaco.languages.CodeLens> {
if (!this._capabilities.resolveProvider || !codeLens._lspCodeLens) {
return codeLens;
}
const resolved = await this._client.server.codeLensResolve(codeLens._lspCodeLens);
if (resolved.command) {
codeLens.command = {
id: resolved.command.command,
title: resolved.command.title,
arguments: resolved.command.arguments,
};
}
return codeLens;
}
}

View file

@ -0,0 +1,202 @@
import * as monaco from 'monaco-editor-core';
import { capabilities, CompletionRegistrationOptions, MarkupContent, CompletionItem, TextDocumentPositionParams } from '../../../src/types';
import { assertTargetTextModel, ITextModelBridge } from '../ITextModelBridge';
import { Disposable } from '../../utils';
import { LspConnection } from '../LspConnection';
import { toMonacoLanguageSelector } from './common';
import {
lspCompletionItemKindToMonacoCompletionItemKind,
lspCompletionItemTagToMonacoCompletionItemTag,
toMonacoCompletionItemKind,
toMonacoCompletionItemTag,
toLspCompletionTriggerKind,
toMonacoInsertTextRules,
toMonacoCommand,
} from './common';
export class LspCompletionFeature extends Disposable {
constructor(
private readonly _connection: LspConnection,
) {
super();
this._register(this._connection.capabilities.addStaticClientCapabilities({
textDocument: {
completion: {
dynamicRegistration: true,
contextSupport: true,
completionItemKind: {
valueSet: Array.from(lspCompletionItemKindToMonacoCompletionItemKind.keys()),
},
completionItem: {
tagSupport: {
valueSet: Array.from(lspCompletionItemTagToMonacoCompletionItemTag.keys()),
},
commitCharactersSupport: true,
deprecatedSupport: true,
preselectSupport: true,
}
}
}
}));
this._register(this._connection.capabilities.registerCapabilityHandler(capabilities.textDocumentCompletion, true, capability => {
return monaco.languages.registerCompletionItemProvider(
toMonacoLanguageSelector(capability.documentSelector),
new LspCompletionProvider(this._connection, capability),
);
}));
}
}
interface ExtendedCompletionItem extends monaco.languages.CompletionItem {
_lspItem: CompletionItem;
_translated: TextDocumentPositionParams;
_model: monaco.editor.ITextModel;
}
class LspCompletionProvider implements monaco.languages.CompletionItemProvider {
public readonly resolveCompletionItem;
constructor(
private readonly _client: LspConnection,
private readonly _capabilities: CompletionRegistrationOptions,
) {
if (_capabilities.resolveProvider) {
this.resolveCompletionItem = async (item: ExtendedCompletionItem, token: monaco.CancellationToken): Promise<ExtendedCompletionItem> => {
const resolved = await this._client.server.completionItemResolve(item._lspItem);
applyLspCompletionItemProperties(item, resolved, this._client.bridge, item._translated, item._model);
return item;
}
}
}
get triggerCharacters(): string[] | undefined {
return this._capabilities.triggerCharacters;
}
async provideCompletionItems(
model: monaco.editor.ITextModel,
position: monaco.Position,
context: monaco.languages.CompletionContext,
token: monaco.CancellationToken
): Promise<monaco.languages.CompletionList & { suggestions: ExtendedCompletionItem[] }> {
const translated = this._client.bridge.translate(model, position);
const result = await this._client.server.textDocumentCompletion({
textDocument: translated.textDocument,
position: translated.position,
context: context.triggerCharacter ? {
triggerKind: toLspCompletionTriggerKind(context.triggerKind),
triggerCharacter: context.triggerCharacter,
} : undefined,
});
if (!result) {
return { suggestions: [] };
}
const items = Array.isArray(result) ? result : result.items;
return {
suggestions: items.map<ExtendedCompletionItem>(i => {
const item: ExtendedCompletionItem = {
...convertLspToMonacoCompletionItem(
i,
this._client.bridge,
translated,
model,
position
),
_lspItem: i,
_translated: translated,
_model: model,
};
return item;
})
};
}
}
function convertLspToMonacoCompletionItem(
lspItem: CompletionItem,
bridge: ITextModelBridge,
translated: TextDocumentPositionParams,
model: monaco.editor.ITextModel,
position: monaco.Position
): monaco.languages.CompletionItem {
let insertText = lspItem.insertText || lspItem.label;
let range: monaco.IRange | monaco.languages.CompletionItemRanges | undefined = undefined;
if (lspItem.textEdit) {
if ('range' in lspItem.textEdit) {
insertText = lspItem.textEdit.newText;
range = assertTargetTextModel(bridge.translateBackRange(translated.textDocument, lspItem.textEdit.range), model).range;
} else {
insertText = lspItem.textEdit.newText;
range = {
insert: assertTargetTextModel(bridge.translateBackRange(translated.textDocument, lspItem.textEdit.insert), model).range,
replace: assertTargetTextModel(bridge.translateBackRange(translated.textDocument, lspItem.textEdit.replace), model).range,
};
}
}
if (!range) {
range = monaco.Range.fromPositions(position, position);
}
const item: monaco.languages.CompletionItem = {
label: lspItem.label,
kind: toMonacoCompletionItemKind(lspItem.kind),
insertText,
sortText: lspItem.sortText,
filterText: lspItem.filterText,
preselect: lspItem.preselect,
commitCharacters: lspItem.commitCharacters,
range: range,
};
applyLspCompletionItemProperties(item, lspItem, bridge, translated, model);
return item;
}
function applyLspCompletionItemProperties(
monacoItem: monaco.languages.CompletionItem,
lspItem: CompletionItem,
bridge: ITextModelBridge,
translated: TextDocumentPositionParams,
targetModel: monaco.editor.ITextModel
): void {
if (lspItem.detail !== undefined) {
monacoItem.detail = lspItem.detail;
}
if (lspItem.documentation !== undefined) {
monacoItem.documentation = toMonacoDocumentation(lspItem.documentation);
}
if (lspItem.insertTextFormat !== undefined) {
const insertTextRules = toMonacoInsertTextRules(lspItem.insertTextFormat);
monacoItem.insertTextRules = insertTextRules;
}
if (lspItem.tags && lspItem.tags.length > 0) {
monacoItem.tags = lspItem.tags.map(toMonacoCompletionItemTag).filter((tag): tag is monaco.languages.CompletionItemTag => tag !== undefined);
}
if (lspItem.additionalTextEdits && lspItem.additionalTextEdits.length > 0) {
monacoItem.additionalTextEdits = lspItem.additionalTextEdits.map(edit => ({
range: assertTargetTextModel(bridge.translateBackRange(translated.textDocument, edit.range), targetModel).range,
text: edit.newText,
}));
}
if (lspItem.command) {
monacoItem.command = toMonacoCommand(lspItem.command);
}
}
function toMonacoDocumentation(doc: string | MarkupContent | undefined): string | monaco.IMarkdownString | undefined {
if (!doc) return undefined;
if (typeof doc === 'string') return doc;
return {
value: doc.value,
isTrusted: true,
};
}

View file

@ -0,0 +1,60 @@
import * as monaco from 'monaco-editor-core';
import { capabilities, DeclarationRegistrationOptions } from '../../../src/types';
import { Disposable } from '../../utils';
import { LspConnection } from '../LspConnection';
import { toMonacoLanguageSelector } from './common';
import { toMonacoLocation } from "./common";
export class LspDeclarationFeature extends Disposable {
constructor(
private readonly _connection: LspConnection,
) {
super();
this._register(this._connection.capabilities.addStaticClientCapabilities({
textDocument: {
declaration: {
dynamicRegistration: true,
linkSupport: true,
}
}
}));
this._register(this._connection.capabilities.registerCapabilityHandler(capabilities.textDocumentDeclaration, true, capability => {
return monaco.languages.registerDeclarationProvider(
toMonacoLanguageSelector(capability.documentSelector),
new LspDeclarationProvider(this._connection, capability),
);
}));
}
}
class LspDeclarationProvider implements monaco.languages.DeclarationProvider {
constructor(
private readonly _client: LspConnection,
private readonly _capabilities: DeclarationRegistrationOptions,
) { }
async provideDeclaration(
model: monaco.editor.ITextModel,
position: monaco.Position,
token: monaco.CancellationToken
): Promise<monaco.languages.Definition | monaco.languages.LocationLink[] | null> {
const translated = this._client.bridge.translate(model, position);
const result = await this._client.server.textDocumentDeclaration({
textDocument: translated.textDocument,
position: translated.position,
});
if (!result) {
return null;
}
if (Array.isArray(result)) {
return result.map(loc => toMonacoLocation(loc, this._client));
}
return toMonacoLocation(result, this._client);
}
}

View file

@ -0,0 +1,60 @@
import * as monaco from 'monaco-editor-core';
import { capabilities, DefinitionRegistrationOptions } from '../../../src/types';
import { Disposable } from '../../utils';
import { LspConnection } from '../LspConnection';
import { toMonacoLanguageSelector } from './common';
import { toMonacoLocation } from "./common";
export class LspDefinitionFeature extends Disposable {
constructor(
private readonly _connection: LspConnection,
) {
super();
this._register(this._connection.capabilities.addStaticClientCapabilities({
textDocument: {
definition: {
dynamicRegistration: true,
linkSupport: true,
}
}
}));
this._register(this._connection.capabilities.registerCapabilityHandler(capabilities.textDocumentDefinition, true, capability => {
return monaco.languages.registerDefinitionProvider(
toMonacoLanguageSelector(capability.documentSelector),
new LspDefinitionProvider(this._connection, capability),
);
}));
}
}
class LspDefinitionProvider implements monaco.languages.DefinitionProvider {
constructor(
private readonly _client: LspConnection,
private readonly _capabilities: DefinitionRegistrationOptions,
) { }
async provideDefinition(
model: monaco.editor.ITextModel,
position: monaco.Position,
token: monaco.CancellationToken
): Promise<monaco.languages.Definition | monaco.languages.LocationLink[] | null> {
const translated = this._client.bridge.translate(model, position);
const result = await this._client.server.textDocumentDefinition({
textDocument: translated.textDocument,
position: translated.position,
});
if (!result) {
return null;
}
if (Array.isArray(result)) {
return result.map(loc => toMonacoLocation(loc, this._client));
}
return toMonacoLocation(result, this._client);
}
}

View file

@ -0,0 +1,208 @@
import * as monaco from 'monaco-editor-core';
import { api, capabilities, Diagnostic, DiagnosticRegistrationOptions, DocumentDiagnosticReport, PublishDiagnosticsParams } from '../../../src/types';
import { Disposable, DisposableStore } from '../../utils';
import { LspConnection } from '../LspConnection';
import { lspDiagnosticTagToMonacoMarkerTag, matchesDocumentSelector, toDiagnosticMarker } from './common';
export class LspDiagnosticsFeature extends Disposable {
private readonly _diagnosticsMarkerOwner = 'lsp';
private readonly _pullDiagnosticProviders = new Map<monaco.editor.ITextModel, ModelDiagnosticProvider>();
constructor(
private readonly _connection: LspConnection,
) {
super();
this._register(this._connection.capabilities.addStaticClientCapabilities({
textDocument: {
publishDiagnostics: {
relatedInformation: true,
tagSupport: {
valueSet: [...lspDiagnosticTagToMonacoMarkerTag.keys()],
},
versionSupport: true,
codeDescriptionSupport: true,
dataSupport: true,
},
diagnostic: {
dynamicRegistration: true,
relatedDocumentSupport: true,
}
}
}));
debugger;
this._register(this._connection.connection.registerNotificationHandler(
api.client.textDocumentPublishDiagnostics,
(params) => this._handlePublishDiagnostics(params)
));
this._register(this._connection.capabilities.registerCapabilityHandler(
capabilities.textDocumentDiagnostic,
true,
(capability) => {
const disposables = new DisposableStore();
for (const model of monaco.editor.getModels()) {
this._addPullDiagnosticProvider(model, capability, disposables);
}
disposables.add(monaco.editor.onDidCreateModel(model => {
this._addPullDiagnosticProvider(model, capability, disposables);
}));
return disposables;
}
));
}
private _addPullDiagnosticProvider(
model: monaco.editor.ITextModel,
capability: DiagnosticRegistrationOptions,
disposables: DisposableStore
): void {
// Check if model matches the document selector
const languageId = model.getLanguageId();
if (!matchesDocumentSelector(model, capability.documentSelector)) {
return;
}
const provider = new ModelDiagnosticProvider(
model,
this._connection,
this._diagnosticsMarkerOwner,
capability
);
this._pullDiagnosticProviders.set(model, provider);
disposables.add(provider);
disposables.add(model.onWillDispose(() => {
this._pullDiagnosticProviders.delete(model);
}));
}
private _handlePublishDiagnostics(params: PublishDiagnosticsParams): void {
const uri = params.uri;
try {
const translated = this._connection.bridge.translateBack({ uri }, { line: 0, character: 0 });
const model = translated.textModel;
if (!model || model.isDisposed()) {
return;
}
const markers = params.diagnostics.map(diagnostic =>
toDiagnosticMarker(diagnostic)
);
monaco.editor.setModelMarkers(model, this._diagnosticsMarkerOwner, markers);
} catch (error) {
// Model not found or already disposed - this is normal when files are closed
console.debug(`Could not set diagnostics for ${uri}:`, error);
}
}
}
/**
* Manages pull diagnostics for a single text model
*/
class ModelDiagnosticProvider extends Disposable {
private _updateHandle: number | undefined;
private _previousResultId: string | undefined;
constructor(
private readonly _model: monaco.editor.ITextModel,
private readonly _connection: LspConnection,
private readonly _markerOwner: string,
private readonly _capability: DiagnosticRegistrationOptions,
) {
super();
this._register(this._model.onDidChangeContent(() => {
this._scheduleDiagnosticUpdate();
}));
this._scheduleDiagnosticUpdate();
}
private _scheduleDiagnosticUpdate(): void {
if (this._updateHandle !== undefined) {
clearTimeout(this._updateHandle);
}
this._updateHandle = window.setTimeout(() => {
this._updateHandle = undefined;
this._requestDiagnostics();
}, 500);
}
private async _requestDiagnostics(): Promise<void> {
if (this._model.isDisposed()) {
return;
}
try {
const translated = this._connection.bridge.translate(this._model, new monaco.Position(1, 1));
const result = await this._connection.server.textDocumentDiagnostic({
textDocument: translated.textDocument,
identifier: this._capability.identifier,
previousResultId: this._previousResultId,
});
if (this._model.isDisposed()) {
return;
}
this._handleDiagnosticReport(result);
} catch (error) {
console.error('Error requesting diagnostics:', error);
}
}
private _handleDiagnosticReport(report: DocumentDiagnosticReport): void {
if (report.kind === 'full') {
// Full diagnostic report
this._previousResultId = report.resultId;
const markers = report.items.map(diagnostic => toDiagnosticMarker(diagnostic));
monaco.editor.setModelMarkers(this._model, this._markerOwner, markers);
// Handle related documents if present
if ('relatedDocuments' in report && report.relatedDocuments) {
this._handleRelatedDocuments(report.relatedDocuments);
}
} else if (report.kind === 'unchanged') {
// Unchanged report - diagnostics are still valid
this._previousResultId = report.resultId;
// No need to update markers
}
}
private _handleRelatedDocuments(relatedDocuments: { [key: string]: any }): void {
for (const [uri, report] of Object.entries(relatedDocuments)) {
try {
const translated = this._connection.bridge.translateBack({ uri }, { line: 0, character: 0 });
const model = translated.textModel;
if (!model || model.isDisposed()) {
continue;
}
if (report.kind === 'full') {
const markers = report.items.map((diagnostic: Diagnostic) => toDiagnosticMarker(diagnostic));
monaco.editor.setModelMarkers(model, this._markerOwner, markers);
}
} catch (error) {
// Model not found - this is normal
console.debug(`Could not set related diagnostics for ${uri}:`, error);
}
}
}
override dispose(): void {
if (this._updateHandle !== undefined) {
clearTimeout(this._updateHandle);
this._updateHandle = undefined;
}
super.dispose();
}
}

View file

@ -0,0 +1,58 @@
import * as monaco from 'monaco-editor-core';
import { capabilities, DocumentHighlightRegistrationOptions } from '../../../src/types';
import { Disposable } from '../../utils';
import { LspConnection } from '../LspConnection';
import { toMonacoLanguageSelector } from './common';
import { toMonacoDocumentHighlightKind } from './common';
export class LspDocumentHighlightFeature extends Disposable {
constructor(
private readonly _connection: LspConnection,
) {
super();
this._register(this._connection.capabilities.addStaticClientCapabilities({
textDocument: {
documentHighlight: {
dynamicRegistration: true,
}
}
}));
this._register(this._connection.capabilities.registerCapabilityHandler(capabilities.textDocumentDocumentHighlight, true, capability => {
return monaco.languages.registerDocumentHighlightProvider(
toMonacoLanguageSelector(capability.documentSelector),
new LspDocumentHighlightProvider(this._connection, capability),
);
}));
}
}
class LspDocumentHighlightProvider implements monaco.languages.DocumentHighlightProvider {
constructor(
private readonly _client: LspConnection,
private readonly _capabilities: DocumentHighlightRegistrationOptions,
) { }
async provideDocumentHighlights(
model: monaco.editor.ITextModel,
position: monaco.Position,
token: monaco.CancellationToken
): Promise<monaco.languages.DocumentHighlight[] | null> {
const translated = this._client.bridge.translate(model, position);
const result = await this._client.server.textDocumentDocumentHighlight({
textDocument: translated.textDocument,
position: translated.position,
});
if (!result) {
return null;
}
return result.map(highlight => ({
range: this._client.bridge.translateBackRange(translated.textDocument, highlight.range).range,
kind: toMonacoDocumentHighlightKind(highlight.kind),
}));
}
}

View file

@ -0,0 +1,71 @@
import * as monaco from 'monaco-editor-core';
import { capabilities, DocumentLinkRegistrationOptions } from '../../../src/types';
import { Disposable } from '../../utils';
import { LspConnection } from '../LspConnection';
import { toMonacoLanguageSelector } from './common';
export class LspDocumentLinkFeature extends Disposable {
constructor(
private readonly _connection: LspConnection,
) {
super();
this._register(this._connection.capabilities.addStaticClientCapabilities({
textDocument: {
documentLink: {
dynamicRegistration: true,
tooltipSupport: true,
}
}
}));
this._register(this._connection.capabilities.registerCapabilityHandler(capabilities.textDocumentDocumentLink, true, capability => {
return monaco.languages.registerLinkProvider(
toMonacoLanguageSelector(capability.documentSelector),
new LspDocumentLinkProvider(this._connection, capability),
);
}));
}
}
class LspDocumentLinkProvider implements monaco.languages.LinkProvider {
constructor(
private readonly _client: LspConnection,
private readonly _capabilities: DocumentLinkRegistrationOptions,
) { }
async provideLinks(
model: monaco.editor.ITextModel,
token: monaco.CancellationToken
): Promise<monaco.languages.ILinksList | null> {
const translated = this._client.bridge.translate(model, new monaco.Position(1, 1));
const result = await this._client.server.textDocumentDocumentLink({
textDocument: translated.textDocument,
});
if (!result) {
return null;
}
return {
links: result.map(link => ({
range: this._client.bridge.translateBackRange(translated.textDocument, link.range).range,
url: link.target,
tooltip: link.tooltip,
})),
};
}
async resolveLink(
link: monaco.languages.ILink,
token: monaco.CancellationToken
): Promise<monaco.languages.ILink> {
if (!this._capabilities.resolveProvider) {
return link;
}
// TODO: Implement resolve
return link;
}
}

View file

@ -0,0 +1,101 @@
import * as monaco from 'monaco-editor-core';
import { capabilities, DocumentSymbolRegistrationOptions, DocumentSymbol, SymbolInformation, SymbolTag } from '../../../src/types';
import { Disposable } from '../../utils';
import { LspConnection } from '../LspConnection';
import { toMonacoLanguageSelector } from './common';
import { lspSymbolKindToMonacoSymbolKind, toMonacoSymbolKind, toMonacoSymbolTag } from './common';
export class LspDocumentSymbolFeature extends Disposable {
constructor(
private readonly _connection: LspConnection,
) {
super();
this._register(this._connection.capabilities.addStaticClientCapabilities({
textDocument: {
documentSymbol: {
dynamicRegistration: true,
hierarchicalDocumentSymbolSupport: true,
symbolKind: {
valueSet: Array.from(lspSymbolKindToMonacoSymbolKind.keys()),
},
tagSupport: {
valueSet: [SymbolTag.Deprecated],
},
}
}
}));
this._register(this._connection.capabilities.registerCapabilityHandler(capabilities.textDocumentDocumentSymbol, true, capability => {
return monaco.languages.registerDocumentSymbolProvider(
toMonacoLanguageSelector(capability.documentSelector),
new LspDocumentSymbolProvider(this._connection, capability),
);
}));
}
}
class LspDocumentSymbolProvider implements monaco.languages.DocumentSymbolProvider {
constructor(
private readonly _client: LspConnection,
private readonly _capabilities: DocumentSymbolRegistrationOptions,
) { }
async provideDocumentSymbols(
model: monaco.editor.ITextModel,
token: monaco.CancellationToken
): Promise<monaco.languages.DocumentSymbol[] | null> {
const translated = this._client.bridge.translate(model, new monaco.Position(1, 1));
const result = await this._client.server.textDocumentDocumentSymbol({
textDocument: translated.textDocument,
});
if (!result) {
return null;
}
if (Array.isArray(result) && result.length > 0) {
if ('location' in result[0]) {
// SymbolInformation[]
return (result as SymbolInformation[]).map(symbol => toMonacoSymbolInformation(symbol, this._client));
} else {
// DocumentSymbol[]
return (result as DocumentSymbol[]).map(symbol => toMonacoDocumentSymbol(symbol, this._client, translated.textDocument));
}
}
return [];
}
}
function toMonacoDocumentSymbol(
symbol: DocumentSymbol,
client: LspConnection,
textDocument: { uri: string }
): monaco.languages.DocumentSymbol {
return {
name: symbol.name,
detail: symbol.detail || '',
kind: toMonacoSymbolKind(symbol.kind),
tags: symbol.tags?.map(tag => toMonacoSymbolTag(tag)).filter((t): t is monaco.languages.SymbolTag => t !== undefined) || [],
range: client.bridge.translateBackRange(textDocument, symbol.range).range,
selectionRange: client.bridge.translateBackRange(textDocument, symbol.selectionRange).range,
children: symbol.children?.map(child => toMonacoDocumentSymbol(child, client, textDocument)) || [],
};
}
function toMonacoSymbolInformation(
symbol: SymbolInformation,
client: LspConnection
): monaco.languages.DocumentSymbol {
return {
name: symbol.name,
detail: '',
kind: toMonacoSymbolKind(symbol.kind),
tags: symbol.tags?.map(tag => toMonacoSymbolTag(tag)).filter((t): t is monaco.languages.SymbolTag => t !== undefined) || [],
range: client.bridge.translateBackRange({ uri: symbol.location.uri }, symbol.location.range).range,
selectionRange: client.bridge.translateBackRange({ uri: symbol.location.uri }, symbol.location.range).range,
children: [],
};
}

View file

@ -0,0 +1,63 @@
import * as monaco from 'monaco-editor-core';
import { capabilities, FoldingRangeRegistrationOptions, FoldingRangeKind } from '../../../src/types';
import { Disposable } from '../../utils';
import { LspConnection } from '../LspConnection';
import { toMonacoLanguageSelector } from './common';
import { toMonacoFoldingRangeKind } from './common';
export class LspFoldingRangeFeature extends Disposable {
constructor(
private readonly _connection: LspConnection,
) {
super();
this._register(this._connection.capabilities.addStaticClientCapabilities({
textDocument: {
foldingRange: {
dynamicRegistration: true,
rangeLimit: 5000,
lineFoldingOnly: false,
foldingRangeKind: {
valueSet: [FoldingRangeKind.Comment, FoldingRangeKind.Imports, FoldingRangeKind.Region],
},
}
}
}));
this._register(this._connection.capabilities.registerCapabilityHandler(capabilities.textDocumentFoldingRange, true, capability => {
return monaco.languages.registerFoldingRangeProvider(
toMonacoLanguageSelector(capability.documentSelector),
new LspFoldingRangeProvider(this._connection, capability),
);
}));
}
}
class LspFoldingRangeProvider implements monaco.languages.FoldingRangeProvider {
constructor(
private readonly _client: LspConnection,
private readonly _capabilities: FoldingRangeRegistrationOptions,
) { }
async provideFoldingRanges(
model: monaco.editor.ITextModel,
context: monaco.languages.FoldingContext,
token: monaco.CancellationToken
): Promise<monaco.languages.FoldingRange[] | null> {
const translated = this._client.bridge.translate(model, new monaco.Position(1, 1));
const result = await this._client.server.textDocumentFoldingRange({
textDocument: translated.textDocument,
});
if (!result) {
return null;
}
return result.map(range => ({
start: range.startLine + 1,
end: range.endLine + 1,
kind: toMonacoFoldingRangeKind(range.kind),
}));
}
}

View file

@ -0,0 +1,60 @@
import * as monaco from 'monaco-editor-core';
import { capabilities, DocumentFormattingRegistrationOptions } from '../../../src/types';
import { Disposable } from '../../utils';
import { LspConnection } from '../LspConnection';
import { toMonacoLanguageSelector } from './common';
export class LspFormattingFeature extends Disposable {
constructor(
private readonly _connection: LspConnection,
) {
super();
this._register(this._connection.capabilities.addStaticClientCapabilities({
textDocument: {
formatting: {
dynamicRegistration: true,
}
}
}));
this._register(this._connection.capabilities.registerCapabilityHandler(capabilities.textDocumentFormatting, true, capability => {
return monaco.languages.registerDocumentFormattingEditProvider(
toMonacoLanguageSelector(capability.documentSelector),
new LspDocumentFormattingProvider(this._connection, capability),
);
}));
}
}
class LspDocumentFormattingProvider implements monaco.languages.DocumentFormattingEditProvider {
constructor(
private readonly _client: LspConnection,
private readonly _capabilities: DocumentFormattingRegistrationOptions,
) { }
async provideDocumentFormattingEdits(
model: monaco.editor.ITextModel,
options: monaco.languages.FormattingOptions,
token: monaco.CancellationToken
): Promise<monaco.languages.TextEdit[] | null> {
const translated = this._client.bridge.translate(model, new monaco.Position(1, 1));
const result = await this._client.server.textDocumentFormatting({
textDocument: translated.textDocument,
options: {
tabSize: options.tabSize,
insertSpaces: options.insertSpaces,
},
});
if (!result) {
return null;
}
return result.map(edit => ({
range: this._client.bridge.translateBackRange(translated.textDocument, edit.range).range,
text: edit.newText,
}));
}
}

View file

@ -0,0 +1,79 @@
import * as monaco from 'monaco-editor-core';
import { capabilities, HoverRegistrationOptions, MarkupContent, MarkedString, MarkupKind } from '../../../src/types';
import { Disposable } from '../../utils';
import { LspConnection } from '../LspConnection';
import { toMonacoLanguageSelector } from './common';
export class LspHoverFeature extends Disposable {
constructor(
private readonly _connection: LspConnection,
) {
super();
this._register(this._connection.capabilities.addStaticClientCapabilities({
textDocument: {
hover: {
dynamicRegistration: true,
contentFormat: [MarkupKind.Markdown, MarkupKind.PlainText],
}
}
}));
this._register(this._connection.capabilities.registerCapabilityHandler(capabilities.textDocumentHover, true, capability => {
return monaco.languages.registerHoverProvider(
toMonacoLanguageSelector(capability.documentSelector),
new LspHoverProvider(this._connection, capability),
);
}));
}
}
class LspHoverProvider implements monaco.languages.HoverProvider {
constructor(
private readonly _client: LspConnection,
private readonly _capabilities: HoverRegistrationOptions,
) { }
async provideHover(
model: monaco.editor.ITextModel,
position: monaco.Position,
token: monaco.CancellationToken
): Promise<monaco.languages.Hover | null> {
const translated = this._client.bridge.translate(model, position);
const result = await this._client.server.textDocumentHover({
textDocument: translated.textDocument,
position: translated.position,
});
if (!result || !result.contents) {
return null;
}
return {
contents: toMonacoMarkdownString(result.contents),
range: result.range ? this._client.bridge.translateBackRange(translated.textDocument, result.range).range : undefined,
};
}
}
function toMonacoMarkdownString(
contents: MarkupContent | MarkedString | MarkedString[]
): monaco.IMarkdownString[] {
if (Array.isArray(contents)) {
return contents.map(c => toSingleMarkdownString(c));
}
return [toSingleMarkdownString(contents)];
}
function toSingleMarkdownString(content: MarkupContent | MarkedString): monaco.IMarkdownString {
if (typeof content === 'string') {
return { value: content, isTrusted: true };
}
if ('kind' in content) {
// MarkupContent
return { value: content.value, isTrusted: true };
}
// MarkedString with language
return { value: `\`\`\`${content.language}\n${content.value}\n\`\`\``, isTrusted: true };
}

View file

@ -0,0 +1,60 @@
import * as monaco from 'monaco-editor-core';
import { capabilities, ImplementationRegistrationOptions } from '../../../src/types';
import { Disposable } from '../../utils';
import { LspConnection } from '../LspConnection';
import { toMonacoLanguageSelector } from './common';
import { toMonacoLocation } from "./common";
export class LspImplementationFeature extends Disposable {
constructor(
private readonly _connection: LspConnection,
) {
super();
this._register(this._connection.capabilities.addStaticClientCapabilities({
textDocument: {
implementation: {
dynamicRegistration: true,
linkSupport: true,
}
}
}));
this._register(this._connection.capabilities.registerCapabilityHandler(capabilities.textDocumentImplementation, true, capability => {
return monaco.languages.registerImplementationProvider(
toMonacoLanguageSelector(capability.documentSelector),
new LspImplementationProvider(this._connection, capability),
);
}));
}
}
class LspImplementationProvider implements monaco.languages.ImplementationProvider {
constructor(
private readonly _client: LspConnection,
private readonly _capabilities: ImplementationRegistrationOptions,
) { }
async provideImplementation(
model: monaco.editor.ITextModel,
position: monaco.Position,
token: monaco.CancellationToken
): Promise<monaco.languages.Definition | monaco.languages.LocationLink[] | null> {
const translated = this._client.bridge.translate(model, position);
const result = await this._client.server.textDocumentImplementation({
textDocument: translated.textDocument,
position: translated.position,
});
if (!result) {
return null;
}
if (Array.isArray(result)) {
return result.map(loc => toMonacoLocation(loc, this._client));
}
return toMonacoLocation(result, this._client);
}
}

View file

@ -0,0 +1,212 @@
import * as monaco from 'monaco-editor-core';
import { capabilities, InlayHintRegistrationOptions, InlayHint, MarkupContent, api } from '../../../src/types';
import { Disposable } from '../../utils';
import { LspConnection } from '../LspConnection';
import { toMonacoLanguageSelector } from './common';
import { assertTargetTextModel } from '../ITextModelBridge';
import { toMonacoCommand, toMonacoInlayHintKind } from './common';
export class LspInlayHintsFeature extends Disposable {
private readonly _providers = new Set<LspInlayHintsProvider>();
constructor(
private readonly _connection: LspConnection,
) {
super();
this._register(this._connection.capabilities.addStaticClientCapabilities({
textDocument: {
inlayHint: {
dynamicRegistration: true,
resolveSupport: {
properties: ['tooltip', 'textEdits', 'label.tooltip', 'label.location', 'label.command'],
},
}
},
workspace: {
inlayHint: {
refreshSupport: true,
}
}
}));
this._register(this._connection.connection.registerRequestHandler(api.client.workspaceInlayHintRefresh, async () => {
// Fire onDidChangeInlayHints for all providers
for (const provider of this._providers) {
provider.refresh();
}
return { ok: null };
}));
this._register(this._connection.capabilities.registerCapabilityHandler(capabilities.textDocumentInlayHint, true, capability => {
const provider = new LspInlayHintsProvider(this._connection, capability);
this._providers.add(provider);
const disposable = monaco.languages.registerInlayHintsProvider(
toMonacoLanguageSelector(capability.documentSelector),
provider,
);
return {
dispose: () => {
this._providers.delete(provider);
disposable.dispose();
}
};
}));
}
}
interface ExtendedInlayHint extends monaco.languages.InlayHint {
_lspInlayHint: InlayHint;
_targetUri: string;
}
class LspInlayHintsProvider implements monaco.languages.InlayHintsProvider {
private readonly _onDidChangeInlayHints = new monaco.Emitter<void>();
public readonly onDidChangeInlayHints = this._onDidChangeInlayHints.event;
public readonly resolveInlayHint;
constructor(
private readonly _client: LspConnection,
private readonly _capabilities: InlayHintRegistrationOptions,
) {
if (_capabilities.resolveProvider) {
this.resolveInlayHint = async (hint: ExtendedInlayHint, token: monaco.CancellationToken): Promise<monaco.languages.InlayHint> => {
const resolved = await this._client.server.inlayHintResolve(hint._lspInlayHint);
if (resolved.tooltip) {
hint.tooltip = toMonacoTooltip(resolved.tooltip);
}
if (resolved.label !== hint._lspInlayHint.label) {
hint.label = toLspInlayHintLabel(resolved.label);
}
if (resolved.textEdits) {
hint.textEdits = resolved.textEdits.map(edit => {
const translated = this._client.bridge.translateBackRange(
{ uri: hint._targetUri },
edit.range
);
return {
range: translated.range,
text: edit.newText,
};
});
}
return hint;
};
}
}
public refresh(): void {
this._onDidChangeInlayHints.fire();
}
async provideInlayHints(
model: monaco.editor.ITextModel,
range: monaco.Range,
token: monaco.CancellationToken
): Promise<monaco.languages.InlayHintList | null> {
const translated = this._client.bridge.translate(model, range.getStartPosition());
const result = await retryOnContentModified(async () =>
await this._client.server.textDocumentInlayHint({
textDocument: translated.textDocument,
range: this._client.bridge.translateRange(model, range),
})
);
if (!result) {
return null;
}
return {
hints: result.map(hint => {
const monacoHint: ExtendedInlayHint = {
label: toLspInlayHintLabel(hint.label),
position: assertTargetTextModel(
this._client.bridge.translateBack(translated.textDocument, hint.position),
model
).position,
kind: toMonacoInlayHintKind(hint.kind),
tooltip: toMonacoTooltip(hint.tooltip),
paddingLeft: hint.paddingLeft,
paddingRight: hint.paddingRight,
textEdits: hint.textEdits?.map(edit => ({
range: assertTargetTextModel(
this._client.bridge.translateBackRange(translated.textDocument, edit.range),
model
).range,
text: edit.newText,
})),
_lspInlayHint: hint,
_targetUri: translated.textDocument.uri,
};
return monacoHint;
}),
dispose: () => { },
};
}
}
async function retryOnContentModified<T>(cb: () => Promise<T>): Promise<T> {
const nRetries = 3;
for (let triesLeft = nRetries; ; triesLeft--) {
try {
return await cb();
} catch (e: any) {
if (e.message === 'content modified' && triesLeft > 0) {
continue;
}
throw e;
}
}
}
function toLspInlayHintLabel(label: string | any[]): string | monaco.languages.InlayHintLabelPart[] {
if (typeof label === 'string') {
return label;
}
return label.map(part => {
const monacoLabelPart: monaco.languages.InlayHintLabelPart = {
label: part.value,
tooltip: toMonacoTooltip(part.tooltip),
command: toMonacoCommand(part.command),
};
if (part.location) {
monacoLabelPart.location = {
uri: monaco.Uri.parse(part.location.uri),
range: new monaco.Range(
part.location.range.start.line + 1,
part.location.range.start.character + 1,
part.location.range.end.line + 1,
part.location.range.end.character + 1
),
};
}
return monacoLabelPart;
});
}
function toMonacoTooltip(tooltip: string | MarkupContent | undefined): string | monaco.IMarkdownString | undefined {
if (!tooltip) {
return undefined;
}
if (typeof tooltip === 'string') {
return tooltip;
}
return {
value: tooltip.value,
isTrusted: true,
};
}

View file

@ -0,0 +1,71 @@
import * as monaco from 'monaco-editor-core';
import { capabilities, DocumentOnTypeFormattingRegistrationOptions } from '../../../src/types';
import { Disposable } from '../../utils';
import { LspConnection } from '../LspConnection';
import { toMonacoLanguageSelector } from './common';
export class LspOnTypeFormattingFeature extends Disposable {
constructor(
private readonly _connection: LspConnection,
) {
super();
this._register(this._connection.capabilities.addStaticClientCapabilities({
textDocument: {
onTypeFormatting: {
dynamicRegistration: true,
}
}
}));
this._register(this._connection.capabilities.registerCapabilityHandler(capabilities.textDocumentOnTypeFormatting, true, capability => {
return monaco.languages.registerOnTypeFormattingEditProvider(
toMonacoLanguageSelector(capability.documentSelector),
new LspOnTypeFormattingProvider(this._connection, capability),
);
}));
}
}
class LspOnTypeFormattingProvider implements monaco.languages.OnTypeFormattingEditProvider {
public readonly autoFormatTriggerCharacters: string[];
constructor(
private readonly _client: LspConnection,
private readonly _capabilities: DocumentOnTypeFormattingRegistrationOptions,
) {
this.autoFormatTriggerCharacters = [
_capabilities.firstTriggerCharacter,
...(_capabilities.moreTriggerCharacter || [])
];
}
async provideOnTypeFormattingEdits(
model: monaco.editor.ITextModel,
position: monaco.Position,
ch: string,
options: monaco.languages.FormattingOptions,
token: monaco.CancellationToken
): Promise<monaco.languages.TextEdit[] | null> {
const translated = this._client.bridge.translate(model, position);
const result = await this._client.server.textDocumentOnTypeFormatting({
textDocument: translated.textDocument,
position: translated.position,
ch,
options: {
tabSize: options.tabSize,
insertSpaces: options.insertSpaces,
},
});
if (!result) {
return null;
}
return result.map(edit => ({
range: this._client.bridge.translateBackRange(translated.textDocument, edit.range).range,
text: edit.newText,
}));
}
}

View file

@ -0,0 +1,62 @@
import * as monaco from 'monaco-editor-core';
import { capabilities, DocumentRangeFormattingRegistrationOptions } from '../../../src/types';
import { Disposable } from '../../utils';
import { LspConnection } from '../LspConnection';
import { toMonacoLanguageSelector } from './common';
export class LspRangeFormattingFeature extends Disposable {
constructor(
private readonly _connection: LspConnection,
) {
super();
this._register(this._connection.capabilities.addStaticClientCapabilities({
textDocument: {
rangeFormatting: {
dynamicRegistration: true,
}
}
}));
this._register(this._connection.capabilities.registerCapabilityHandler(capabilities.textDocumentRangeFormatting, true, capability => {
return monaco.languages.registerDocumentRangeFormattingEditProvider(
toMonacoLanguageSelector(capability.documentSelector),
new LspDocumentRangeFormattingProvider(this._connection, capability),
);
}));
}
}
class LspDocumentRangeFormattingProvider implements monaco.languages.DocumentRangeFormattingEditProvider {
constructor(
private readonly _client: LspConnection,
private readonly _capabilities: DocumentRangeFormattingRegistrationOptions,
) { }
async provideDocumentRangeFormattingEdits(
model: monaco.editor.ITextModel,
range: monaco.Range,
options: monaco.languages.FormattingOptions,
token: monaco.CancellationToken
): Promise<monaco.languages.TextEdit[] | null> {
const translated = this._client.bridge.translate(model, range.getStartPosition());
const result = await this._client.server.textDocumentRangeFormatting({
textDocument: translated.textDocument,
range: this._client.bridge.translateRange(model, range),
options: {
tabSize: options.tabSize,
insertSpaces: options.insertSpaces,
},
});
if (!result) {
return null;
}
return result.map(edit => ({
range: this._client.bridge.translateBackRange(translated.textDocument, edit.range).range,
text: edit.newText,
}));
}
}

Some files were not shown because too many files have changed in this diff Show more