@codingame/monaco-languageclient-wrapper 1.8.0 → 2.0.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 +4 -0
- package/dist/customRequests.d.ts +5 -0
- package/dist/extensionConfiguration.d.ts +7 -0
- package/dist/extensions.d.ts +14 -0
- package/dist/hacks.d.ts +1 -0
- package/dist/index.d.ts +6835 -202
- package/dist/index.js +961 -672
- package/dist/languageClient.d.ts +58 -0
- package/dist/languageClientOptions.d.ts +9 -0
- package/dist/main.js +21393 -0
- package/dist/monaco-languageclient-wrapper.d.ts +1478 -0
- package/dist/services/CodinGameMonacoWorkspace.d.ts +13 -0
- package/dist/services/Configuration.d.ts +14 -0
- package/dist/services/WatchableConsoleWindow.d.ts +24 -0
- package/dist/services.d.ts +4 -0
- package/dist/staticOptions.d.ts +5 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/package.json +7 -7
- package/stats.html +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MonacoWorkspace, TextDocument, TextDocumentSaveReason, ProtocolToMonacoConverter, MonacoToProtocolConverter, Emitter, Event, TextDocumentWillSaveEvent } from '@codingame/monaco-languageclient';
|
|
2
|
+
import type * as vscode from 'vscode';
|
|
3
|
+
import Configuration from './Configuration';
|
|
4
|
+
export default class CodinGameMonacoWorkspace extends MonacoWorkspace {
|
|
5
|
+
protected readonly onWillSaveTextDocumentEmitter: Emitter<TextDocumentWillSaveEvent>;
|
|
6
|
+
protected readonly onDidSaveTextDocumentEmitter: Emitter<TextDocument>;
|
|
7
|
+
readonly workspaceFolders: typeof vscode.workspace.workspaceFolders;
|
|
8
|
+
configurations: Configuration;
|
|
9
|
+
constructor(p2m: ProtocolToMonacoConverter, m2p: MonacoToProtocolConverter, _rootUri?: string | null);
|
|
10
|
+
get onWillSaveTextDocument(): Event<TextDocumentWillSaveEvent>;
|
|
11
|
+
get onDidSaveTextDocument(): Event<TextDocument>;
|
|
12
|
+
saveDocument(document: TextDocument, reason: TextDocumentSaveReason): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Configurations, ConfigurationChangeEvent, WorkspaceConfiguration, Event, Emitter } from '@codingame/monaco-languageclient';
|
|
2
|
+
declare class MemoryWorkspaceConfiguration implements WorkspaceConfiguration {
|
|
3
|
+
constructor(config: any);
|
|
4
|
+
get<T>(section: string, defaultValue?: T): any;
|
|
5
|
+
has(section: string): boolean;
|
|
6
|
+
toJSON(): this;
|
|
7
|
+
}
|
|
8
|
+
declare class Configuration implements Configurations {
|
|
9
|
+
protected readonly onDidChangeConfigurationEmitter: Emitter<ConfigurationChangeEvent>;
|
|
10
|
+
getConfiguration(section?: string, resource?: string): MemoryWorkspaceConfiguration;
|
|
11
|
+
private getValue;
|
|
12
|
+
get onDidChangeConfiguration(): Event<ConfigurationChangeEvent>;
|
|
13
|
+
}
|
|
14
|
+
export default Configuration;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MessageType, OutputChannel, Window, MessageActionItem, Emitter, Event } from '@codingame/monaco-languageclient';
|
|
2
|
+
import type * as vscode from 'vscode';
|
|
3
|
+
declare class WatchableOutputChannel implements OutputChannel {
|
|
4
|
+
logs: string;
|
|
5
|
+
readonly name: string;
|
|
6
|
+
protected readonly onWillCloseEmitter: Emitter<void>;
|
|
7
|
+
protected readonly onDidChangeLogEmitter: Emitter<void>;
|
|
8
|
+
constructor(name: string);
|
|
9
|
+
get onWillClose(): Event<void>;
|
|
10
|
+
get onDidChangeLog(): Event<void>;
|
|
11
|
+
append(value: string): void;
|
|
12
|
+
appendLine(line: string): void;
|
|
13
|
+
show(): void;
|
|
14
|
+
dispose(): void;
|
|
15
|
+
}
|
|
16
|
+
export default class WatchableConsoleWindow implements Window {
|
|
17
|
+
protected readonly onDidChangeChannelsEmitter: Emitter<void>;
|
|
18
|
+
protected readonly channels: Map<string, WatchableOutputChannel>;
|
|
19
|
+
showMessage<T extends MessageActionItem>(type: MessageType, message: string, ...actions: T[]): Promise<T | undefined>;
|
|
20
|
+
createOutputChannel(name: string): OutputChannel;
|
|
21
|
+
get onDidChangeChannels(): Event<void>;
|
|
22
|
+
withProgress: typeof vscode.window.withProgress;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TextDocumentSaveReason, TextDocument } from '@codingame/monaco-languageclient';
|
|
2
|
+
declare function installServices(): void;
|
|
3
|
+
declare function saveDocument(document: TextDocument, reason: TextDocumentSaveReason): Promise<void>;
|
|
4
|
+
export { installServices, saveDocument };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { LanguageClientOptions } from './languageClientOptions';
|
|
2
|
+
declare type LanguageClientOptionsById<T extends string> = Record<T, LanguageClientOptions>;
|
|
3
|
+
declare const staticOptions: LanguageClientOptionsById<"angular" | "bash" | "c" | "cpp" | "csharp" | "clojure" | "cobol" | "dart" | "go" | "groovy" | "java" | "javascript" | "kotlin" | "lua" | "mysql" | "sql" | "ocaml" | "php-serenata" | "php" | "postgresql" | "python" | "r" | "react" | "ruby" | "rust" | "scala" | "swift" | "typescript" | "vue">;
|
|
4
|
+
export declare type StaticLanguageClientId = keyof typeof staticOptions;
|
|
5
|
+
export default staticOptions;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.19.3"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-languageclient-wrapper",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Enhanced Monaco editor with TextMate grammars and more",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"types": "dist/index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@codingame/monaco-editor-wrapper": "^1.
|
|
24
|
+
"@codingame/monaco-editor-wrapper": "^1.9.0",
|
|
25
25
|
"once": "^1.4.0",
|
|
26
26
|
"sweetalert": "^2.1.2"
|
|
27
27
|
},
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@rollup/plugin-typescript": "^8.3.1",
|
|
44
44
|
"@types/once": "^1.4.0",
|
|
45
45
|
"@types/rollup-plugin-node-builtins": "^2.1.2",
|
|
46
|
-
"@types/vscode": "^1.
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
48
|
-
"@typescript-eslint/parser": "5.
|
|
46
|
+
"@types/vscode": "^1.65.0",
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "5.14.0",
|
|
48
|
+
"@typescript-eslint/parser": "5.14.0",
|
|
49
49
|
"eslint": "8.10.0",
|
|
50
50
|
"eslint-config-standard": "16.0.3",
|
|
51
51
|
"eslint-config-standard-jsx": "10.0.0",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"eslint-plugin-promise": "6.0.0",
|
|
55
55
|
"eslint-plugin-unused-imports": "2.0.0",
|
|
56
56
|
"proxy-polyfill": "^0.3.2",
|
|
57
|
-
"rollup": "2.
|
|
58
|
-
"rollup-plugin-dts": "^4.
|
|
57
|
+
"rollup": "2.70.0",
|
|
58
|
+
"rollup-plugin-dts": "^4.2.0",
|
|
59
59
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
60
60
|
"rollup-plugin-postcss": "4.0.2",
|
|
61
61
|
"rollup-plugin-visualizer": "5.6.0",
|