Commit graph

22 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
Patrick Shipe
7a96d822b1 Restore ability to change options after loading 2021-09-14 13:37:14 -06:00
Kai Schlamp
9506aef618 Add custom tags option 2021-09-04 13:50:57 +00:00
Remco Haszing
26173cdbad
Remove logic for unloading the language
It’s not supported in `monaco-editor` nor is it planned.

See https://github.com/microsoft/monaco-editor/issues/2642
2021-09-01 21:23:26 +02:00
Remco Haszing
ba395c9d23
Convert promise chains to async/await 2021-08-19 17:55:46 +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
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
Remco Haszing
5fd08c73ed
Update prettier to match yaml-language-server
Since both yaml-language-server and prettier are included in the bundle, their
versions should match for best compatibility. Also code has been formatted using
the updated prettier.
2021-04-13 20:17:12 +02:00
Remco Haszing
a5a49756be
Remove unused dependencies
Jest, eslint, and typescript-tslint-plugin were installed, but never used. Node
types were used for timers, but this is incorrect, as this code is supposed to
run in the browser.
2021-03-25 17:40:16 +01:00
Himanshu Kapoor
cf610df47e Remove usage of monaco.Promise
It was removed in Monaco 16.0
2020-07-02 14:46:45 +05:30
Kristen Mills
3c4720774c
Try using latest version 2020-01-11 17:18:13 -08: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
Alex Dima
f53c1650ed Use label for the web workers 2016-10-07 15:17:02 +02:00
Martin Aeschlimann
50e0c8d70c 1.0 2016-06-26 12:50:57 +02:00