( client: MonacoLanguageClient, command: string, args: unknown[] | undefined )
| 299 | }; |
| 300 | |
| 301 | export const executeCommand = async ( |
| 302 | client: MonacoLanguageClient, |
| 303 | command: string, |
| 304 | args: unknown[] | undefined |
| 305 | ) => { |
| 306 | const executeCommandParams: ExecuteCommandParams = { |
| 307 | command, |
| 308 | arguments: args, |
| 309 | }; |
| 310 | setConnState({ lastCommand: executeCommandParams }); |
| 311 | return client.sendRequest("workspace/executeCommand", executeCommandParams); |
| 312 | }; |
| 313 | |
| 314 | export const subscribeConnectionState = (listener: () => void) => { |
| 315 | listeners.add(listener); |
no test coverage detected