Commit graph

3544 commits

Author SHA1 Message Date
Claude
9b018b7916
Add manual test page for json-interpolation language
- Add json-interpolation to dev-setup.js module loading
- Create standalone test page that works with CDN Monaco
- Test page demonstrates syntax highlighting, completions,
  hover info, comments, and trailing comma support
2025-12-09 20:57:21 +00:00
Claude
8ca12ee61a
Simplify JS worker integration using tokenization detection
Remove virtual model approach and use Monaco's built-in tokenization
to detect when cursor is in embedded JavaScript region. With
nextEmbedded, Monaco automatically syncs model content to the JS
worker, so we can call the worker directly on the model's URI
instead of creating a separate virtual model.
2025-12-09 20:48:51 +00:00
Claude
a96c488593
Use JavaScript worker for interpolation IntelliSense
Inside ${...} interpolations, the package now uses Monaco's JavaScript
language service worker for full IntelliSense:

- getCompletionsAtPosition: Property access, method completions
- getQuickInfoAtPosition: Type info and documentation on hover
- getSignatureHelpItems: Function parameter hints

This allows users to configure the context using setExtraLibs:

```typescript
monaco.languages.typescript.javascriptDefaults.setExtraLibs([{
  content: `
    declare const config: { debug: boolean; port: number };
    declare const env: string;
  `,
  filePath: 'context.d.ts'
}]);
```

Then typing `config.` inside ${...} will show `debug` and `port` completions
with proper types.
2025-12-09 20:29:58 +00:00
Claude
59eafca1f2
Integrate JSON language service worker for full functionality
The standalone package now taps into Monaco's built-in JSON language
service via monaco.languages.json.getWorker() to provide:

- Schema-aware completions (doComplete)
- JSON hover information (doHover)
- Full validation with interpolation filtering (doValidation)
- Document formatting (format)
- Document symbols/outline (findDocumentSymbols)
- Folding ranges (getFoldingRanges)
- Selection ranges (getSelectionRanges)
- Color provider (findDocumentColors, getColorPresentations)

Inside ${...} interpolations, the custom variable provider takes over
for completions and hover. All JSON diagnostics that overlap with
interpolations are automatically filtered out.
2025-12-09 20:11:36 +00:00
Claude
6039262df7
Add standalone monaco-json-interpolation package
Extract the JSON interpolation language as a standalone npm package that
works with the official Monaco Editor as a peer dependency.

Features:
- Zero dependencies on monaco-editor internals
- Simple registration API: register() and getDefaults()
- Variable context for custom completions and hover
- Monarch tokenizer with nextEmbedded for JavaScript
- TypeScript types included
- ESM and CommonJS builds via tsup

Usage:
```typescript
import { register, getDefaults } from 'monaco-json-interpolation';

register();
getDefaults().setVariableContext({
  getVariables: () => [{ name: 'env', value: 'prod' }]
});
```
2025-12-09 19:58:21 +00:00
Claude
4540e05e5a
Add JSON with interpolation language support
Introduce a new 'json-interpolation' language that extends JSON with
${...} variable interpolation syntax. Features include:

- Monarch tokenizer with nextEmbedded for JavaScript inside ${...}
- Variable context API for custom completion and hover providers
- Diagnostics filtering to ignore errors inside interpolations
- Full JSON language service integration (formatting, symbols, etc.)
- Support for JSONC-style comments and trailing commas

Usage:
```typescript
monaco.languages.jsonInterpolation.jsonInterpolationDefaults.setVariableContext({
  getVariables: () => [
    { name: 'env', type: 'string', value: 'production' }
  ]
});
```
2025-12-09 19:46:12 +00: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