Skip to content
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

IDE tooling (analysis server) implementation for named arguments anywhere #47578

Closed
20 of 25 tasks
Tracked by #47451
devoncarew opened this issue Oct 29, 2021 · 12 comments
Closed
20 of 25 tasks
Tracked by #47451
Assignees
Labels
analyzer-server area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug

Comments

@devoncarew
Copy link
Member

devoncarew commented Oct 29, 2021

This is the analysis server work for the named arguments anywhere feature.

For addition information, see

The following is a list of the individual features that need to be considered.

  • Quick Assists
  • Closing Labels (brianwilkerson, NA)
  • Code Completion (scheglov)
  • documentSymbol
  • Quick Fixes (support for new features in existing fixes)
  • Quick Fixes (new fixes)
  • Flutter Outline (scheglov)
  • Code Folding (brianwilkerson, NA)
  • Hovers (brianwilkerson, NA)
  • Implemented Markers (brianwilkerson, NA)
  • Navigation (scheglov)
  • Occurrences (scheglov)
  • Organize Imports (brianwilkerson, NA)
  • Outline (brianwilkerson, NA)
  • Overrides Markers (brianwilkerson, NA)
  • Refactorings (scheglov)
  • Search - Find References (scheglov)
  • Search - Member Declarations (brianwilkerson, NA)
  • Search - Member References (brianwilkerson, NA)
  • Search - Top-level Declarations (brianwilkerson, NA)
  • selectionRange
  • Semantic Highlights (scheglov)
  • signatureHelp
  • Sort Members (brianwilkerson, NA)
  • Type Hierarchy (brianwilkerson, NA)
@jacob314
Copy link
Member

Fyi @jwren for impact on the Dart IntelliJ plugin.
Fyi @bwilkerson for integration with the analysis server.

@jwren
Copy link
Member

jwren commented Oct 30, 2021

@devoncarew From the tooling and completion standpoint this is an unfortunate change, previously we could be smart enough to know the types of each required parameter before recommending the named arguments, now they'll be conflated.

@bwilkerson
Copy link
Member

bwilkerson commented Nov 1, 2021 via email

@devoncarew
Copy link
Member Author

FYI, the IntelliJ specific pieces are tracked here: #47592.

@devoncarew devoncarew added the area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. label Nov 1, 2021
@srawlins srawlins added analyzer-server P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug labels Nov 15, 2021
@devoncarew devoncarew changed the title IDE tooling implementation for named arguments anywhere IDE tooling (analysis server) implementation for named arguments anywhere Nov 30, 2021
@jacob314
Copy link
Member

Currently we are not very aggressive at showing completions that match the type so I don't expect much of a regression.
For Flutter I don't expect this change will have any impact at least initially as Widget Flutter APIs with named arguments tend not have any positional arguments.
We could think about how we can use our autocomplete quality metrics to verify there will be minimal regression for existing code and revisit in a few months to make sure that is still the case after APIs and usage evolves due to this change.

@devoncarew devoncarew assigned bwilkerson and unassigned jacob314 Jan 27, 2022
copybara-service bot pushed a commit that referenced this issue Feb 2, 2022
Bug: #48067, #47578
Change-Id: Iaef317459c7e6901296475163959ad92a6c880b2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/231070
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
@itsjustkevin
Copy link
Contributor

@jacob314 are we complete with this work?

@itsjustkevin
Copy link
Contributor

@bwilkerson do we need to move some of this work to 2.18?

@bwilkerson
Copy link
Member

@scheglov

@scheglov
Copy link
Contributor

I did all pieces that I wanted to do, or have knowledge about.
The rest looks as LSP specific, about which I don't know much.

@bwilkerson
Copy link
Member

@DanTup

@DanTup
Copy link
Collaborator

DanTup commented May 30, 2022

I had a look through selectionRange and signatureHelp but I can't see anything that should need changing. Was the list above compiled from use of some specific APIs, or was it just a general list of features to check?

@bwilkerson
Copy link
Member

It's just a general list of features to check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-server area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

8 participants