Commit graph

58 commits

Author SHA1 Message Date
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
ac7b6fe307
Introduce ESLint
The ESLint preset `eslint-config-remcohaszing` is used.
2021-07-17 17:12:17 +02:00
Remco Haszing
f327e73f66
Bump dependencies 2021-07-17 14:20:08 +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
0e0555455c
Replace Thenable with PromiseLike
`Thenable` is a deprecated alias of the TypeScript builtin `PromiseLike`.
2021-04-13 21:18:18 +02:00
Remco Haszing
09e2418046
Fix js-yaml dependency 2021-04-13 20:17:12 +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
Remco Haszing
7f49a21a56
Revert "Fix types for languages.yaml namespaces"
This reverts commit e784f842c3.
2021-03-25 17:07:47 +01:00
Remco Haszing
e784f842c3
Fix types for languages.yaml namespaces
`monaco-editor` no longer uses a global `monaco` namespace.
2020-12-09 10:07:15 +01:00
apimastery
5b6cae33b2 use yaml-language-server's ESM and UMD modules; fix formatting 2020-09-20 21:23:48 -05:00
apimastery
4dd5405431 Move tsconfig-s to the root of the project and update them 2020-09-20 19:20:19 -05:00
Himanshu Kapoor
fa72f5d6be
WIP: Dependency upgrades (#27)
* Update dependencies and remove language server

Dependency upgrades:
- monaco-editor 0.16.2 -> 0.20.0
- monaco-editor-core 0.16.1 -> 0.20.0
- monaco-languages 1.6.0 -> 1.10.0
- monaco-plugin-helpers 1.0.2 -> 1.0.3

Remove dependencies that are also dependencies of yaml-language-server

Remove all code from
- src/languageservice
- src/yaml-ast-parser-custom-tags
- test

* Update paths and deps in react examples

* fix: 🐛 fix package (#29)

Co-authored-by: DMY <147dmy@gmail.com>
2020-08-20 15:12:43 +05:30
Himanshu Kapoor
cf610df47e Remove usage of monaco.Promise
It was removed in Monaco 16.0
2020-07-02 14:46:45 +05:30
Peng Xiao
1b31f48186
fix: enable prettier formatter for umd (#2) 2020-01-29 12:15:37 -08:00
Kristen Mills
3503cacea0
Update to the latest version of yaml-language-service (#1) 2020-01-12 17:27:33 -08:00
Kristen Mills
3c4720774c
Try using latest version 2020-01-11 17:18:13 -08:00
Kristen Mills
775a2b5fa8
fix 2020-01-11 12:50:40 -08:00
Kristen Mills
d227764654
try that 2020-01-11 03:41:15 -08:00
Kristen Mills
6aed5662da
schema request service 2020-01-11 02:46:16 -08:00
Egor Gorbachev
766edb0be4 Fix the code to generate a proper ESM output 2019-09-19 20:57:50 +02:00
Peng Xiao
1fea33bd60 test: some more fix to unit tests 2018-12-21 17:33:09 +08:00
Peng Xiao
ed907a9096 fix: add colon position to key node 2018-12-21 17:33:08 +08:00
Peng Xiao
84e82b52f7 style: lint files 2018-12-21 17:33:07 +08:00
Peng Xiao
1e0e5ebb54 fix: fix error type issues 2018-12-21 17:33:06 +08:00
Peng Xiao
cb10912b7e test: add jest for testing 2018-12-21 17:33:06 +08:00
Peng Xiao
0229f023b0 test: add jest for testing 2018-12-14 18:00:45 +08:00
Peng Xiao
a478bef722 feat: some adjustment to auto completion 2018-12-14 12:16:10 +08:00
Peng Xiao
56dda31a03 fix: fix an issue of error position 2018-12-13 15:04:09 +08:00
Peng Xiao
0784a4311e fix: disable completion for now 2018-11-30 15:05:02 +08:00
Peng Xiao
d80ea14fe0 build: migrate latest json language service implementation 2018-11-23 10:04:33 +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
c65f0f4a95 House keeping 2018-02-26 00:05:58 -06:00
Kevin Decker
e658a06c82 Rename path to more common location 2018-02-26 00:05:33 -06:00
Kevin Decker
16750098e4 Remove unused tokenization module 2018-02-26 00:02:32 -06:00
Kevin Decker
ad350d08b2 Convert json implementation to yaml libs 2018-02-25 23:36:05 -06:00
Kevin Decker
8ba88be05d Merge yaml language services 2018-02-25 23:26:16 -06:00
Kevin Decker
6f8a8c5bbd Remove unused yaml parser module 2018-02-25 22:45:59 -06:00
Kevin Decker
39dcb0e50b Import external libs 2018-02-25 19:53:44 -06:00
Martin Aeschlimann
ff043657bd update dependencies, fix promise typing issue 2018-02-07 09:59:03 +01:00
Alex Dima
ee4fe0475d Fix cyclic path 2017-07-03 14:20:08 +02:00
Martin Aeschlimann
3cac4e7522 When I switch the editor's language and values, the previous language error markers stick around. Fixes Microsoft/monaco-editor#475 2017-06-26 16:54:34 +08:00
Martin Aeschlimann
9d724f1e05 Fix formatting 2017-06-26 15:17:53 +08:00
Martin Aeschlimann
3155a06129 TypeError: Cannot read property 'getText' of null. Fixes Microsoft/monaco-editor#354 2017-06-26 15:14:29 +08:00
Martin Aeschlimann
5618dbdb4f Remove unused functions 2017-01-27 15:59:34 +01:00