vscode-languageserver-protocol 3.15.0-next.8 → 3.15.0-next.9

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/.eslintrc.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "../.eslintrc.base.json",
3
+ "rules": {
4
+ "no-console": "error"
5
+ }
6
+ }
package/lib/main.d.ts CHANGED
@@ -23,9 +23,9 @@ export declare namespace Proposed {
23
23
  type WorkDoneProgressClientCapabilities = progress.WorkDoneProgressClientCapabilities;
24
24
  type WorkDoneProgressBegin = progress.WorkDoneProgressBegin;
25
25
  type WorkDoneProgressReport = progress.WorkDoneProgressReport;
26
- type WorkDoneProgressDone = progress.WorkDoneProgressDone;
26
+ type WorkDoneProgressEnd = progress.WorkDoneProgressEnd;
27
27
  namespace WorkDoneProgress {
28
- const type: ProgressType<progress.WorkDoneProgressBegin | progress.WorkDoneProgressReport | progress.WorkDoneProgressDone>;
28
+ const type: ProgressType<progress.WorkDoneProgressBegin | progress.WorkDoneProgressReport | progress.WorkDoneProgressEnd>;
29
29
  }
30
30
  type WorkDoneProgressCreateParams = progress.WorkDoneProgressCreateParams;
31
31
  namespace WorkDoneProgressCreateRequest {
@@ -1,33 +1,21 @@
1
1
  import { RequestType, RequestHandler, ProgressType } from 'vscode-jsonrpc';
2
2
  import { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
3
3
  import { TextDocumentIdentifier, Range, Color, ColorInformation, ColorPresentation } from 'vscode-languageserver-types';
4
- export interface ColorClientCapabilities {
4
+ export interface DocumentColorClientCapabilities {
5
5
  /**
6
- * The text document client capabilities
6
+ * Whether implementation supports dynamic registration. If this is set to `true`
7
+ * the client supports the new `DocumentColorRegistrationOptions` return value
8
+ * for the corresponding server capability as well.
7
9
  */
8
- textDocument?: {
9
- /**
10
- * Capabilities specific to the colorProvider
11
- */
12
- colorProvider?: {
13
- /**
14
- * Whether implementation supports dynamic registration. If this is set to `true`
15
- * the client supports the new `(ColorRegistrationOptions & StaticRegistrationOptions)`
16
- * return value for the corresponding server capability as well.
17
- */
18
- dynamicRegistration?: boolean;
19
- };
20
- };
10
+ dynamicRegistration?: boolean;
21
11
  }
22
- export interface ColorOptions extends WorkDoneProgressOptions {
23
- }
24
- export interface ColorRegistrationOptions extends TextDocumentRegistrationOptions, ColorOptions {
25
- }
26
- export interface ColorServerCapabilities {
12
+ export interface DocumentColorOptions extends WorkDoneProgressOptions {
27
13
  /**
28
- * The server provides color provider support.
14
+ * Code lens has a resolve provider as well.
29
15
  */
30
- colorProvider?: boolean | ColorOptions | (ColorRegistrationOptions & StaticRegistrationOptions);
16
+ resolveProvider?: boolean;
17
+ }
18
+ export interface DocumentColorRegistrationOptions extends TextDocumentRegistrationOptions, StaticRegistrationOptions, DocumentColorOptions {
31
19
  }
32
20
  /**
33
21
  * Parameters for a [DocumentColorRequest](#DocumentColorRequest).
@@ -45,7 +33,7 @@ export interface DocumentColorParams extends WorkDoneProgressParams, PartialResu
45
33
  * that resolves to such.
46
34
  */
47
35
  export declare namespace DocumentColorRequest {
48
- const type: RequestType<DocumentColorParams, ColorInformation[], void, ColorRegistrationOptions>;
36
+ const type: RequestType<DocumentColorParams, ColorInformation[], void, DocumentColorRegistrationOptions>;
49
37
  const resultType: ProgressType<ColorInformation[]>;
50
38
  type HandlerSignature = RequestHandler<DocumentColorParams, ColorInformation[], void>;
51
39
  }