44 * ------------------------------------------------------------------------------------------ */
55'use strict' ;
66
7- import { RequestType , NotificationType , ResponseError } from 'vscode-jsonrpc' ;
7+ import { RequestType , RequestType0 , NotificationType , NotificationType0 , ResponseError } from 'vscode-jsonrpc' ;
88
99import {
1010 TextDocument , TextDocumentChangeEvent , TextDocumentContentChangeEvent ,
@@ -210,7 +210,7 @@ export interface ServerCapabilities {
210210 * resolves to such.
211211 */
212212export namespace InitializeRequest {
213- export const type : RequestType < InitializeParams , InitializeResult , InitializeError > = { get method ( ) { return 'initialize' ; } } ;
213+ export const type : RequestType < InitializeParams , InitializeResult , InitializeError > = { get method ( ) { return 'initialize' ; } , _ : undefined } ;
214214}
215215
216216/**
@@ -277,7 +277,7 @@ export interface InitializeError {
277277 * is the exit event.
278278 */
279279export namespace ShutdownRequest {
280- export const type : RequestType < void , void , void > = { get method ( ) { return 'shutdown' ; } } ;
280+ export const type : RequestType0 < void , void > = { get method ( ) { return 'shutdown' ; } , _ : undefined } ;
281281}
282282
283283//---- Exit Notification ----
@@ -287,7 +287,7 @@ export namespace ShutdownRequest {
287287 * ask the server to exit its process.
288288 */
289289export namespace ExitNotification {
290- export const type : NotificationType < void > = { get method ( ) { return 'exit' ; } } ;
290+ export const type : NotificationType0 = { get method ( ) { return 'exit' ; } , _ : undefined } ;
291291}
292292
293293//---- Configuration notification ----
@@ -298,7 +298,7 @@ export namespace ExitNotification {
298298 * the changed configuration as defined by the language client.
299299 */
300300export namespace DidChangeConfigurationNotification {
301- export const type : NotificationType < DidChangeConfigurationParams > = { get method ( ) { return 'workspace/didChangeConfiguration' ; } } ;
301+ export const type : NotificationType < DidChangeConfigurationParams > = { get method ( ) { return 'workspace/didChangeConfiguration' ; } , _ : undefined } ;
302302}
303303
304304/**
@@ -355,7 +355,7 @@ export interface ShowMessageParams {
355355 * the client to display a particular message in the user interface.
356356 */
357357export namespace ShowMessageNotification {
358- export const type : NotificationType < ShowMessageParams > = { get method ( ) { return 'window/showMessage' ; } } ;
358+ export const type : NotificationType < ShowMessageParams > = { get method ( ) { return 'window/showMessage' ; } , _ : undefined } ;
359359}
360360
361361export interface MessageActionItem {
@@ -387,15 +387,15 @@ export interface ShowMessageRequestParams {
387387 * and a set of options actions to the user.
388388 */
389389export namespace ShowMessageRequest {
390- export const type : RequestType < ShowMessageRequestParams , MessageActionItem , void > = { get method ( ) { return 'window/showMessageRequest' ; } } ;
390+ export const type : RequestType < ShowMessageRequestParams , MessageActionItem , void > = { get method ( ) { return 'window/showMessageRequest' ; } , _ : undefined } ;
391391}
392392
393393/**
394394 * The log message notification is send from the server to the client to ask
395395 * the client to log a particular message.
396396 */
397397export namespace LogMessageNotification {
398- export let type : NotificationType < LogMessageParams > = { get method ( ) { return 'window/logMessage' ; } } ;
398+ export let type : NotificationType < LogMessageParams > = { get method ( ) { return 'window/logMessage' ; } , _ : undefined } ;
399399}
400400
401401/**
@@ -420,7 +420,7 @@ export interface LogMessageParams {
420420 * the client to log telemetry data.
421421 */
422422export namespace TelemetryEventNotification {
423- export let type : NotificationType < any > = { get method ( ) { return 'telemetry/event' ; } } ;
423+ export let type : NotificationType < any > = { get method ( ) { return 'telemetry/event' ; } , _ : undefined } ;
424424}
425425
426426//---- Text document notifications ----
@@ -442,7 +442,7 @@ export interface DidOpenTextDocumentParams {
442442 * uri.
443443 */
444444export namespace DidOpenTextDocumentNotification {
445- export const type : NotificationType < DidOpenTextDocumentParams > = { get method ( ) { return 'textDocument/didOpen' ; } } ;
445+ export const type : NotificationType < DidOpenTextDocumentParams > = { get method ( ) { return 'textDocument/didOpen' ; } , _ : undefined } ;
446446}
447447
448448/**
@@ -488,7 +488,7 @@ export interface DidChangeTextDocumentParams {
488488 * changes to a text document.
489489 */
490490export namespace DidChangeTextDocumentNotification {
491- export const type : NotificationType < DidChangeTextDocumentParams > = { get method ( ) { return 'textDocument/didChange' ; } } ;
491+ export const type : NotificationType < DidChangeTextDocumentParams > = { get method ( ) { return 'textDocument/didChange' ; } , _ : undefined } ;
492492}
493493
494494/**
@@ -508,7 +508,7 @@ export interface DidCloseTextDocumentParams {
508508 * the truth now exists on disk).
509509 */
510510export namespace DidCloseTextDocumentNotification {
511- export const type : NotificationType < DidCloseTextDocumentParams > = { get method ( ) { return 'textDocument/didClose' ; } } ;
511+ export const type : NotificationType < DidCloseTextDocumentParams > = { get method ( ) { return 'textDocument/didClose' ; } , _ : undefined } ;
512512}
513513
514514/**
@@ -526,7 +526,7 @@ export interface DidSaveTextDocumentParams {
526526 * the document got saved in the client.
527527 */
528528export namespace DidSaveTextDocumentNotification {
529- export const type : NotificationType < DidSaveTextDocumentParams > = { get method ( ) { return 'textDocument/didSave' ; } } ;
529+ export const type : NotificationType < DidSaveTextDocumentParams > = { get method ( ) { return 'textDocument/didSave' ; } , _ : undefined } ;
530530}
531531
532532//---- File eventing ----
@@ -536,7 +536,7 @@ export namespace DidSaveTextDocumentNotification {
536536 * the client detects changes to file watched by the lanaguage client.
537537 */
538538export namespace DidChangeWatchedFilesNotification {
539- export const type : NotificationType < DidChangeWatchedFilesParams > = { get method ( ) { return 'workspace/didChangeWatchedFiles' ; } } ;
539+ export const type : NotificationType < DidChangeWatchedFilesParams > = { get method ( ) { return 'workspace/didChangeWatchedFiles' ; } , _ : undefined } ;
540540}
541541
542542/**
@@ -588,7 +588,7 @@ export interface FileEvent {
588588 * results of validation runs.
589589 */
590590export namespace PublishDiagnosticsNotification {
591- export const type : NotificationType < PublishDiagnosticsParams > = { get method ( ) { return 'textDocument/publishDiagnostics' ; } } ;
591+ export const type : NotificationType < PublishDiagnosticsParams > = { get method ( ) { return 'textDocument/publishDiagnostics' ; } , _ : undefined } ;
592592}
593593
594594/**
@@ -615,7 +615,7 @@ export interface PublishDiagnosticsParams {
615615 * or a Thenable that resolves to such.
616616 */
617617export namespace CompletionRequest {
618- export const type : RequestType < TextDocumentPositionParams , CompletionItem [ ] | CompletionList , void > = { get method ( ) { return 'textDocument/completion' ; } } ;
618+ export const type : RequestType < TextDocumentPositionParams , CompletionItem [ ] | CompletionList , void > = { get method ( ) { return 'textDocument/completion' ; } , _ : undefined } ;
619619}
620620
621621/**
@@ -624,7 +624,7 @@ export namespace CompletionRequest {
624624 * is of type [CompletionItem](#CompletionItem) or a Thenable that resolves to such.
625625 */
626626export namespace CompletionResolveRequest {
627- export const type : RequestType < CompletionItem , CompletionItem , void > = { get method ( ) { return 'completionItem/resolve' ; } } ;
627+ export const type : RequestType < CompletionItem , CompletionItem , void > = { get method ( ) { return 'completionItem/resolve' ; } , _ : undefined } ;
628628}
629629
630630//---- Hover Support -------------------------------
@@ -637,13 +637,13 @@ export type MarkedString = string | { language: string; value: string };
637637 * type [Hover](#Hover) or a Thenable that resolves to such.
638638 */
639639export namespace HoverRequest {
640- export const type : RequestType < TextDocumentPositionParams , Hover , void > = { get method ( ) { return 'textDocument/hover' ; } } ;
640+ export const type : RequestType < TextDocumentPositionParams , Hover , void > = { get method ( ) { return 'textDocument/hover' ; } , _ : undefined } ;
641641}
642642
643643//---- SignatureHelp ----------------------------------
644644
645645export namespace SignatureHelpRequest {
646- export const type : RequestType < TextDocumentPositionParams , SignatureHelp , void > = { get method ( ) { return 'textDocument/signatureHelp' ; } } ;
646+ export const type : RequestType < TextDocumentPositionParams , SignatureHelp , void > = { get method ( ) { return 'textDocument/signatureHelp' ; } , _ : undefined } ;
647647}
648648
649649//---- Goto Definition -------------------------------------
@@ -656,7 +656,7 @@ export namespace SignatureHelpRequest {
656656 * Thenable that resolves to such.
657657 */
658658export namespace DefinitionRequest {
659- export const type : RequestType < TextDocumentPositionParams , Definition , void > = { get method ( ) { return 'textDocument/definition' ; } } ;
659+ export const type : RequestType < TextDocumentPositionParams , Definition , void > = { get method ( ) { return 'textDocument/definition' ; } , _ : undefined } ;
660660}
661661
662662//---- Reference Provider ----------------------------------
@@ -675,7 +675,7 @@ export interface ReferenceParams extends TextDocumentPositionParams {
675675 * [Location[]](#Location) or a Thenable that resolves to such.
676676 */
677677export namespace ReferencesRequest {
678- export const type : RequestType < ReferenceParams , Location [ ] , void > = { get method ( ) { return 'textDocument/references' ; } } ;
678+ export const type : RequestType < ReferenceParams , Location [ ] , void > = { get method ( ) { return 'textDocument/references' ; } , _ : undefined } ;
679679}
680680
681681//---- Document Highlight ----------------------------------
@@ -687,7 +687,7 @@ export namespace ReferencesRequest {
687687 * (#DocumentHighlight) or a Thenable that resolves to such.
688688 */
689689export namespace DocumentHighlightRequest {
690- export const type : RequestType < TextDocumentPositionParams , DocumentHighlight [ ] , void > = { get method ( ) { return 'textDocument/documentHighlight' ; } } ;
690+ export const type : RequestType < TextDocumentPositionParams , DocumentHighlight [ ] , void > = { get method ( ) { return 'textDocument/documentHighlight' ; } , _ : undefined } ;
691691}
692692
693693//---- Document Symbol Provider ---------------------------
@@ -709,7 +709,7 @@ export interface DocumentSymbolParams {
709709 * that resolves to such.
710710 */
711711export namespace DocumentSymbolRequest {
712- export const type : RequestType < DocumentSymbolParams , SymbolInformation [ ] , void > = { get method ( ) { return 'textDocument/documentSymbol' ; } } ;
712+ export const type : RequestType < DocumentSymbolParams , SymbolInformation [ ] , void > = { get method ( ) { return 'textDocument/documentSymbol' ; } , _ : undefined } ;
713713}
714714
715715//---- Workspace Symbol Provider ---------------------------
@@ -731,7 +731,7 @@ export interface WorkspaceSymbolParams {
731731 * resolves to such.
732732 */
733733export namespace WorkspaceSymbolRequest {
734- export const type : RequestType < WorkspaceSymbolParams , SymbolInformation [ ] , void > = { get method ( ) { return 'workspace/symbol' ; } } ;
734+ export const type : RequestType < WorkspaceSymbolParams , SymbolInformation [ ] , void > = { get method ( ) { return 'workspace/symbol' ; } , _ : undefined } ;
735735}
736736
737737//---- Code Action Provider ----------------------------------
@@ -762,7 +762,7 @@ export interface CodeActionParams {
762762 * A request to provide commands for the given text document and range.
763763 */
764764export namespace CodeActionRequest {
765- export const type : RequestType < CodeActionParams , Command [ ] , void > = { get method ( ) { return 'textDocument/codeAction' ; } } ;
765+ export const type : RequestType < CodeActionParams , Command [ ] , void > = { get method ( ) { return 'textDocument/codeAction' ; } , _ : undefined } ;
766766}
767767
768768//---- Code Lens Provider -------------------------------------------
@@ -781,14 +781,14 @@ export interface CodeLensParams {
781781 * A request to provide code lens for the given text document.
782782 */
783783export namespace CodeLensRequest {
784- export const type : RequestType < CodeLensParams , CodeLens [ ] , void > = { get method ( ) { return 'textDocument/codeLens' ; } } ;
784+ export const type : RequestType < CodeLensParams , CodeLens [ ] , void > = { get method ( ) { return 'textDocument/codeLens' ; } , _ : undefined } ;
785785}
786786
787787/**
788788 * A request to resolve a command for a given code lens.
789789 */
790790export namespace CodeLensResolveRequest {
791- export const type : RequestType < CodeLens , CodeLens , void > = { get method ( ) { return 'codeLens/resolve' ; } } ;
791+ export const type : RequestType < CodeLens , CodeLens , void > = { get method ( ) { return 'codeLens/resolve' ; } , _ : undefined } ;
792792}
793793
794794//---- Formatting ----------------------------------------------
@@ -809,7 +809,7 @@ export interface DocumentFormattingParams {
809809 * A request to to format a whole document.
810810 */
811811export namespace DocumentFormattingRequest {
812- export const type : RequestType < DocumentFormattingParams , TextEdit [ ] , void > = { get method ( ) { return 'textDocument/formatting' ; } } ;
812+ export const type : RequestType < DocumentFormattingParams , TextEdit [ ] , void > = { get method ( ) { return 'textDocument/formatting' ; } , _ : undefined } ;
813813}
814814
815815export interface DocumentRangeFormattingParams {
@@ -833,7 +833,7 @@ export interface DocumentRangeFormattingParams {
833833 * A request to to format a range in a document.
834834 */
835835export namespace DocumentRangeFormattingRequest {
836- export const type : RequestType < DocumentRangeFormattingParams , TextEdit [ ] , void > = { get method ( ) { return 'textDocument/rangeFormatting' ; } } ;
836+ export const type : RequestType < DocumentRangeFormattingParams , TextEdit [ ] , void > = { get method ( ) { return 'textDocument/rangeFormatting' ; } , _ : undefined } ;
837837}
838838
839839export interface DocumentOnTypeFormattingParams {
@@ -862,7 +862,7 @@ export interface DocumentOnTypeFormattingParams {
862862 * A request to format a document on type.
863863 */
864864export namespace DocumentOnTypeFormattingRequest {
865- export const type : RequestType < DocumentOnTypeFormattingParams , TextEdit [ ] , void > = { get method ( ) { return 'textDocument/onTypeFormatting' ; } } ;
865+ export const type : RequestType < DocumentOnTypeFormattingParams , TextEdit [ ] , void > = { get method ( ) { return 'textDocument/onTypeFormatting' ; } , _ : undefined } ;
866866}
867867
868868//---- Rename ----------------------------------------------
@@ -890,7 +890,7 @@ export interface RenameParams {
890890 * A request to rename a symbol.
891891 */
892892export namespace RenameRequest {
893- export const type : RequestType < RenameParams , WorkspaceEdit , void > = { get method ( ) { return 'textDocument/rename' ; } } ;
893+ export const type : RequestType < RenameParams , WorkspaceEdit , void > = { get method ( ) { return 'textDocument/rename' ; } , _ : undefined } ;
894894}
895895
896896//---- Document Links ----------------------------------------------
@@ -906,7 +906,7 @@ export interface DocumentLinkParams {
906906 * A request to provide document links
907907 */
908908export namespace DocumentLinkRequest {
909- export const type : RequestType < DocumentLinkParams , DocumentLink [ ] , void > = { get method ( ) { return 'textDocument/documentLink' ; } } ;
909+ export const type : RequestType < DocumentLinkParams , DocumentLink [ ] , void > = { get method ( ) { return 'textDocument/documentLink' ; } , _ : undefined } ;
910910}
911911
912912/**
@@ -915,5 +915,5 @@ export namespace DocumentLinkRequest {
915915 * is of type [DocumentLink](#DocumentLink) or a Thenable that resolves to such.
916916 */
917917export namespace DocumentLinkResolveRequest {
918- export const type : RequestType < DocumentLink , DocumentLink , void > = { get method ( ) { return 'documentLink/resolve' ; } } ;
918+ export const type : RequestType < DocumentLink , DocumentLink , void > = { get method ( ) { return 'documentLink/resolve' ; } , _ : undefined } ;
919919}
0 commit comments