Commit graph

193 commits

Author SHA1 Message Date
Remco Haszing
40a38e2d2d
Merge pull request #83 from remcohaszing/remove-unused-filler
Remove os filler
2021-08-19 17:46:37 +02:00
Remco Haszing
40243d4e83
Remove os filler
It’s unused
2021-08-19 17:21:38 +02:00
Remco Haszing
bdfa1ef4e7
Merge pull request #80 from remcohaszing/tsconfig-fixes
Do some tsconfig cleanups
2021-08-19 08:50:55 +02:00
Remco Haszing
d4c6747667
Merge pull request #79 from remcohaszing/github-actions-tsc
Run type checks in GitHub workflow
2021-08-19 08:50:37 +02:00
Remco Haszing
df88461b0c
Merge pull request #78 from remcohaszing/remove-commented-code
Remove commented code
2021-08-19 08:50:21 +02:00
Remco Haszing
d7e5aa7744
Merge pull request #77 from remcohaszing/remove-document-range-formatting-edit-provider
Remove DocumentRangeFormattingEditProvider
2021-08-19 08:50:02 +02:00
Remco Haszing
d4ddc80b51
Merge pull request #81 from remcohaszing/fix-mistyped-enums
Fix mismatched enum types
2021-08-19 08:49:47 +02:00
Remco Haszing
fd9efe8060
Do some tsconfig cleanups
- `alwaysStrict` is unnecessary, because ESM is always strict.
- `noEmit` is enabled, because TypeScript isn’t used to bundle the code.
- `outDir` was removed, because TypeScrtips isn’t used to bundle the
  code.
- `exclude` was removed, because it’s not necessary.
2021-08-18 21:51:29 +02:00
Remco Haszing
62998a0b38
Run type checks in GitHub workflow 2021-08-18 21:47:53 +02:00
Remco Haszing
dd64c96d59
Fix mismatched enum types
These enums were annotated as numbers, but they could be more specific.
2021-08-18 21:46:06 +02:00
Remco Haszing
3dc04e2150
Remove commented code 2021-08-18 16:04:56 +02:00
Remco Haszing
cdef13351a
Remove unused format option 2021-08-18 15:56:45 +02:00
Remco Haszing
288c34cd37
Remove DocumentRangeFormattingEditProvider
The YAML language service doesn’t support formatting ranges.

In practice this means the “Format Selection” option which does the same
as “Format Document” is no longer available in the menu that’s opened
when pressing F1.
2021-08-18 15:47:50 +02:00
Remco Haszing
26b0d6ea96
Merge pull request #74 from remcohaszing/esbuild
Build project using esbuild
2021-08-15 21:23:51 +02:00
Remco Haszing
612604e254
Merge pull request #76 from remcohaszing/fix-readme-inconsistency
Fix consistency in readme
2021-08-15 13:16:38 +02:00
Remco Haszing
970179a272
Merge pull request #75 from remcohaszing/keywords
Add keywords in package.json
2021-08-15 12:56:15 +02:00
Remco Haszing
b533a0af0a
Fix consistency in readme
All GitHub usernames were prefixed with an `@` sign, except one.
2021-08-15 12:53:49 +02:00
Remco Haszing
0d107449ad
Add keywords in package.json
This helps people find this package.
2021-08-15 12:46:36 +02:00
Remco Haszing
95fd123191
Build project using esbuild
This is much more flexible than `monaco-plugin-helpers`. Because of
this, it’s possible to use Prettier as an external dependency, so users
can ignore it in their own build process of they choose not to support
formatting.

Instead of rewriting YAML language service imports in the build tool, I
decided to just import them from where they need to be imported in the
source code.

Closes #63
2021-08-15 12:37:13 +02:00
Remco Haszing
c2e6af4198
3.0.1 2021-08-10 09:57:35 +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
f5fc412497
Merge pull request #70 from remcohaszing/demo-metadata
Update metadata
2021-08-09 21:42:47 +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
249771b770
Merge pull request #69 from remcohaszing/optimize-example
Optimize the example
2021-08-09 08:29:41 +02:00
Remco Haszing
72d77fdc33
Optimize the example 2021-08-07 13:40:56 +02:00
Remco Haszing
ee45815857
Merge pull request #68 from remcohaszing/update-example
Update the example
2021-08-07 13:14:33 +02:00
Remco Haszing
4bbdb7e5b1
Update the example
It looks somewhat nice now.
2021-08-07 10:50:50 +02:00
Remco Haszing
92b103ee8d
Fix command for netlify 2021-08-07 09:33:29 +02:00
Remco Haszing
b6195b1563
Add .nvmrc 2021-08-07 09:31:34 +02:00
Remco Haszing
9962474f4d
Configure netlify 2021-08-07 09:28:19 +02:00
Remco Haszing
cff2665b7c
Merge pull request #67 from remcohaszing/service-worker-to-web-worker
Service worker to web worker
2021-08-05 19:08:54 +02:00
Remco Haszing
3094ebef91
Merge pull request #65 from remcohaszing/webpack-5
Update dependencies
2021-08-05 18:44:19 +02:00
Remco Haszing
6271f31cd3
Merge pull request #66 from remcohaszing/remove-vscode-settings
Remove .vscode folder
2021-08-05 18:44:03 +02:00
Remco Haszing
e4c13afe52
Change service worker to web worker in readme
They are different things. Monaco uses web workers.
2021-08-05 18:42:54 +02:00
Remco Haszing
e95737f7a2
Remove .vscode folder
Contributors should be able to use their own preferences.
2021-08-05 18:37:23 +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
c1310d88ff
Merge pull request #64 from remcohaszing/update-metadata
Update documentation
2021-07-31 16:51:20 +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
090302534a
3.0.0 2021-07-18 15:01:19 +02:00
Remco Haszing
bd831b1e03
Merge pull request #61 from remcohaszing/expose-set-diagnostics-options
Expose setDiagnosticsOptions in monaco-yaml
2021-07-18 15:01:04 +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
9436e1f034
Merge pull request #60 from remcohaszing/enhance-types
Add missing diagnostics options in types
2021-07-18 14:44:40 +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
ce58d4b6d7
Merge pull request #59 from remcohaszing/simplify-webpack-example-structures
Use a more minimal webpack config for examples
2021-07-18 13:35:58 +02:00
Remco Haszing
249de5dc34
Use a more minimal webpack config for examples 2021-07-18 13:29:54 +02:00