Commit graph

15 commits

Author SHA1 Message Date
Remco Haszing
7313780510
Extract languageId into constants
It was defined once, but it was passed into various functions. This
added unnecessary complexity.

It is now defined in a constants file, which is imported where
necessary.
2021-09-17 16:21:27 +02:00
Remco Haszing
8fa3ca4252
Convert classes to factory functions
TypeScript is better at inferring types when using simple functions and
objects instead of classes. As a result many type annotations have now
been removed without impacting type safety.

Some other benefits are this can be minified better and private fields
are now truly private variables.
2021-08-19 17:06:42 +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
ac7b6fe307
Introduce ESLint
The ESLint preset `eslint-config-remcohaszing` is used.
2021-07-17 17:12:17 +02:00
Remco Haszing
52c457a196
Use monaco-editor/esm/vs/editor/editor.api
This doesn’t enforce users to pull in all of monaco-editor.
2021-04-22 20:00:34 +02:00
Remco Haszing
c4a95e2dd5
Replace monaco namespace with monaco-editor imports
This is a preparation for `monaco-editor@^0.22.0`. In this version the global
`monaco` object was removed for ESM users.

A choice was made to use `monaco-editor` imports, because this probably has
best compatibility for most users. If users want to use `monaco-editor-core`,
they will have to create an alias in their own build process.
2021-04-13 21:18:18 +02:00
Egor Gorbachev
766edb0be4 Fix the code to generate a proper ESM output 2019-09-19 20:57:50 +02:00
Peng Xiao
0229f023b0 test: add jest for testing 2018-12-14 18:00:45 +08:00
Peng Xiao
5169f3e1fd feat: revert back custom request service 2018-11-16 11:19:00 +08:00
Peng Xiao
5476403375 feat: allow user to provide custom schema service 2018-11-16 10:22:55 +08:00
Peng Xiao
fb04c29c52 chore: upgrade dependencies and bump version to 1.2.0 2018-11-14 17:57:07 +08:00
Peng Xiao
a0db642717 chore: align with pengx17/master branch 2018-10-25 10:12:07 +08:00
Kevin Decker
e658a06c82 Rename path to more common location 2018-02-26 00:05:33 -06:00
Kevin Decker
ad350d08b2 Convert json implementation to yaml libs 2018-02-25 23:36:05 -06:00
Martin Aeschlimann
50e0c8d70c 1.0 2016-06-26 12:50:57 +02:00