-
Notifications
You must be signed in to change notification settings - Fork 27.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option to enable/disable JSDoc autocomplete #23704
Add an option to enable/disable JSDoc autocomplete #23704
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
/**
usingdocCommentTemplate
tsserver command. When set tofalse
the default SnippetString is used.