GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add an option to enable/disable JSDoc autocomplete by jsynowiec · Pull Request #23704 · microsoft/vscode

Conversation

@jsynowiec

@jsynowiec Jakub Synowiec (jsynowiec) commented Mar 30, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Hopefully addresses #23642

This PR introduces a new settings option for TypeScript extension:

"jsDocCompletion.enabled": {
  "type": "boolean",
  "default": true,
  "description": "%jsDocCompletion.enabled%"
}

which allows to enable or disable expanding /** using docCommentTemplate tsserver command. When set to false the default SnippetString is used.

mar-31-2017 12-37-02

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Haroenv and danvk reacted with heart emoji
All reactions
  • ❤️ 2 reactions
Jakub Synowiec added 4 commits March 31, 2017 00:36
Jakub Synowiec
Add new option to disable/enable jsdoc autocompletion
ff1b07d
Jakub Synowiec
Refactor JsDocCompletionItem
0269d71
- 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
Jakub Synowiec
Change how and when JsDocCompletionHelper is registered
d1ba323
Register JsDocCompletionHelper and update configuration in registerProviders instead of activate. Also react to configuration change.
Jakub Synowiec
Rename JsDocCompletionHelper to JsDocCompletionProvider
8b11046
@mention-bot

Mention Bot (mention-bot) commented Mar 30, 2017

Copy link
Copy Markdown

Jakub Synowiec (@jsynowiec), thanks for your PR! By analyzing the history of the files in this pull request, we identified Dirk Bäumer (@dbaeumer) and Erich Gamma (@egamma) to be potential reviewers.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@msftclas

Microsoft Contribution License Agreements (msftclas) commented Mar 30, 2017

Copy link
Copy Markdown

@jsynowiec,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.

It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@msftclas Microsoft Contribution License Agreements (msftclas) added the cla-required label Mar 30, 2017
@msftclas

Microsoft Contribution License Agreements (msftclas) commented Mar 30, 2017

Copy link
Copy Markdown

Jakub Synowiec (@jsynowiec), thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.

Thanks, Microsoft Pull Request Bot

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@msftclas Microsoft Contribution License Agreements (msftclas) added cla-signed and removed cla-required labels Mar 30, 2017
Jakub Synowiec
Add missing newline at the eof
aaf082d
@aeschli Martin Aeschlimann (aeschli) assigned Matt Bierner (mjbvz) Mar 31, 2017
@jsynowiec

Jakub Synowiec (jsynowiec) commented Mar 31, 2017

Copy link
Copy Markdown
Contributor Author

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 CompletionItem without showing the item preview. All ideas are welcome.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Jakub Synowiec
Restore completion prompt for JSDoc autocomplete
27738a3
Restores internal command but but as a separate class. Registers command on extension activation.
@jsynowiec

Jakub Synowiec (jsynowiec) commented Mar 31, 2017

Copy link
Copy Markdown
Contributor Author

Hopefully all should be OK now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chrmarti

Christof Marti (chrmarti) commented Mar 31, 2017

Copy link
Copy Markdown
Collaborator

Jakub Synowiec (@jsynowiec) Thanks for the PR! We're currently finishing the upcoming release and will look into it some time next week.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mjbvz Matt Bierner (mjbvz) added this to the April 2017 milestone Apr 3, 2017
@mjbvz
Matt Bierner (mjbvz) merged commit 70e074a into microsoft:master Apr 3, 2017
@mjbvz

Matt Bierner (mjbvz) commented Apr 3, 2017

Copy link
Copy Markdown
Contributor

Thanks Jakub Synowiec (@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

jsynowiec reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mjbvz Matt Bierner (mjbvz) mentioned this pull request Apr 3, 2017
Expose a setting to disable JSDoc autocompletion #23642
Closed
@jsynowiec
Jakub Synowiec (jsynowiec) deleted the feature/jsdoc-autocomplete-setting branch April 3, 2017 18:57
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@mjbvz Matt Bierner (mjbvz)

Labels

None yet

Projects

None yet

Milestone

April 2017

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@jsynowiec @mention-bot @msftclas @chrmarti @mjbvz
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.