Add an option to enable/disable JSDoc autocomplete#23704
Add an option to enable/disable JSDoc autocomplete#23704mjbvz merged 6 commits intomicrosoft:masterfrom jsynowiec:feature/jsdoc-autocomplete-setting
Conversation
- remove internal command - move TS service call and template generation to CompletionItem - only call TS service if JSDoc completion is enabled in settings - add local config and config update method to CompletionProvider
Register JsDocCompletionHelper and update configuration in registerProviders instead of activate. Also react to configuration change.
|
@jsynowiec, thanks for your PR! By analyzing the history of the files in this pull request, we identified @dbaeumer and @egamma to be potential reviewers. |
|
@jsynowiec, It will cover your contributions to all Microsoft-managed open source projects. |
|
@jsynowiec, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request. |
|
Ok, I now see why it was done using an internal command. Reading docs and looking into other ways of restoring the previous behavior rather than immediately resolving the |
Restores internal command but but as a separate class. Registers command on extension activation.
|
Hopefully all should be OK now. |
|
@jsynowiec Thanks for the PR! We're currently finishing the upcoming release and will look into it some time next week. |
|
Thanks @jsynowiec! This looks like a good change. It came in a little late for the upcoming March release but it should be in the April insiders builds once those resume and in the 1.12 release |
Hopefully addresses #23642
This PR introduces a new settings option for TypeScript extension:
which allows to enable or disable expanding
/**usingdocCommentTemplatetsserver command. When set tofalsethe default SnippetString is used.