Commit graph

60 commits

Author SHA1 Message Date
Remco Haszing
45d8d1ae57
Update dependencies
This adds support for marker tags. This is used for unused anchors.
2022-02-15 11:24:56 +01:00
Remco Haszing
e28f7fec9f
Update dependencies
Most notably this updates yaml-language-server to 1.3.0.
2022-01-17 17:01:12 +01:00
Dominik Seweryn
0518312cac fix monaco-editor-webpack-plugin
after library output change
2021-11-24 18:37:48 +01:00
Remco Haszing
ef35d1be2b
Merge branch 'main' into flatten-output-paths 2021-11-23 15:10:34 +01:00
Remco Haszing
a959e028ce
Merge pull request #140 from remcohaszing/esm-import-extensions
Use extensions for directly importing files
2021-11-23 15:07:08 +01:00
Remco Haszing
38e61fc7be
Remove unused eslint-disable comment 2021-11-23 15:00:08 +01:00
Remco Haszing
af88581fbb
Merge pull request #141 from remcohaszing/support-document-symbol-detail
Add support for document symbol details
2021-11-23 14:51:32 +01:00
Remco Haszing
934eb8d1e3
Fix ESLint issues 2021-11-20 12:23:11 +01:00
Remco Haszing
3a873e083c
Add support for document symbol details
This is set to the raw value for primitives by the YAML language service.

The demo now uses this value as the title attribute on the breadcrumbs.

Closes #137
2021-11-20 12:21:51 +01:00
Remco Haszing
ccfbbbe9d8
Use extensions for directly importing files
For better ESM compatibility, this adds a file extension for nested
package files.

This also removes the nested special handling of
`vscode-languageserver-types` and `vscode-languageserver-document`
imports. This is unnecessary, because they use the `"module"` field in
`package.json`.
2021-11-20 12:05:44 +01:00
Remco Haszing
90d895a214
Flatten output paths
`lib/esm/monaco.contribution.js` → `index.js`
`lib/esm/yaml.worker.js` → `yaml.worker.js`

Closes #132
2021-11-15 18:33:26 +01:00
Remco Haszing
72fc069c6d
Enhance contribution instructions
For both the project and all exmaples the prerequisites, setup steps,
and running instructions have been added.
2021-11-15 18:09:40 +01:00
Remco Haszing
56372c1c2a
Merge branch 'main' into update-dependencies 2021-11-15 17:31:25 +01:00
Remco Haszing
2a80dc8913
Merge branch 'main' into vite-example 2021-11-15 17:09:35 +01:00
Remco Haszing
e0d2f4ade6
Merge branch 'main' into vite-example 2021-11-15 17:05:21 +01:00
Dominik Seweryn
ed001fdc1c Add monaco-editor-webpack-plugin-example 2021-11-11 17:20:19 +01:00
Remco Haszing
786cdb5dbb
Implement definition provider 2021-11-10 22:28:06 +01:00
Remco Haszing
5507d53dee
Merge branch 'main' into update-dependencies 2021-11-10 21:40:56 +01:00
Melvin Laplanche
f3decc20dd
Update monaco to 0.30 2021-11-09 10:43:15 -08:00
Remco Haszing
c5d83c4543
Remove webpack buffer fallback
This was needed for `yaml-languagerserver-parser`, which is no longer
used.
2021-10-18 21:16:18 +02:00
Remco Haszing
90a7bcda0a
Fix ESLint issue 2021-10-17 13:23:08 +02:00
Remco Haszing
554699887d
Update dependencies
- Both `js-yaml` and `yaml-languageserver-parser` have been replaced with
  `yaml`.
- `jsonc-parser` has been externalized.
- All defaults are now specified explicitly.
- The new property `yamlVersion` has been added to match
  `yaml-language-server`. The default is `1.2`.
- `DiagnosticsOptions` properties are now sorted alphabetically and
  documentation has been enhanced.

