@codingame/monaco-languageclient-wrapper 1.0.8 → 1.1.2
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/dist/createLanguageClient.d.ts +2 -2
- package/dist/index.d.ts +3 -2
- package/dist/languageClient.d.ts +8 -14
- package/dist/main.js +636 -327
- package/dist/services/Configuration.d.ts +2 -3
- package/dist/services/WatchableConsoleWindow.d.ts +2 -0
- package/dist/services.d.ts +1 -2
- package/dist/staticOptions.d.ts +9 -0
- package/package.json +21 -21
- package/stats.html +1 -1
|
@@ -7,9 +7,8 @@ declare class MemoryWorkspaceConfiguration implements WorkspaceConfiguration {
|
|
|
7
7
|
}
|
|
8
8
|
declare class Configuration implements Configurations {
|
|
9
9
|
protected readonly onDidChangeConfigurationEmitter: Emitter<ConfigurationChangeEvent>;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
update(section: string, value: unknown): void;
|
|
10
|
+
getConfiguration(section?: string, resource?: string): MemoryWorkspaceConfiguration;
|
|
11
|
+
private getValue;
|
|
13
12
|
get onDidChangeConfiguration(): Event<ConfigurationChangeEvent>;
|
|
14
13
|
}
|
|
15
14
|
export default Configuration;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MessageType, OutputChannel, Window, MessageActionItem, Emitter, Event } from '@codingame/monaco-languageclient';
|
|
2
|
+
import type * as vscode from 'vscode';
|
|
2
3
|
declare class WatchableOutputChannel implements OutputChannel {
|
|
3
4
|
logs: string;
|
|
4
5
|
readonly name: string;
|
|
@@ -18,5 +19,6 @@ export default class WatchableConsoleWindow implements Window {
|
|
|
18
19
|
showMessage<T extends MessageActionItem>(type: MessageType, message: string, ...actions: T[]): Promise<T | undefined>;
|
|
19
20
|
createOutputChannel(name: string): OutputChannel;
|
|
20
21
|
get onDidChangeChannels(): Event<void>;
|
|
22
|
+
withProgress: typeof vscode.window.withProgress;
|
|
21
23
|
}
|
|
22
24
|
export {};
|
package/dist/services.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TextDocumentSaveReason, TextDocument } from '@codingame/monaco-languageclient';
|
|
2
2
|
declare function installServices(): void;
|
|
3
|
-
declare function updateConfiguration(section: string, value: unknown): void;
|
|
4
3
|
declare function saveDocument(document: TextDocument, reason: TextDocumentSaveReason): Promise<void>;
|
|
5
|
-
export { installServices, saveDocument
|
|
4
|
+
export { installServices, saveDocument };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DocumentSelector, LanguageClientOptions } from '@codingame/monaco-languageclient';
|
|
2
|
+
export interface LanguageServerConfig {
|
|
3
|
+
documentSelector: DocumentSelector;
|
|
4
|
+
synchronizeConfigurationSection?: string | string[];
|
|
5
|
+
initializationOptions?: unknown | (() => unknown);
|
|
6
|
+
}
|
|
7
|
+
export declare type StaticLanguageClientOptions = Pick<LanguageClientOptions, 'documentSelector' | 'synchronize' | 'initializationOptions'>;
|
|
8
|
+
declare const staticOptions: Partial<Record<string, StaticLanguageClientOptions>>;
|
|
9
|
+
export default staticOptions;
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-languageclient-wrapper",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Enhanced Monaco editor with TextMate grammars and more",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "rollup --config rollup.config.ts --configPlugin typescript && npm run generate-types",
|
|
8
|
-
"generate-types": "tsc --project tsconfig.types.json"
|
|
9
|
-
"update-extensions": "ts-node update-extensions.ts"
|
|
8
|
+
"generate-types": "tsc --project tsconfig.types.json"
|
|
10
9
|
},
|
|
11
10
|
"repository": {
|
|
12
11
|
"type": "git",
|
|
@@ -21,47 +20,48 @@
|
|
|
21
20
|
],
|
|
22
21
|
"types": "dist/index.d.ts",
|
|
23
22
|
"dependencies": {
|
|
24
|
-
"@codingame/monaco-editor-wrapper": "^1.
|
|
25
|
-
"once": "^1.4.0"
|
|
23
|
+
"@codingame/monaco-editor-wrapper": "^1.1.1",
|
|
24
|
+
"once": "^1.4.0",
|
|
25
|
+
"sweetalert": "^2.1.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@babel/core": "7.16.
|
|
29
|
-
"@babel/plugin-proposal-class-properties": "7.16.
|
|
30
|
-
"@babel/plugin-proposal-optional-chaining": "7.16.
|
|
31
|
-
"@babel/preset-env": "7.16.
|
|
32
|
-
"@babel/preset-typescript": "7.16.
|
|
33
|
-
"@babel/runtime": "7.16.
|
|
28
|
+
"@babel/core": "7.16.5",
|
|
29
|
+
"@babel/plugin-proposal-class-properties": "7.16.5",
|
|
30
|
+
"@babel/plugin-proposal-optional-chaining": "7.16.5",
|
|
31
|
+
"@babel/preset-env": "7.16.5",
|
|
32
|
+
"@babel/preset-typescript": "7.16.5",
|
|
33
|
+
"@babel/runtime": "7.16.5",
|
|
34
34
|
"@codingame/monaco-jsonrpc": "^0.3.1",
|
|
35
|
-
"@codingame/monaco-languageclient": "^0.17.
|
|
35
|
+
"@codingame/monaco-languageclient": "^0.17.3",
|
|
36
36
|
"@rollup/plugin-alias": "3.1.8",
|
|
37
37
|
"@rollup/plugin-babel": "5.3.0",
|
|
38
38
|
"@rollup/plugin-commonjs": "21.0.1",
|
|
39
39
|
"@rollup/plugin-eslint": "8.0.1",
|
|
40
40
|
"@rollup/plugin-json": "4.1.0",
|
|
41
|
-
"@rollup/plugin-node-resolve": "13.
|
|
41
|
+
"@rollup/plugin-node-resolve": "13.1.1",
|
|
42
42
|
"@rollup/plugin-typescript": "^8.3.0",
|
|
43
43
|
"@types/once": "^1.4.0",
|
|
44
44
|
"@types/rollup-plugin-node-builtins": "^2.1.2",
|
|
45
|
-
"@types/vscode": "^1.
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
47
|
-
"@typescript-eslint/parser": "5.
|
|
45
|
+
"@types/vscode": "^1.63.1",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "5.8.0",
|
|
47
|
+
"@typescript-eslint/parser": "5.8.0",
|
|
48
48
|
"babel-eslint": "10.1.0",
|
|
49
|
-
"eslint": "8.
|
|
49
|
+
"eslint": "8.5.0",
|
|
50
50
|
"eslint-config-standard": "16.0.3",
|
|
51
51
|
"eslint-config-standard-jsx": "10.0.0",
|
|
52
52
|
"eslint-plugin-import": "2.25.3",
|
|
53
53
|
"eslint-plugin-node": "11.1.0",
|
|
54
|
-
"eslint-plugin-promise": "
|
|
54
|
+
"eslint-plugin-promise": "6.0.0",
|
|
55
55
|
"eslint-plugin-standard": "5.0.0",
|
|
56
56
|
"eslint-plugin-unused-imports": "2.0.0",
|
|
57
57
|
"proxy-polyfill": "^0.3.2",
|
|
58
|
-
"rollup": "2.
|
|
58
|
+
"rollup": "2.61.1",
|
|
59
59
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
60
|
-
"rollup-plugin-postcss": "4.0.
|
|
60
|
+
"rollup-plugin-postcss": "4.0.2",
|
|
61
61
|
"rollup-plugin-visualizer": "5.5.2",
|
|
62
62
|
"rollup-plugin-web-worker-loader": "1.6.1",
|
|
63
63
|
"tslib": "^2.3.1",
|
|
64
|
-
"typescript": "4.
|
|
64
|
+
"typescript": "4.5.4",
|
|
65
65
|
"vscode-languageserver-protocol": "^3.16.0"
|
|
66
66
|
},
|
|
67
67
|
"browserslist": [
|