mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 18:32:56 +01:00
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' }
]
});
```
|
||
|---|---|---|
| .. | ||
| amd | ||
| esm | ||
| npm | ||
| build-monaco-editor.ts | ||
| check-samples.ts | ||
| fs.ts | ||
| importTypescript.ts | ||
| postinstall.ts | ||
| releaseMetadata.ts | ||
| shared.mjs | ||
| simpleserver.ts | ||
| tsconfig.json | ||
| utils.ts | ||