Closes #117
2021-10-17 12:32:19 +02:00
Remco Haszing
8d75a459ee
Enable source maps for the demo 2021-10-02 16:20:32 +02:00
Remco Haszing
11f4465ee8
Add minimal vite example
Closes #115
2021-09-17 18:09:59 +02:00
Remco Haszing
3a0b164c51
Dispose the old model before switching in demo
This prevents errors.
2021-09-17 16:02:53 +02:00
Remco Haszing
9739d143d3
Apply various stylistic fixes
- ESLint config `remcohaszing/typechecking` is extended.
- Various previously disabled ESLint rules have now been enabled.
- Various `any` types have been fixed.
- Removed useless type check of diagnostic code.
- The diagnostics adapter listener has been turned into an actual map.
2021-09-02 22:11:00 +02:00
Remco Haszing
5445cd8437
Widen webpack version range 2021-09-02 21:49:57 +02:00
Remco Haszing
99dcdff6fe
Update dependencies
All caret ranges are now defined as `^x.0.0`.

A small ESLint issue was fixed, which was reported by the updates ESLint
configuration.
2021-09-02 15:39:23 +02:00
Remco Haszing
3361bfe233
Let demo users select a schema from schema store 2021-08-28 11:44:04 +02:00
Remco Haszing
67d9aecfb6
Add editor breadcrumbs to demo
This uses some untyped and undocumented monaco APIs.

Closes #41
2021-08-25 20:05:49 +02:00
Remco Haszing
cf4b843ce5
Merge branch 'main' into support-json-links 2021-08-25 19:23:42 +02:00
Remco Haszing
0da9f2cdfd
Resolve JSON pointers as links 2021-08-25 17:39:53 +02:00
Remco Haszing
109332e5e7
Rename webpack example to demo
It has grown significantly. I plan to add more minimal demos for Webpack
and probably some other bundlers.
2021-08-23 17:28:13 +02:00
Remco Haszing
3774841f7c
Show problems panel in example
The example was also converted to TypeScript.
2021-08-19 22:40:58 +02:00
Remco Haszing
fff16c993e
Update monaco-editor to 0.27.0
This is only used for development. Everything still works.
2021-08-19 18:03:12 +02:00
Remco Haszing
f16e46331e
Merge pull request #71 from remcohaszing/update-example-value
Add a more advanced example value
2021-08-09 22:37:28 +02:00
fleonus
41d2b2e0c9
Update examples/webpack/src/index.js 2021-08-09 22:31:30 +02:00
Remco Haszing
b42b0b6af4
Update examples/webpack/src/index.js
Co-authored-by: fleonus <hkapoor@gitlab.com>
2021-08-09 22:30:08 +02:00
Remco Haszing
2912c4b287
Merge pull request #72 from remcohaszing/fix-editor-loading-background
Set the editor background while loading
2021-08-09 22:28:01 +02:00
Remco Haszing
0d46780695
Set the editor background while loading
The colors match the editor background color that’s displayed when the
editor is loaded.
2021-08-09 21:41:46 +02:00
Remco Haszing
260f0da919
Add a more advanced example value 2021-08-09 21:32:40 +02:00
Remco Haszing
11030e5599
Update metadata
- Add links to https://monaco-editor.js.org
- Add netlify badge to the readme
- Add YAML icon to the demo
2021-08-09 20:49:00 +02:00
Remco Haszing
72d77fdc33
Optimize the example 2021-08-07 13:40:56 +02:00
Remco Haszing
4bbdb7e5b1
Update the example
It looks somewhat nice now.
2021-08-07 10:50:50 +02:00
Remco Haszing
13c46f5de6
Update dependencies
Most notably update to Webpack 5. Webpack 5 supports web workers without
the need of a loader, so the `webpack-worker-loader` example has been
removed.
2021-08-05 18:33:58 +02:00
Remco Haszing
2ea154af85
Update documentation
- Update repository links
- Restructure the readme
- Add contributing document
- Update credits
2021-07-31 16:15:45 +02:00
Remco Haszing
7174aff026
Expose setDiagnosticsOptions in monaco-yaml
This removes the need to explain certain statements and imports need to
happen in a specific order. Users can now just use:

```ts
import { setDiagnosticsOptions } from 'monaco-yaml';

setDiagnosticsOptions({});
```
2021-07-18 14:58:42 +02:00
Remco Haszing
7a6fcf0c64
Add missing diagnostics options in types
Also JSON schemas have been typed to be more specific using
`@types/json-schema`.
2021-07-18 14:20:41 +02:00
Remco Haszing
249de5dc34
Use a more minimal webpack config for examples 2021-07-18 13:29:54 +02:00
Remco Haszing
ac7b6fe307
Introduce ESLint
The ESLint preset `eslint-config-remcohaszing` is used.
2021-07-17 17:12:17 +02:00