@codingame/monaco-languageclient-wrapper 1.3.2 → 1.6.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/dist/extensionConfiguration.d.ts +7 -0
- package/dist/index.d.ts +5 -3
- package/dist/languageClient.d.ts +16 -3
- package/dist/main.js +451 -483
- package/dist/staticOptions.d.ts +6 -8
- package/package.json +20 -15
- package/stats.html +205 -795
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LanguageClientId } from './staticOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Load the configuration schemas from vscode extensions
|
|
4
|
+
* @param forLanguageClientIds Load the extensions related to these language client ids
|
|
5
|
+
* @param useMutualizedProxy The language server proxy is used, so we only need to load configurations for language servers which are not mutualized
|
|
6
|
+
*/
|
|
7
|
+
export declare function loadExtensionConfigurations(forLanguageClientIds: LanguageClientId[], useMutualizedProxy: boolean): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import 'proxy-polyfill';
|
|
2
|
+
import { loadExtensionConfigurations } from './extensionConfiguration';
|
|
3
|
+
import { WillShutdownParams } from './extensions';
|
|
2
4
|
import './hacks';
|
|
3
|
-
import { createLanguageClientManager, StatusChangeEvent } from './languageClient';
|
|
5
|
+
import { createLanguageClientManager, LanguageClientManager, StatusChangeEvent } from './languageClient';
|
|
4
6
|
import { LanguageClientId } from './staticOptions';
|
|
5
|
-
export { createLanguageClientManager };
|
|
6
|
-
export type { StatusChangeEvent, LanguageClientId };
|
|
7
|
+
export { loadExtensionConfigurations, createLanguageClientManager, LanguageClientManager };
|
|
8
|
+
export type { StatusChangeEvent, LanguageClientId, WillShutdownParams };
|
package/dist/languageClient.d.ts
CHANGED
|
@@ -19,13 +19,15 @@ export declare class LanguageClientManager implements LanguageClient {
|
|
|
19
19
|
private getSecurityToken;
|
|
20
20
|
private languageServerOptions;
|
|
21
21
|
private libraryUrls;
|
|
22
|
+
private useMutualizedProxy;
|
|
22
23
|
languageClient?: MonacoLanguageClient;
|
|
24
|
+
private disposed;
|
|
23
25
|
protected readonly onDidChangeStatusEmitter: Emitter<StatusChangeEvent>;
|
|
24
26
|
protected readonly onErrorEmitter: Emitter<Error>;
|
|
25
27
|
protected readonly onWillCloseEmitter: Emitter<void>;
|
|
26
28
|
protected readonly onWillShutdownEmitter: Emitter<WillShutdownParams>;
|
|
27
29
|
protected currentStatus?: Status;
|
|
28
|
-
constructor(id: LanguageClientId, sessionId: string | undefined, languageServerAddress: string, getSecurityToken: () => Promise<string>, languageServerOptions: StaticLanguageClientOptions, libraryUrls: string[]);
|
|
30
|
+
constructor(id: LanguageClientId, sessionId: string | undefined, languageServerAddress: string, getSecurityToken: () => Promise<string>, languageServerOptions: StaticLanguageClientOptions, libraryUrls: string[], useMutualizedProxy: boolean);
|
|
29
31
|
private updateStatus;
|
|
30
32
|
private notifyStatusChanged;
|
|
31
33
|
isReady(): boolean;
|
|
@@ -38,11 +40,22 @@ export declare class LanguageClientManager implements LanguageClient {
|
|
|
38
40
|
isDisposed(): boolean;
|
|
39
41
|
private handleClose;
|
|
40
42
|
private handleError;
|
|
41
|
-
start(): void
|
|
43
|
+
start(): Promise<void>;
|
|
44
|
+
private _start;
|
|
42
45
|
sendNotification(method: string, params: unknown): void;
|
|
43
46
|
sendRequest<R>(method: string, params: unknown): Promise<R>;
|
|
44
47
|
}
|
|
45
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Create a language client manager
|
|
50
|
+
* @param id The predefined id of the language client
|
|
51
|
+
* @param sessionId An optional sessionId when connecting to the session-mutualized server
|
|
52
|
+
* @param languageServerAddress The domain of the server
|
|
53
|
+
* @param getSecurityToken A function which returns a valid JWT token to use to connect to the server
|
|
54
|
+
* @param libraryUrls A list of urls which link to zip files containing libraries/resources
|
|
55
|
+
* @param useMutualizedProxy The language server proxy is used, so we only need to load configurations for language servers which are not mutualized
|
|
56
|
+
* @returns A language client manager
|
|
57
|
+
*/
|
|
58
|
+
declare function createLanguageClientManager(id: LanguageClientId, sessionId: string | undefined, languageServerAddress: string, getSecurityToken: () => Promise<string>, libraryUrls: string[], useMutualizedProxy?: boolean): LanguageClientManager;
|
|
46
59
|
declare function getAllLanguageClientManagers(): LanguageClientManager[];
|
|
47
60
|
declare function getAllLanguageClientManagersByTextDocument(textDocument: TextDocument): LanguageClientManager[];
|
|
48
61
|
export { createLanguageClientManager, getAllLanguageClientManagers, getAllLanguageClientManagersByTextDocument };
|