@codingame/monaco-languageclient-wrapper 1.6.0 → 1.7.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/createLanguageClient.d.ts +3 -3
- package/dist/extensionConfiguration.d.ts +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/languageClient.d.ts +4 -7
- package/dist/languageClientOptions.d.ts +9 -0
- package/dist/main.js +496 -500
- package/dist/staticOptions.d.ts +3 -7
- package/package.json +1 -1
- package/stats.html +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MonacoLanguageClient, Middleware, ErrorHandler } from '@codingame/monaco-languageclient';
|
|
2
|
-
import { LanguageClientId
|
|
3
|
-
declare function createLanguageClient(id: LanguageClientId, sessionId: string | undefined, { documentSelector, synchronize, initializationOptions }:
|
|
1
|
+
import { MonacoLanguageClient, Middleware, ErrorHandler, LanguageClientOptions } from '@codingame/monaco-languageclient';
|
|
2
|
+
import { LanguageClientId } from './languageClientOptions';
|
|
3
|
+
declare function createLanguageClient(id: LanguageClientId, sessionId: string | undefined, { documentSelector, synchronize, initializationOptions }: LanguageClientOptions, languageServerAddress: string, getSecurityToken: () => Promise<string>, libraryUrls: string[], errorHandler: ErrorHandler, middleware?: Middleware): MonacoLanguageClient;
|
|
4
4
|
export default createLanguageClient;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { loadExtensionConfigurations } from './extensionConfiguration';
|
|
|
3
3
|
import { WillShutdownParams } from './extensions';
|
|
4
4
|
import './hacks';
|
|
5
5
|
import { createLanguageClientManager, LanguageClientManager, StatusChangeEvent } from './languageClient';
|
|
6
|
-
import { LanguageClientId } from './
|
|
7
|
-
|
|
8
|
-
export
|
|
6
|
+
import { LanguageClientId, registerLanguageClient } from './languageClientOptions';
|
|
7
|
+
import { StaticLanguageClientId } from './staticOptions';
|
|
8
|
+
export { loadExtensionConfigurations, createLanguageClientManager, registerLanguageClient, LanguageClientManager };
|
|
9
|
+
export type { StatusChangeEvent, StaticLanguageClientId, LanguageClientId, WillShutdownParams };
|
package/dist/languageClient.d.ts
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { MonacoLanguageClient, Emitter, Event, TextDocument } from '@codingame/monaco-languageclient';
|
|
2
|
-
import { LanguageClientId, StaticLanguageClientOptions } from './staticOptions';
|
|
3
2
|
import { WillShutdownParams } from './extensions';
|
|
4
|
-
|
|
5
|
-
type: string;
|
|
6
|
-
message: string;
|
|
7
|
-
};
|
|
3
|
+
import { LanguageClientId, LanguageClientOptions } from './languageClientOptions';
|
|
8
4
|
export interface LanguageClient {
|
|
9
5
|
sendNotification(method: string, params: unknown): void;
|
|
10
6
|
sendRequest<R>(method: string, params: unknown): Promise<R>;
|
|
11
7
|
}
|
|
8
|
+
declare type Status = 'ready' | 'error' | 'connecting' | 'connected' | 'closed';
|
|
12
9
|
export interface StatusChangeEvent {
|
|
13
10
|
status: Status;
|
|
14
11
|
}
|
|
@@ -26,8 +23,8 @@ export declare class LanguageClientManager implements LanguageClient {
|
|
|
26
23
|
protected readonly onErrorEmitter: Emitter<Error>;
|
|
27
24
|
protected readonly onWillCloseEmitter: Emitter<void>;
|
|
28
25
|
protected readonly onWillShutdownEmitter: Emitter<WillShutdownParams>;
|
|
29
|
-
protected currentStatus
|
|
30
|
-
constructor(id: LanguageClientId, sessionId: string | undefined, languageServerAddress: string, getSecurityToken: () => Promise<string>, languageServerOptions:
|
|
26
|
+
protected currentStatus: Status;
|
|
27
|
+
constructor(id: LanguageClientId, sessionId: string | undefined, languageServerAddress: string, getSecurityToken: () => Promise<string>, languageServerOptions: LanguageClientOptions, libraryUrls: string[], useMutualizedProxy: boolean);
|
|
31
28
|
private updateStatus;
|
|
32
29
|
private notifyStatusChanged;
|
|
33
30
|
isReady(): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Disposable, LanguageClientOptions as MonacoLanguageClientOptions } from '@codingame/monaco-languageclient';
|
|
2
|
+
import { StaticLanguageClientId } from './staticOptions';
|
|
3
|
+
export declare type LanguageClientOptions = Pick<MonacoLanguageClientOptions, 'documentSelector' | 'synchronize' | 'initializationOptions' | 'middleware'> & {
|
|
4
|
+
vscodeExtensionIds?: string[];
|
|
5
|
+
mutualizable: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare function registerLanguageClient(id: string, options: LanguageClientOptions): Disposable;
|
|
8
|
+
export declare type LanguageClientId = StaticLanguageClientId | string;
|
|
9
|
+
export declare function getLanguageClientOptions(id: LanguageClientId): LanguageClientOptions;
|