monaco-languageclient 8.0.0-next.5 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,11 +2,14 @@
2
2
 
3
3
  All notable changes to this npm module are documented in this file.
4
4
 
5
- ## [8.0.0] - 2024-03-0x
6
-
7
- - WIP: Repository now includes `monaco-editor-wrapper` and `@typefox/monaco-editor-react`
8
- - Updated to `@codingame/monaco-vscode-api@2.0.1`. This ensures amoung other things proper sematic versioning
9
- - Details
5
+ ## [8.0.0] - 2024-03-18
6
+
7
+ - Repository now includes `monaco-editor-wrapper` and `@typefox/monaco-editor-react`
8
+ - Aligned LICENSE usage throughout the repository
9
+ - Introduce new exports `vscode/services` where you find all mandatory functions related to `@codingame/monaco-vscode-api` service initialization
10
+ - Updated to `@codingame/monaco-vscode-api@3.1.2` and `@codingame/monaco-vscode-editor-api@3.1.2`
11
+ - Proper sematic versioning, versions are now idenpendent of VSCode versioning scheme, but compatibility table is found [here](https://github.com/TypeFox/monaco-languageclient/blob/main/docs/versions-and-history.md#monaco-editor--codingamemonaco-vscode-api-compatibility-table).
12
+ - `@codingame/monaco-vscode-editor-api` is now the alias for `monaco-editor` It provides the full editor's full api and hereby removes the need for a treemended version.
10
13
 
11
14
  ## [7.3.0] - 2024-01-04
12
15
 
@@ -1,9 +1,7 @@
1
- Copyright (c) 2018-2024 TypeFox GmbH (http://www.typefox.io)
2
-
3
- All rights reserved.
4
-
5
1
  MIT License
6
2
 
3
+ Copyright 2018 - present TypeFox GmbH
4
+
7
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8
6
 
9
7
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
package/README.md CHANGED
@@ -8,12 +8,45 @@
8
8
 
9
9
  Module to connect [Monaco editor](https://microsoft.github.io/monaco-editor/) with [language servers](https://microsoft.github.io/language-server-protocol/).
10
10
 
11
- See [here](https://github.com/TypeFox/monaco-languageclient/blob/main/README.md) for a detailed documentation.
11
+ ## CHANGELOG
12
+
13
+ All changes are noted in the [CHANGELOG](https://github.com/TypeFox/monaco-languageclient/blob/main/packages/client/CHANGELOG.md).
14
+
15
+ ## Getting Started
16
+
17
+ This is npm package is part of the <https://github.com/TypeFox/monaco-languageclient> mono repo. Please follow the main repositories [instructions]](<https://github.com/TypeFox/monaco-languageclient#getting-started>) to get started with local development.
18
+
19
+ ## Usage
20
+
21
+ ### NEW with v8: Own monaco-vscode-editor-api package
22
+
23
+ Since version 2 (see [Important Project Changes](https://github.com/TypeFox/monaco-languageclient/blob/main/docs/versions-and-history.md#important-project-changes)) of this library we rely on [@codingame/monaco-vscode-api](https://github.com/CodinGame/monaco-vscode-api) to supply the vscode API. It evolved substantially since then and thesedays allows to use many vscode only services with `monaco-editor`. With v6 and v7 we "treemend" used a "treemended" version of `monaco-editor` which brought back monaco-editor code that was removed during bundling/threeshaking (*treemending*). This left users with the need to define overrides / resolution which was problematic.
24
+ Therefore [monaco-vscode-editor-api](https://www.npmjs.com/package/@codingame/monaco-editor-wrapper) is now used and installed as an alias to `monaco-editor` because it provides the same api as the official monaco-editor.
25
+
26
+ ### Using services and extra packages from @codingame/monaco-vscode-api
12
27
 
13
- ## History
28
+ The bespoke projects not only supplies the api, but it provides 100+ packages with additional services, default extensions and language packs. By default when initalizing `monaco-languageclient` via the required `initServices` the following services are always loaded:
14
29
 
15
- For the history please see the [README](https://github.com/TypeFox/monaco-languageclient/blob/main/README.md#latest-important-project-changes) and [CHANGELOG](https://github.com/TypeFox/monaco-languageclient/blob/main/packages/client/CHANGELOG.md).
30
+ - *languages* and model *services* (always added by `monaco-languagclient`)
31
+ - *layout*, *environment*, *extension*, *files* and *quickAccess* (always added by `monaco-vscode-api`)
32
+
33
+ Please check the [following link](https://github.com/CodinGame/monaco-vscode-api#monaco-standalone-services) for information about all services supplied by [@codingame/monaco-vscode-api](https://github.com/CodinGame/monaco-vscode-api).
34
+
35
+ Please check our examples [in the examples overview chapter](https://github.com/TypeFox/monaco-languageclient/tree/main?tab=readme-ov-file#examples-overview) as they demonstrate the usage.
36
+
37
+ #### textmate and monarch
38
+
39
+ If you use the `textmate` or `theme` services you are able to load textmate based grammars and theme definitions from vscode:
40
+
41
+ ```js
42
+ import getThemeServiceOverride from '@codingame/monaco-vscode-theme-service-override';
43
+ import getTextmateServiceOverride from '@codingame/monaco-vscode-textmate-service-override';
44
+ ```
45
+
46
+ Once you those services you can no longer make use of monarch based grammars and themes.
47
+
48
+ See [here](https://github.com/TypeFox/monaco-languageclient/blob/main/README.md) for a detailed documentation.
16
49
 
17
50
  ## License
18
51
 
19
- [MIT](https://github.com/TypeFox/monaco-languageclient/blob/main/packages/client/License.txt)
52
+ [MIT](https://github.com/TypeFox/monaco-languageclient/blob/main/packages/client/LICENSE)
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /* --------------------------------------------------------------------------------------------
2
2
  * Copyright (c) 2024 TypeFox GmbH (http://www.typefox.io). All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
3
+ * Licensed under the MIT License. See LICENSE in the package root for license information.
4
4
  * ------------------------------------------------------------------------------------------ */
5
5
  import { BaseLanguageClient } from 'vscode-languageclient/lib/common/client.js';
6
6
  export class MonacoLanguageClient extends BaseLanguageClient {
@@ -1,6 +1,6 @@
1
1
  /* --------------------------------------------------------------------------------------------
2
2
  * Copyright (c) 2024 TypeFox GmbH (http://www.typefox.io). All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
3
+ * Licensed under the MIT License. See LICENSE in the package root for license information.
4
4
  * ------------------------------------------------------------------------------------------ */
5
5
  import { ILogService, initialize, StandaloneServices } from 'vscode/services';
6
6
  import getLanguagesServiceOverride from '@codingame/monaco-vscode-languages-service-override';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monaco-languageclient",
3
- "version": "8.0.0-next.5",
3
+ "version": "8.0.0",
4
4
  "description": "Monaco Language client implementation",
5
5
  "author": {
6
6
  "name": "TypeFox GmbH",
@@ -52,7 +52,7 @@
52
52
  "src",
53
53
  "README.md",
54
54
  "CHANGELOG.md",
55
- "License.txt"
55
+ "LICENSE"
56
56
  ],
57
57
  "dependencies": {
58
58
  "@codingame/monaco-vscode-languages-service-override": "~3.1.2",
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /* --------------------------------------------------------------------------------------------
2
2
  * Copyright (c) 2024 TypeFox GmbH (http://www.typefox.io). All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
3
+ * Licensed under the MIT License. See LICENSE in the package root for license information.
4
4
  * ------------------------------------------------------------------------------------------ */
5
5
 
6
6
  import { BaseLanguageClient, MessageTransports, LanguageClientOptions } from 'vscode-languageclient/lib/common/client.js';
@@ -1,6 +1,6 @@
1
1
  /* --------------------------------------------------------------------------------------------
2
2
  * Copyright (c) 2024 TypeFox GmbH (http://www.typefox.io). All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
3
+ * Licensed under the MIT License. See LICENSE in the package root for license information.
4
4
  * ------------------------------------------------------------------------------------------ */
5
5
 
6
6
  import { editor, Environment } from 'monaco-editor';