Skip to content

Add activeSignatureHelp to SignatureHelpContext - #65440

Merged
Matt Bierner (mjbvz) merged 7 commits into
masterfrom
dev/mjbvz/activeSignatureHelp
Jan 7, 2019
Merged

Matt Bierner (mjbvz) merged 7 commits into
masterfrom
dev/mjbvz/activeSignatureHelp

Conversation

@mjbvz

@mjbvz Matt Bierner (mjbvz) commented Dec 20, 2018 •

Copy link
Copy Markdown
Contributor

For #33413

Adds the active SignatureHelp object (which has the correct activeSignature set) to the SignatureHelpContext. This allows signature help providers to use the activeSignature info to take into account if the user has arrowed through signature help results

Todo:

  • Tests are failing. Not part of this change directly but a logic error that this change revealed
  • How can we ensure that custom SignatureHelp objects are not lost when returned through the SignatureHelpContext?

@jrieken

Copy link
Copy Markdown
Contributor

How can we ensure that custom SignatureHelp objects

We have two ways to do this:

  • Implement a custom lifecycle and custom caching, e.g. as done for IntelliSense
  • Use the heap service. That's more convenient but less performant since the main thread walks all objects. This is how it works: On the ext host use ExtHostHeapService#keep which will keep the object and mix-in an id, on the main side use IHeapService#trackRecursive. Once the main side object is GC'ed, the ext-side object will be removed

Matt Bierner added 5 commits January 7, 2019 12:57
For #33413

Adds the active `SignatureHelp` object (along with the active signature) to the `SignatureHelpContext`.

Todo:

- [ ] Tests are failing. Not part of  this change directly but a logic error that this change revealed
- How can we ensure that custom `SignatureHelp` objects are not lost when returned in the `SignatureHelpContext`
Makes sure custom SignatureHelp objects are correctly saved off in the  `activeSignature` part of the context
@mjbvz
Matt Bierner (mjbvz) merged commit 4a38520 into master Jan 7, 2019
@mjbvz

Copy link
Copy Markdown
Contributor Author

Merging in to proposed api

@mjbvz
Matt Bierner (mjbvz) deleted the dev/mjbvz/activeSignatureHelp branch January 7, 2019 21:56
Matt Bierner (mjbvz) pushed a commit that referenced this pull request Jan 8, 2019
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants