mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-16 17:03:29 +01:00
e8b01da790
* Fix JSDoc Completion Provider
**Bug**
89da6ab81f fixed #11944 by changing how enter works in completion providers. Now if the completion exactly matches the current text, pressing `enter` is not captured by the the suggestion widget. Instead it inserts a new line into the editor. This broke the jsdoc completion provider which uses `''` as a placeholder insertion before calculating the actual insertion upon being accepted. This weird behavior is because of a of the current tsserver api
**Fix**
Change the insert text to a single space instead. This seems to fix this issue in my testing.
* Slightly more elegant fix