Skip to content

Commit

Permalink
client/executeCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
kdvolder committed Oct 29, 2020
1 parent 21c21ca commit a2cea3e
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion _specifications/specification-3-16.md
Original file line number Diff line number Diff line change
Expand Up @@ -2715,7 +2715,7 @@ _Response_:
* partial result: `SymbolInformation[]` as defined above.
* error: code and message set in case an exception happens during the workspace symbol request.

#### <a href="#workspace_executeCommand" name="workspace_executeCommand" class="anchor">Execute a command (:leftwards_arrow_with_hook:)</a>
#### <a href="#workspace_executeCommand" name="workspace_executeCommand" class="anchor">Execute a server command (:leftwards_arrow_with_hook:)</a>

The `workspace/executeCommand` request is sent from the client to the server to trigger command execution on the server. In most cases the server creates a `WorkspaceEdit` structure and applies the changes to the workspace using the request `workspace/applyEdit` which is sent from the server to the client.

Expand Down Expand Up @@ -2779,6 +2779,31 @@ _Response_:
* result: `any` \| `null`
* error: code and message set in case an exception happens during the request.

#### <a href="#client_executeCommand" name="client_executeCommand" class="anchor">Execute a client command(:leftwards_arrow_with_hook:)</a>

The `client/executeCommand` request is similar to `workspace/executeCommand` but is sent from the server to the client, to trigger command execution on the client.

_Client Capability_:
* property path (optional): `client.executeCommand`
* property type: `ClientExecuteCommandClientCapabilities` defined as follows:

```typescript
export interface ClientExecuteCommandClientCapabilities {
/**
* The client supports message 'client/executeCommand'.
*/
supported: boolean;
}
```

_Request:_
* method: 'client/executeCommand'
* params: `ExecuteCommandParams` defined exactly the same way as for 'workspace/executeCommand'.

_Response_:
* result: `any` \| `null`
* error: code and message set in case an exception happens during the request.

#### <a href="#workspace_applyEdit" name="workspace_applyEdit" class="anchor">Applies a WorkspaceEdit (:arrow_right_hook:)</a>

The `workspace/applyEdit` request is sent from the server to the client to modify resource on the client side.
Expand Down

0 comments on commit a2cea3e

Please sign in to comment.