@codingame/monaco-languageclient-wrapper 2.0.2 → 2.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.
@@ -1,4 +0,0 @@
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
- export default createLanguageClient;
@@ -1,5 +0,0 @@
1
- import { LanguageClient } from './languageClient';
2
- export declare function updateFile(uri: string, text: string, languageClient: LanguageClient): Promise<void>;
3
- export declare function getFile(uri: string, languageClient: LanguageClient): Promise<{
4
- text: string;
5
- }>;
@@ -1,7 +0,0 @@
1
- import { LanguageClientId } from './languageClientOptions';
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>;
@@ -1,14 +0,0 @@
1
- import { MonacoLanguageClient, StaticFeature, Emitter, ProtocolNotificationType } from '@codingame/monaco-languageclient';
2
- export declare function registerExtensionFeatures(client: MonacoLanguageClient, language: string): void;
3
- export interface WillShutdownParams {
4
- delay: number;
5
- }
6
- export declare const willShutdownNotificationType: ProtocolNotificationType<WillShutdownParams, void>;
7
- export declare class WillDisposeFeature implements StaticFeature {
8
- private languageClient;
9
- private onWillShutdownEmitter;
10
- constructor(languageClient: MonacoLanguageClient, onWillShutdownEmitter: Emitter<WillShutdownParams>);
11
- fillClientCapabilities(): void;
12
- initialize(): void;
13
- dispose(): void;
14
- }
package/dist/hacks.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,58 +0,0 @@
1
- import { MonacoLanguageClient, Emitter, Event, TextDocument } from '@codingame/monaco-languageclient';
2
- import { WillShutdownParams } from './extensions';
3
- import { LanguageClientId, LanguageClientOptions } from './languageClientOptions';
4
- export interface LanguageClient {
5
- sendNotification(method: string, params: unknown): void;
6
- sendRequest<R>(method: string, params: unknown): Promise<R>;
7
- }
8
- declare type Status = 'ready' | 'error' | 'connecting' | 'connected' | 'closed';
9
- export interface StatusChangeEvent {
10
- status: Status;
11
- }
12
- export declare class LanguageClientManager implements LanguageClient {
13
- private id;
14
- private sessionId;
15
- private languageServerAddress;
16
- private getSecurityToken;
17
- private languageServerOptions;
18
- private libraryUrls;
19
- private useMutualizedProxy;
20
- languageClient?: MonacoLanguageClient;
21
- private disposed;
22
- protected readonly onDidChangeStatusEmitter: Emitter<StatusChangeEvent>;
23
- protected readonly onErrorEmitter: Emitter<Error>;
24
- protected readonly onWillCloseEmitter: Emitter<void>;
25
- protected readonly onWillShutdownEmitter: Emitter<WillShutdownParams>;
26
- protected currentStatus: Status;
27
- constructor(id: LanguageClientId, sessionId: string | undefined, languageServerAddress: string, getSecurityToken: () => Promise<string>, languageServerOptions: LanguageClientOptions, libraryUrls: string[], useMutualizedProxy: boolean);
28
- private updateStatus;
29
- private notifyStatusChanged;
30
- isReady(): boolean;
31
- dispose(): Promise<void>;
32
- get onDidChangeStatus(): Event<StatusChangeEvent>;
33
- get onWillClose(): Event<void>;
34
- get onWillShutdown(): Event<WillShutdownParams>;
35
- get onError(): Event<Error>;
36
- isModelManaged(document: TextDocument): boolean;
37
- isDisposed(): boolean;
38
- private handleClose;
39
- private handleError;
40
- start(): Promise<void>;
41
- private _start;
42
- sendNotification(method: string, params: unknown): void;
43
- sendRequest<R>(method: string, params: unknown): Promise<R>;
44
- }
45
- /**
46
- * Create a language client manager
47
- * @param id The predefined id of the language client
48
- * @param sessionId An optional sessionId when connecting to the session-mutualized server
49
- * @param languageServerAddress The domain of the server
50
- * @param getSecurityToken A function which returns a valid JWT token to use to connect to the server
51
- * @param libraryUrls A list of urls which link to zip files containing libraries/resources
52
- * @param useMutualizedProxy The language server proxy is used, so we only need to load configurations for language servers which are not mutualized
53
- * @returns A language client manager
54
- */
55
- declare function createLanguageClientManager(id: LanguageClientId, sessionId: string | undefined, languageServerAddress: string, getSecurityToken: () => Promise<string>, libraryUrls: string[], useMutualizedProxy?: boolean): LanguageClientManager;
56
- declare function getAllLanguageClientManagers(): LanguageClientManager[];
57
- declare function getAllLanguageClientManagersByTextDocument(textDocument: TextDocument): LanguageClientManager[];
58
- export { createLanguageClientManager, getAllLanguageClientManagers, getAllLanguageClientManagersByTextDocument };
@@ -1,9 +0,0 @@
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;