# Run commands if completion items require so \(\#44008\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/7bea1ba5556de14fd53d42ba5e0895c33185349d)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 7bea1ba5556de14fd53d42ba5e0895c33185349d

Requested commit: 7bea1ba5556de14fd53d42ba5e0895c33185349d

Commit: 7bea1ba5556de14fd53d42ba5e0895c33185349d

Tree: 20bcb04e83d2da739031f3511d40e253faadcb4b

Author: Kirill Bulatov

Committer: GitHub

## Message

````
Run commands if completion items require so (#44008)

Abide the LSP better and actually run commands if completion items
request those:


https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#completionItem
```
/**
   * An optional command that is executed *after* inserting this completion.
   * *Note* that additional modifications to the current document should be
   * described with the additionalTextEdits-property.
   */
   command?: [Command](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#command);
```

Release Notes:

- N/A
````

## Parents

- [7c95834b7bf194d0ee0851ee23d6257317020cb2](https://git.cafe/gitcafe/zed/commit/7c95834b7bf194d0ee0851ee23d6257317020cb2?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/7bea1ba5556de14fd53d42ba5e0895c33185349d?format=markdown)
