@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
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MonacoLanguageClient, Middleware, ErrorHandler } from '@codingame/monaco-languageclient';
|
|
2
|
-
import {
|
|
3
|
-
declare function createLanguageClient(
|
|
2
|
+
import { StaticLanguageClientOptions } from './staticOptions';
|
|
3
|
+
declare function createLanguageClient(id: string, sessionId: string | undefined, { documentSelector, synchronize, initializationOptions }: StaticLanguageClientOptions, languageServerAddress: string, getSecurityToken: () => Promise<string>, libraryUrls: string[], errorHandler: ErrorHandler, middleware?: Middleware): MonacoLanguageClient;
|
|
4
4
|
export default createLanguageClient;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import 'proxy-polyfill';
|
|
2
2
|
import './hacks';
|
|
3
|
-
import
|
|
3
|
+
import '@codingame/monaco-editor-wrapper/dist/extensionConfigurations';
|
|
4
|
+
import { createLanguageClientManager, StatusChangeEvent } from './languageClient';
|
|
4
5
|
export { createLanguageClientManager };
|
|
5
|
-
export type {
|
|
6
|
+
export type { StatusChangeEvent };
|
package/dist/languageClient.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { MonacoLanguageClient, Emitter, Event,
|
|
1
|
+
import { MonacoLanguageClient, Emitter, Event, TextDocument } from '@codingame/monaco-languageclient';
|
|
2
|
+
import { StaticLanguageClientOptions } from './staticOptions';
|
|
2
3
|
declare type Status = {
|
|
3
4
|
type: string;
|
|
4
5
|
message: string;
|
|
@@ -10,25 +11,19 @@ export interface LanguageClient {
|
|
|
10
11
|
export interface StatusChangeEvent {
|
|
11
12
|
status: Status;
|
|
12
13
|
}
|
|
13
|
-
export interface LanguageServerConfig {
|
|
14
|
-
language: string;
|
|
15
|
-
documentSelector: DocumentSelector;
|
|
16
|
-
configurationSection?: string;
|
|
17
|
-
configuration?: unknown;
|
|
18
|
-
initializationOptions?: unknown | (() => unknown);
|
|
19
|
-
}
|
|
20
14
|
export declare class LanguageClientManager implements LanguageClient {
|
|
21
|
-
private
|
|
15
|
+
private id;
|
|
16
|
+
private sessionId;
|
|
17
|
+
private languageServerAddress;
|
|
22
18
|
private getSecurityToken;
|
|
23
|
-
private
|
|
19
|
+
private languageServerOptions;
|
|
24
20
|
private libraryUrls;
|
|
25
21
|
languageClient?: MonacoLanguageClient;
|
|
26
22
|
protected readonly onDidChangeStatusEmitter: Emitter<StatusChangeEvent>;
|
|
27
23
|
protected readonly onErrorEmitter: Emitter<Error>;
|
|
28
24
|
protected readonly onWillCloseEmitter: Emitter<void>;
|
|
29
25
|
protected currentStatus?: Status;
|
|
30
|
-
|
|
31
|
-
constructor(languageServerUrl: string, getSecurityToken: () => Promise<string>, languageServerConfig: LanguageServerConfig, libraryUrls: string[]);
|
|
26
|
+
constructor(id: string, sessionId: string | undefined, languageServerAddress: string, getSecurityToken: () => Promise<string>, languageServerOptions: StaticLanguageClientOptions, libraryUrls: string[]);
|
|
32
27
|
private updateStatus;
|
|
33
28
|
private notifyStatusChanged;
|
|
34
29
|
isReady(): boolean;
|
|
@@ -40,12 +35,11 @@ export declare class LanguageClientManager implements LanguageClient {
|
|
|
40
35
|
isDisposed(): boolean;
|
|
41
36
|
private handleClose;
|
|
42
37
|
private handleError;
|
|
43
|
-
updateConfiguration(configuration: unknown): void;
|
|
44
38
|
start(): void;
|
|
45
39
|
sendNotification(method: string, params: unknown): void;
|
|
46
40
|
sendRequest<R>(method: string, params: unknown): Promise<R>;
|
|
47
41
|
}
|
|
48
|
-
declare function createLanguageClientManager(
|
|
42
|
+
declare function createLanguageClientManager(id: string, sessionId: string | undefined, languageServerAddress: string, getSecurityToken: () => Promise<string>, libraryUrls: string[]): LanguageClientManager;
|
|
49
43
|
declare function getAllLanguageClientManagers(): LanguageClientManager[];
|
|
50
44
|
declare function getAllLanguageClientManagersByTextDocument(textDocument: TextDocument): LanguageClientManager[];
|
|
51
45
|
export { createLanguageClientManager, getAllLanguageClientManagers, getAllLanguageClientManagersByTextDocument };
|