vscode-languageserver-protocol 3.17.6-next.17 → 3.17.6-next.18

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,13 @@
1
+ // @ts-check
2
+ 'use strict';
3
+
4
+ const { createConfig } = require('../eslint.config.base.js');
5
+
6
+ module.exports = createConfig(
7
+ ['src/common/tsconfig.json', 'src/browser/tsconfig.json', 'src/browser/test/tsconfig.json', 'src/node/tsconfig.json', 'src/node/test/tsconfig.json'],
8
+ undefined,
9
+ {
10
+ 'no-console': 'error',
11
+ '@typescript-eslint/no-floating-promises': 'error',
12
+ }
13
+ );
@@ -32,8 +32,8 @@ export interface DocumentColorParams extends WorkDoneProgressParams, PartialResu
32
32
  export declare namespace DocumentColorRequest {
33
33
  const method: 'textDocument/documentColor';
34
34
  const messageDirection: MessageDirection;
35
- const type: ProtocolRequestType<DocumentColorParams, ColorInformation[] | null, ColorInformation[], void, DocumentColorRegistrationOptions>;
36
- type HandlerSignature = RequestHandler<DocumentColorParams, ColorInformation[] | null, void>;
35
+ const type: ProtocolRequestType<DocumentColorParams, ColorInformation[], ColorInformation[], void, DocumentColorRegistrationOptions>;
36
+ type HandlerSignature = RequestHandler<DocumentColorParams, ColorInformation[], void>;
37
37
  const capabilities: CM<"textDocument.colorProvider", "colorProvider">;
38
38
  }
39
39
  /**
@@ -56,13 +56,13 @@ export interface ColorPresentationParams extends WorkDoneProgressParams, Partial
56
56
  /**
57
57
  * A request to list all presentation for a color. The request's
58
58
  * parameter is of type {@link ColorPresentationParams} the
59
- * response is of type {@link ColorInformation ColorInformation[]} or a Thenable
59
+ * response is of type {@link ColorPresentation ColorPresentation[]} or a Thenable
60
60
  * that resolves to such.
61
61
  */
62
62
  export declare namespace ColorPresentationRequest {
63
63
  const method: 'textDocument/colorPresentation';
64
64
  const messageDirection: MessageDirection;
65
- const type: ProtocolRequestType<ColorPresentationParams, ColorPresentation[] | null, ColorPresentation[], void, WorkDoneProgressOptions & TextDocumentRegistrationOptions>;
66
- type HandlerSignature = RequestHandler<ColorPresentationParams, ColorPresentation[] | null, void>;
65
+ const type: ProtocolRequestType<ColorPresentationParams, ColorPresentation[], ColorPresentation[], void, WorkDoneProgressOptions & TextDocumentRegistrationOptions>;
66
+ type HandlerSignature = RequestHandler<ColorPresentationParams, ColorPresentation[], void>;
67
67
  const capabilities: CM<"textDocument.colorProvider", "colorProvider">;
68
68
  }
@@ -22,7 +22,7 @@ var DocumentColorRequest;
22
22
  /**
23
23
  * A request to list all presentation for a color. The request's
24
24
  * parameter is of type {@link ColorPresentationParams} the
25
- * response is of type {@link ColorInformation ColorInformation[]} or a Thenable
25
+ * response is of type {@link ColorPresentation ColorPresentation[]} or a Thenable
26
26
  * that resolves to such.
27
27
  */
28
28
  var ColorPresentationRequest;
