@codingame/monaco-languageclient-wrapper 2.7.2 → 2.8.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/index.d.ts CHANGED
@@ -8912,10 +8912,17 @@ declare type Status = 'ready' | 'error' | 'connecting' | 'connected' | 'closed';
8912
8912
  interface StatusChangeEvent {
8913
8913
  status: Status;
8914
8914
  }
8915
+ interface LanguageClientManagerOptions {
8916
+ /**
8917
+ * The language client will stop trying to start after `maxStartAttemptCount` failed attempts
8918
+ */
8919
+ maxStartAttemptCount?: number;
8920
+ }
8915
8921
  declare class LanguageClientManager implements LanguageClient {
8916
8922
  private id;
8917
8923
  private clientOptions;
8918
8924
  private infrastructure;
8925
+ private managerOptions;
8919
8926
  languageClient?: MonacoLanguageClient;
8920
8927
  private disposed;
8921
8928
  protected readonly onDidChangeStatusEmitter: Emitter<StatusChangeEvent>;
@@ -8924,7 +8931,7 @@ declare class LanguageClientManager implements LanguageClient {
8924
8931
  protected readonly onWillShutdownEmitter: Emitter<WillShutdownParams>;
8925
8932
  protected currentStatus: Status;
8926
8933
  private useMutualizedProxy;
8927
- constructor(id: LanguageClientId, clientOptions: LanguageClientOptions, infrastructure: Infrastructure);
8934
+ constructor(id: LanguageClientId, clientOptions: LanguageClientOptions, infrastructure: Infrastructure, managerOptions: LanguageClientManagerOptions);
8928
8935
  private updateStatus;
8929
8936
  private notifyStatusChanged;
8930
8937
  isConnected(): boolean;
@@ -8948,7 +8955,7 @@ declare class LanguageClientManager implements LanguageClient {
8948
8955
  * @param infrastructure The infrastructure to use
8949
8956
  * @returns A language client manager
8950
8957
  */
8951
- declare function createLanguageClientManager(id: LanguageClientId, infrastructure: Infrastructure, clientOptions?: LanguageClientOptions): LanguageClientManager;
8958
+ declare function createLanguageClientManager(id: LanguageClientId, infrastructure: Infrastructure, clientOptions?: LanguageClientOptions, managerOptions?: LanguageClientManagerOptions): LanguageClientManager;
8952
8959
 
8953
8960
  interface Infrastructure {
8954
8961
  /**
@@ -9035,4 +9042,4 @@ declare abstract class CodinGameInfrastructure implements Infrastructure {
9035
9042
  */
9036
9043
  declare function loadExtensionConfigurations(forLanguageClientIds: LanguageClientId[], useMutualizedProxy: boolean): Promise<void>;
9037
9044
 
9038
- export { CodinGameInfrastructure, Infrastructure, LanguageClientId, LanguageClientManager, LanguageClientOptions, MessageTransports, StaticLanguageClientId, StatusChangeEvent, TextDocument, WillShutdownParams, WorkspaceFolder, createLanguageClientManager, loadExtensionConfigurations, registerLanguageClient };
9045
+ export { CodinGameInfrastructure, Infrastructure, LanguageClientId, LanguageClientManager, LanguageClientManagerOptions, LanguageClientOptions, MessageTransports, StaticLanguageClientId, StatusChangeEvent, TextDocument, WillShutdownParams, WorkspaceFolder, createLanguageClientManager, loadExtensionConfigurations, registerLanguageClient };