@codingame/monaco-languageclient-wrapper 2.7.3 → 2.8.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
@@ -7205,13 +7205,13 @@ interface Position {
7205
7205
  */
7206
7206
  line: number;
7207
7207
  /**
7208
- * Character offset on a line in a document (zero-based). Assuming that the line is
7209
- * represented as a string, the `character` value represents the gap between the
7210
- * `character` and `character + 1`.
7208
+ * Character offset on a line in a document (zero-based).
7209
+ *
7210
+ * The meaning of this offset is determined by the negotiated
7211
+ * `PositionEncodingKind`.
7211
7212
  *
7212
7213
  * If the character value is greater than the line length it defaults back to the
7213
7214
  * line length.
7214
- * If a line number is negative, it defaults to 0.
7215
7215
  */
7216
7216
  character: number;
7217
7217
  }
@@ -7230,7 +7230,7 @@ interface Position {
7230
7230
  */
7231
7231
  interface Range {
7232
7232
  /**
7233
- * The range's start position
7233
+ * The range's start position.
7234
7234
  */
7235
7235
  start: Position;
7236
7236
  /**
@@ -8862,11 +8862,15 @@ interface IConnectionProvider {
8862
8862
  }
8863
8863
 
8864
8864
  declare class MonacoLanguageClient extends BaseLanguageClient {
8865
- static bypassConversion: (result: any, token?: CancellationToken$1 | undefined) => any;
8865
+ static bypassConversion: (result: any, token?: CancellationToken$1) => any;
8866
8866
  protected readonly connectionProvider: IConnectionProvider;
8867
8867
  constructor({ id, name, clientOptions, connectionProvider }: MonacoLanguageClient.Options);
8868
8868
  protected createMessageTransports(encoding: string): Promise<MessageTransports>;
8869
8869
  protected getLocale(): string;
8870
+ protected registerBuiltinFeatures(): void;
8871
+ registerTextDocumentSaveFeatures(): void;
8872
+ registerConfigurationFeatures(): void;
8873
+ registerProgressFeatures(): void;
8870
8874
  }
8871
8875
  declare namespace MonacoLanguageClient {
8872
8876
  interface Options {
@@ -8912,10 +8916,17 @@ declare type Status = 'ready' | 'error' | 'connecting' | 'connected' | 'closed';
8912
8916
  interface StatusChangeEvent {
8913
8917
  status: Status;
8914
8918
  }
8919
+ interface LanguageClientManagerOptions {
8920
+ /**
8921
+ * The language client will stop trying to start after `maxStartAttemptCount` failed attempts
8922
+ */
8923
+ maxStartAttemptCount?: number;
8924
+ }
8915
8925
  declare class LanguageClientManager implements LanguageClient {
8916
8926
  private id;
8917
8927
  private clientOptions;
8918
8928
  private infrastructure;
8929
+ private managerOptions;
8919
8930
  languageClient?: MonacoLanguageClient;
8920
8931
  private disposed;
8921
8932
  protected readonly onDidChangeStatusEmitter: Emitter<StatusChangeEvent>;
@@ -8924,7 +8935,7 @@ declare class LanguageClientManager implements LanguageClient {
8924
8935
  protected readonly onWillShutdownEmitter: Emitter<WillShutdownParams>;
8925
8936
  protected currentStatus: Status;
8926
8937
  private useMutualizedProxy;
8927
- constructor(id: LanguageClientId, clientOptions: LanguageClientOptions, infrastructure: Infrastructure);
8938
+ constructor(id: LanguageClientId, clientOptions: LanguageClientOptions, infrastructure: Infrastructure, managerOptions: LanguageClientManagerOptions);
8928
8939
  private updateStatus;
8929
8940
  private notifyStatusChanged;
8930
8941
  isConnected(): boolean;
@@ -8948,7 +8959,7 @@ declare class LanguageClientManager implements LanguageClient {
8948
8959
  * @param infrastructure The infrastructure to use
8949
8960
  * @returns A language client manager
8950
8961
  */
8951
- declare function createLanguageClientManager(id: LanguageClientId, infrastructure: Infrastructure, clientOptions?: LanguageClientOptions): LanguageClientManager;
8962
+ declare function createLanguageClientManager(id: LanguageClientId, infrastructure: Infrastructure, clientOptions?: LanguageClientOptions, managerOptions?: LanguageClientManagerOptions): LanguageClientManager;
8952
8963
 
8953
8964
  interface Infrastructure {
8954
8965
  /**
@@ -9035,4 +9046,4 @@ declare abstract class CodinGameInfrastructure implements Infrastructure {
9035
9046
  */
9036
9047
  declare function loadExtensionConfigurations(forLanguageClientIds: LanguageClientId[], useMutualizedProxy: boolean): Promise<void>;
9037
9048
 
9038
- export { CodinGameInfrastructure, Infrastructure, LanguageClientId, LanguageClientManager, LanguageClientOptions, MessageTransports, StaticLanguageClientId, StatusChangeEvent, TextDocument, WillShutdownParams, WorkspaceFolder, createLanguageClientManager, loadExtensionConfigurations, registerLanguageClient };
9049
+ export { CodinGameInfrastructure, Infrastructure, LanguageClientId, LanguageClientManager, LanguageClientManagerOptions, LanguageClientOptions, MessageTransports, StaticLanguageClientId, StatusChangeEvent, TextDocument, WillShutdownParams, WorkspaceFolder, createLanguageClientManager, loadExtensionConfigurations, registerLanguageClient };