@@ -17,8 +17,9 @@ export interface ExtensionCommandQuickPickItem extends vscode.QuickPickItem {
17
17
}
18
18
19
19
export 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' ) ;
22
23
}
23
24
24
25
export interface EditorContext {
@@ -33,8 +34,9 @@ export interface InvokeExtensionCommandRequestArguments {
33
34
}
34
35
35
36
export 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' ) ;
38
40
}
39
41
40
42
export interface ExtensionCommandAddedNotificationBody {
@@ -85,8 +87,9 @@ function asCodePosition(value: Position): vscode.Position {
85
87
}
86
88
87
89
export 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' ) ;
90
93
}
91
94
92
95
export interface GetEditorContextRequestArguments {
@@ -98,8 +101,9 @@ enum EditorOperationResponse {
98
101
}
99
102
100
103
export 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' ) ;
103
107
}
104
108
105
109
export interface InsertTextRequestArguments {
@@ -109,42 +113,49 @@ export interface InsertTextRequestArguments {
109
113
}
110
114
111
115
export 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' ) ;
114
119
}
115
120
116
121
export interface SetSelectionRequestArguments {
117
122
selectionRange : Range
118
123
}
119
124
120
125
export 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' ) ;
123
129
}
124
130
125
131
export 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' ) ;
128
135
}
129
136
130
137
export 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' ) ;
133
141
}
134
142
135
143
export 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' ) ;
138
147
}
139
148
140
149
export 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' ) ;
143
153
}
144
154
145
155
export 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' ) ;
148
159
}
149
160
150
161
export interface StatusBarMessageDetails {
0 commit comments