@codingame/monaco-languageclient-wrapper 2.1.3 → 2.2.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.
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  /// <reference path="../node_modules/vscode-languageclient/typings/vscode-proposed.d.ts" />
2
+ import { NotificationType as NotificationType$2, RequestType as RequestType$2, TextDocumentSaveReason as TextDocumentSaveReason$1 } from 'vscode-languageserver-protocol/lib/common/api';
3
+ export { TextDocumentSaveReason } from 'vscode-languageserver-protocol/lib/common/api';
2
4
  import * as ls from 'vscode-languageserver-protocol';
3
5
  import { InitializeParams, InitializeResult, LogMessageParams, ShowMessageParams, DidChangeConfigurationParams, DidChangeWatchedFilesParams, DidOpenTextDocumentParams, DidChangeTextDocumentParams, DidCloseTextDocumentParams, DidSaveTextDocumentParams, PublishDiagnosticsParams, CancellationToken as CancellationToken$2, ConfigurationRequest, WorkspaceFoldersRequest, DocumentSelector, MessageReader, MessageWriter, ProtocolRequestType0, ProtocolRequestType, RequestType0 as RequestType0$1, RequestType as RequestType$1, RequestHandler0 as RequestHandler0$1, RequestHandler as RequestHandler$1, GenericRequestHandler as GenericRequestHandler$1, ProtocolNotificationType0, ProtocolNotificationType, NotificationType0 as NotificationType0$1, NotificationType as NotificationType$1, NotificationHandler0 as NotificationHandler0$1, NotificationHandler as NotificationHandler$1, GenericNotificationHandler as GenericNotificationHandler$1, ProgressType as ProgressType$1, Event as Event$2, Trace as Trace$1, DidOpenTextDocumentNotification, TextDocumentRegistrationOptions, DidChangeTextDocumentNotification, WillSaveTextDocumentNotification, WillSaveTextDocumentWaitUntilRequest, DidSaveTextDocumentNotification, DidCloseTextDocumentNotification, DidCreateFilesNotification, FileOperationRegistrationOptions, DidRenameFilesNotification, DidDeleteFilesNotification, WillCreateFilesRequest, WillRenameFilesRequest, WillDeleteFilesRequest, CompletionRequest, HoverRequest, SignatureHelpRequest, DefinitionRequest, ReferencesRequest, DocumentHighlightRequest, CodeActionRequest, DocumentFormattingRequest, DocumentRangeFormattingRequest, DocumentOnTypeFormattingRequest, RenameRequest, DocumentSymbolRequest, DocumentLinkRequest, DocumentColorRequest, DeclarationRequest, FoldingRangeRequest, ImplementationRequest, SelectionRangeRequest, TypeDefinitionRequest, CallHierarchyPrepareRequest, SemanticTokensRegistrationType, LinkedEditingRangeRequest, WorkspaceSymbolRequest, MessageSignature as MessageSignature$1, CancellationStrategy, Message as Message$1, ResponseError as ResponseError$1, InitializeError, ClientCapabilities, ServerCapabilities, RegistrationType, ProgressToken, WorkDoneProgressBegin, WorkDoneProgressReport, WorkDoneProgressEnd, FileEvent, ShowDocumentParams, ShowDocumentRequest, ShowDocumentResult, MessageConnection } from 'vscode-languageserver-protocol';
4
6
  import { CreateFilesParams, RenameFilesParams, DeleteFilesParams } from 'vscode-languageserver-protocol/lib/common/protocol.fileOperations';
5
- import { TextDocumentSaveReason as TextDocumentSaveReason$1, NotificationType as NotificationType$2, RequestType as RequestType$2 } from 'vscode-languageserver-protocol/lib/common/api';
6
7
  import * as monaco from 'monaco-editor';
7
8
 
