@codingame/monaco-languageclient-wrapper 1.7.2 → 2.0.1

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.
@@ -0,0 +1,4 @@
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;
@@ -0,0 +1,5 @@
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
+ }>;
@@ -0,0 +1,7 @@
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>;
@@ -0,0 +1,14 @@
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
+ }
@@ -0,0 +1 @@
1
+ export {};