@@ -98,7 +98,7 @@ export type TextDocumentFilterPattern = {
98
98
  * its resource, or a glob-pattern that is applied to the {@link TextDocument.fileName path}.
99
99
  *
100
100
  * Glob patterns can have the following syntax:
101
- * - `*` to match one or more characters in a path segment
101
+ * - `*` to match zero or more characters in a path segment
102
102
  * - `?` to match on one character in a path segment
103
103
  * - `**` to match any number of path segments, including none
104
104
  * - `{}` to group sub patterns into an OR expression. (e.g. `**​/*.{ts,js}` matches all TypeScript and JavaScript files)
@@ -1852,7 +1852,7 @@ export interface DidChangeWatchedFilesRegistrationOptions {
1852
1852
  }
1853
1853
  /**
1854
1854
  * The glob pattern to watch relative to the base path. Glob patterns can have the following syntax:
1855
- * - `*` to match one or more characters in a path segment
1855
+ * - `*` to match zero or more characters in a path segment
1856
1856
  * - `?` to match on one character in a path segment
1857
1857
  * - `**` to match any number of path segments, including none
1858
1858
  * - `{}` to group conditions (e.g. `**​/*.{ts,js}` matches all TypeScript and JavaScript files)
@@ -2157,6 +2157,9 @@ export interface CompletionClientCapabilities {
2157
2157
  * capabilities.
2158
2158
  */
2159
2159
  completionItem?: ClientCompletionItemOptions;
2160
+ /**
2161
+ * The client supports the following completion item kinds.
2162
+ */
2160
2163
  completionItemKind?: ClientCompletionItemOptionsKind;
2161
2164
  /**
2162
2165
  * Defines how the client handles whitespace and indentation
@@ -18,6 +18,13 @@ export type DiagnosticClientCapabilities = DiagnosticsCapabilities & {
18
18
  * Whether the clients supports related documents for document diagnostic pulls.
19
19
  */
20
20
  relatedDocumentSupport?: boolean;
21
+ /**
22
+ * Whether the client supports `MarkupContent` in diagnostic messages.
23
+ *
24
+ * @since 3.18.0
25
+ * @proposed
26
+ */
27
+ markupMessageSupport?: boolean;
21
28
  };
22
29
  /**
23
30
  * Workspace client capabilities specific to diagnostic pull requests.
@@ -80,7 +80,7 @@ export interface FileOperationPatternOptions {
80
80
  interface FileOperationPattern {
81
81
  /**
82
82
  * The glob pattern to match. Glob patterns can have the following syntax:
83
- * - `*` to match one or more characters in a path segment
83
+ * - `*` to match zero or more characters in a path segment
84
84
  * - `?` to match on one character in a path segment
85
85
  * - `**` to match any number of path segments, including none
86
86
  * - `{}` to group sub patterns into an OR expression. (e.g. `**​/*.{ts,js}` matches all TypeScript and JavaScript files)
@@ -53,13 +53,12 @@ export type InlineValueParams = WorkDoneProgressParams & {
53
53
  */
54
54
  textDocument: TextDocumentIdentifier;
55
55
  /**
56
- * The document range for which inline values should be computed.
56
+ * The document range for which inline values information will be returned.
57
57
  */
58
58
  range: Range;
59
59
  /**
60
- * Additional information about the context in which inline values were
61
- * requested.
62
- */
60
+ * Additional information about the context in which inline values information was
61
+ * requested. */
63
62
  context: InlineValueContext;
64
63
  };
65
64
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vscode-languageserver-protocol",
3
3
  "description": "VSCode Language Server Protocol implementation",
4
- "version": "3.17.6-next.17",
4
+ "version": "3.17.6-next.18",
5
5
  "author": "Microsoft Corporation",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -27,8 +27,8 @@
27
27
  }
28
28
  },
29
29
  "dependencies": {
30
- "vscode-jsonrpc": "9.0.0-next.11",
31
- "vscode-languageserver-types": "3.17.6-next.6"
30
+ "vscode-jsonrpc": "9.0.0-next.12",
31
+ "vscode-languageserver-types": "3.17.6-next.7"
32
32
  },
33
33
  "scripts": {
34
34
  "prepublishOnly": "echo \"⛔ Can only publish from a secure pipeline ⛔\" && node ../build/npm/fail",
@@ -38,7 +38,7 @@
38
38
  "compile": "tsc -b ./tsconfig.json",
39
39
  "watch": "tsc -b ./tsconfig.watch.json -w",
40
40
  "clean": "rimraf lib && rimraf dist",
41
- "lint": "eslint --ext ts src",
41
+ "lint": "eslint src",
42
42
  "test": "npm run test:node && npm run test:browser",
43
43
  "test:node": "node ../node_modules/mocha/bin/_mocha",
44
44
  "test:browser": "npm run webpack:test:silent && node ../build/bin/runBrowserTests.js http://127.0.0.1:8080/protocol/src/browser/test/",