@@ -17,8 +17,9 @@ export interface ExtensionCommandQuickPickItem extends vscode.QuickPickItem {
1717}
1818
1919export namespace InvokeExtensionCommandRequest {
20- export const type : RequestType < InvokeExtensionCommandRequestArguments , void , void > =
21- { get method ( ) { return 'powerShell/invokeExtensionCommand' ; } } ;
20+ export const type =
21+ new RequestType < InvokeExtensionCommandRequestArguments , void , void , void > (
22+ 'powerShell/invokeExtensionCommand' ) ;
2223}
2324
2425export interface EditorContext {
@@ -33,8 +34,9 @@ export interface InvokeExtensionCommandRequestArguments {
3334}
3435
3536export namespace ExtensionCommandAddedNotification {
36- export const type : NotificationType < ExtensionCommandAddedNotificationBody > =
37- { get method ( ) { return 'powerShell/extensionCommandAdded' ; } } ;
37+ export const type =
38+ new NotificationType < ExtensionCommandAddedNotificationBody , void > (
39+ 'powerShell/extensionCommandAdded' ) ;
3840}
3941
4042export interface ExtensionCommandAddedNotificationBody {
@@ -85,8 +87,9 @@ function asCodePosition(value: Position): vscode.Position {
8587}
8688
8789export namespace GetEditorContextRequest {
88- export const type : RequestType < GetEditorContextRequestArguments , EditorContext , void > =
89- { get method ( ) { return 'editor/getEditorContext' ; } } ;
90+ export const type =
91+ new RequestType < GetEditorContextRequestArguments , EditorContext , void , void > (
92+ 'editor/getEditorContext' ) ;
9093}
9194
9295export interface GetEditorContextRequestArguments {
@@ -98,8 +101,9 @@ enum EditorOperationResponse {
98101}
99102
100103export namespace InsertTextRequest {
101- export const type : RequestType < InsertTextRequestArguments , EditorOperationResponse , void > =
102- { get method ( ) { return 'editor/insertText' ; } } ;
104+ export const type =
105+ new RequestType < InsertTextRequestArguments , EditorOperationResponse , void , void > (
106+ 'editor/insertText' ) ;
103107}
104108
105109export interface InsertTextRequestArguments {
@@ -109,42 +113,49 @@ export interface InsertTextRequestArguments {
109113}
110114
111115export namespace SetSelectionRequest {
112- export const type : RequestType < SetSelectionRequestArguments , EditorOperationResponse , void > =
113- { get method ( ) { return 'editor/setSelection' ; } } ;
116+ export const type =
117+ new RequestType < SetSelectionRequestArguments , EditorOperationResponse , void , void > (
118+ 'editor/setSelection' ) ;
114119}
115120
116121export interface SetSelectionRequestArguments {
117122 selectionRange : Range
118123}
119124
120125export namespace OpenFileRequest {
121- export const type : RequestType < string , EditorOperationResponse , void > =
122- { get method ( ) { return 'editor/openFile' ; } } ;
126+ export const type =
127+ new RequestType < string , EditorOperationResponse , void , void > (
128+ 'editor/openFile' ) ;
123129}
124130
125131export namespace CloseFileRequest {
126- export const type : RequestType < string , EditorOperationResponse , void > =
127- { get method ( ) { return 'editor/closeFile' ; } } ;
132+ export const type =
133+ new RequestType < string , EditorOperationResponse , void , void > (
134+ 'editor/closeFile' ) ;
128135}
129136
130137export namespace ShowErrorMessageRequest {
131- export const type : RequestType < string , EditorOperationResponse , void > =
132- { get method ( ) { return 'editor/showErrorMessage' ; } } ;
138+ export const type =
139+ new RequestType < string , EditorOperationResponse , void , void > (
140+ 'editor/showErrorMessage' ) ;
133141}
134142
135143export namespace ShowWarningMessageRequest {
136- export const type : RequestType < string , EditorOperationResponse , void > =
137- { get method ( ) { return 'editor/showWarningMessage' ; } } ;
144+ export const type =
145+ new RequestType < string , EditorOperationResponse , void , void > (
146+ 'editor/showWarningMessage' ) ;
138147}
139148
140149export namespace ShowInformationMessageRequest {
141- export const type : RequestType < string , EditorOperationResponse , void > =
142- { get method ( ) { return 'editor/showInformationMessage' ; } } ;
150+ export const type =
151+ new RequestType < string , EditorOperationResponse , void , void > (
152+ 'editor/showInformationMessage' ) ;
143153}
144154
145155export namespace SetStatusBarMessageRequest {
146- export const type : RequestType < StatusBarMessageDetails , EditorOperationResponse , void > =
147- { get method ( ) { return 'editor/setStatusBarMessage' ; } } ;
156+ export const type =
157+ new RequestType < StatusBarMessageDetails , EditorOperationResponse , void , void > (
158+ 'editor/setStatusBarMessage' ) ;
148159}
149160
150161export interface StatusBarMessageDetails {
0 commit comments