8
9
  /**
@@ -7939,6 +7940,10 @@ declare namespace MonacoLanguageClient {
7939
7940
  }
7940
7941
  }
7941
7942
 
7943
+ interface WillShutdownParams {
7944
+ delay: number;
7945
+ }
7946
+
7942
7947
  declare type LanguageClientOptionsById<T extends string> = Record<T, LanguageClientOptions>;
7943
7948
  declare const staticOptions: LanguageClientOptionsById<"angular" | "bash" | "c" | "cpp" | "csharp" | "clojure" | "cobol" | "dart" | "go" | "groovy" | "java" | "javascript" | "kotlin" | "lua" | "mysql" | "sql" | "ocaml" | "php-serenata" | "php" | "postgresql" | "python" | "r" | "react" | "ruby" | "rust" | "scala" | "swift" | "typescript" | "verilog" | "vue">;
7944
7949
  declare type StaticLanguageClientId = keyof typeof staticOptions;
@@ -7950,6 +7955,52 @@ declare type LanguageClientOptions = Pick<LanguageClientOptions$1, 'documentSele
7950
7955
  declare function registerLanguageClient(id: string, options: LanguageClientOptions): Disposable;
7951
7956
  declare type LanguageClientId = StaticLanguageClientId | string;
7952
7957
 
7958
+ interface LanguageClient {
7959
+ sendNotification<P>(type: NotificationType$2<P>, params?: P): void;
7960
+ sendRequest<P, R, E>(request: RequestType$2<P, R, E>, params: P, token?: CancellationToken): Promise<R>;
7961
+ }
7962
+ declare type Status = 'ready' | 'error' | 'connecting' | 'connected' | 'closed';
7963
+ interface StatusChangeEvent {
7964
+ status: Status;
7965
+ }
7966
+ declare class LanguageClientManager implements LanguageClient {
7967
+ private id;
7968
+ private languageServerOptions;
7969
+ private infrastructure;
7970
+ languageClient?: MonacoLanguageClient;
7971
+ private disposed;
7972
+ protected readonly onDidChangeStatusEmitter: Emitter<StatusChangeEvent>;
7973
+ protected readonly onErrorEmitter: Emitter<Error>;
7974
+ protected readonly onWillCloseEmitter: Emitter<void>;
7975
+ protected readonly onWillShutdownEmitter: Emitter<WillShutdownParams>;
7976
+ protected currentStatus: Status;
7977
+ constructor(id: LanguageClientId, languageServerOptions: LanguageClientOptions, infrastructure: Infrastructure);
7978
+ private updateStatus;
7979
+ private notifyStatusChanged;
7980
+ isConnected(): boolean;
7981
+ dispose(): Promise<void>;
7982
+ get onDidChangeStatus(): Event<StatusChangeEvent>;
7983
+ get onWillClose(): Event<void>;
7984
+ get onWillShutdown(): Event<WillShutdownParams>;
7985
+ get onError(): Event<Error>;
7986
+ isModelManaged(document: TextDocument): boolean;
7987
+ isDisposed(): boolean;
7988
+ private handleClose;
7989
+ private handleError;
7990
+ start(): Promise<void>;
7991
+ private _start;
7992
+ sendNotification<P>(type: NotificationType$2<P>, params?: P): void;
7993
+ sendRequest<P, R, E>(type: RequestType$2<P, R, E>, params: P): Promise<R>;
7994
+ }
7995
+ /**
7996
+ * Create a language client manager
7997
+ * @param id The predefined id of the language client
7998
+ * @param infrastructure The infrastructure to use
7999
+ * @param parameters the infrastructure parameters
8000
+ * @returns A language client manager
8001
+ */
8002
+ declare function createLanguageClientManager(id: LanguageClientId, infrastructure: Infrastructure): LanguageClientManager;
8003
+
7953
8004
  interface Infrastructure {
7954
8005
  /**
7955
8006
  * Indicate if the file will be already up to date on the server or it it is required to send textDocument/save requests
@@ -8027,56 +8078,6 @@ declare abstract class CodinGameInfrastructure implements Infrastructure {
8027
8078
  openConnection(id: LanguageClientId): Promise<MessageConnection>;
8028
8079
  }
8029
8080
 
8030
- interface LanguageClient {
8031
- sendNotification<P>(type: NotificationType$2<P>, params?: P): void;
8032
- sendRequest<P, R, E>(request: RequestType$2<P, R, E>, params: P, token?: CancellationToken): Promise<R>;
8033
- }
8034
- declare type Status = 'ready' | 'error' | 'connecting' | 'connected' | 'closed';
8035
- interface StatusChangeEvent {
8036
- status: Status;
8037
- }
8038
- declare class LanguageClientManager implements LanguageClient {
8039
- private id;
8040
- private languageServerOptions;
8041
- private infrastructure;
8042
- languageClient?: MonacoLanguageClient;
8043
- private disposed;
8044
- protected readonly onDidChangeStatusEmitter: Emitter<StatusChangeEvent>;
8045
- protected readonly onErrorEmitter: Emitter<Error>;
8046
- protected readonly onWillCloseEmitter: Emitter<void>;
8047
- protected readonly onWillShutdownEmitter: Emitter<WillShutdownParams>;
8048
- protected currentStatus: Status;
8049
- constructor(id: LanguageClientId, languageServerOptions: LanguageClientOptions, infrastructure: Infrastructure);
8050
- private updateStatus;
8051
- private notifyStatusChanged;
8052
- isReady(): boolean;
8053
- dispose(): Promise<void>;
8054
- get onDidChangeStatus(): Event<StatusChangeEvent>;
8055
- get onWillClose(): Event<void>;
8056
- get onWillShutdown(): Event<WillShutdownParams>;
8057
- get onError(): Event<Error>;
8058
- isModelManaged(document: TextDocument): boolean;
8059
- isDisposed(): boolean;
8060
- private handleClose;
8061
- private handleError;
8062
- start(): Promise<void>;
8063
- private _start;
8064
- sendNotification<P>(type: NotificationType$2<P>, params?: P): void;
8065
- sendRequest<P, R, E>(type: RequestType$2<P, R, E>, params: P): Promise<R>;
8066
- }
8067
- /**
8068
- * Create a language client manager
8069
- * @param id The predefined id of the language client
8070
- * @param infrastructure The infrastructure to use
8071
- * @param parameters the infrastructure parameters
8072
- * @returns A language client manager
8073
- */
8074
- declare function createLanguageClientManager(id: LanguageClientId, infrastructure: Infrastructure): LanguageClientManager;
8075
-
8076
- interface WillShutdownParams {
8077
- delay: number;
8078
- }
8079
-
8080
8081
  /**
8081
8082
  * Load the configuration schemas from vscode extensions
8082
8083
  * @param forLanguageClientIds Load the extensions related to these language client ids
@@ -8084,4 +8085,4 @@ interface WillShutdownParams {
8084
8085
  */
8085
8086
  declare function loadExtensionConfigurations(forLanguageClientIds: LanguageClientId[], useMutualizedProxy: boolean): Promise<void>;
8086
8087
 
8087
- export { CodinGameInfrastructure, Infrastructure, LanguageClientId, LanguageClientManager, StaticLanguageClientId, StatusChangeEvent, WillShutdownParams, WorkspaceFolder, createLanguageClientManager, loadExtensionConfigurations, registerLanguageClient };
8088
+ export { CodinGameInfrastructure, Infrastructure, LanguageClientId, LanguageClientManager, StaticLanguageClientId, StatusChangeEvent, TextDocument, WillShutdownParams, WorkspaceFolder, createLanguageClientManager, loadExtensionConfigurations, registerLanguageClient };