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

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.
@@ -1,4 +1,5 @@
1
- import { RequestType, RequestHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
1
+ import { RequestHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
2
+ import { ProtocolRequestType } from './messages';
2
3
  import { PartialResultParams } from './protocol';
3
4
  export interface ConfigurationClientCapabilities {
4
5
  /**
@@ -21,7 +22,7 @@ export interface ConfigurationClientCapabilities {
21
22
  * change event and empty the cache if such an event is received.
22
23
  */
23
24
  export declare namespace ConfigurationRequest {
24
- const type: RequestType<ConfigurationParams & PartialResultParams, any[], void, void>;
25
+ const type: ProtocolRequestType<ConfigurationParams & PartialResultParams, any[], never, void, void>;
25
26
  type HandlerSignature = RequestHandler<ConfigurationParams, any[], void>;
26
27
  type MiddlewareSignature = (params: ConfigurationParams, token: CancellationToken, next: HandlerSignature) => HandlerResult<any[], void>;
27
28
  }
@@ -4,7 +4,7 @@
4
4
  * ------------------------------------------------------------------------------------------ */
5
5
  'use strict';
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- const vscode_jsonrpc_1 = require("vscode-jsonrpc");
7
+ const messages_1 = require("./messages");
8
8
  /**
9
9
  * The 'workspace/configuration' request is sent from the server to the client to fetch a certain
10
10
  * configuration setting.
@@ -16,5 +16,5 @@ const vscode_jsonrpc_1 = require("vscode-jsonrpc");
16
16
  */
17
17
  var ConfigurationRequest;
18
18
  (function (ConfigurationRequest) {
19
- ConfigurationRequest.type = new vscode_jsonrpc_1.RequestType('workspace/configuration');
19
+ ConfigurationRequest.type = new messages_1.ProtocolRequestType('workspace/configuration');
20
20
  })(ConfigurationRequest = exports.ConfigurationRequest || (exports.ConfigurationRequest = {}));