Skip to content

Add providers to tell user their results are incomplete  #100890

Description

@mjbvz

Problem

With #99643, VS Code will be able to provide JS/TS IntelliSense while a project is being loaded in the background. While the project is being loaded however, the IntelliSense results may not be complete.

For example, suggestions will only include suggestions from the current file and go to definition may fail if a symbol is defined in another file.

The only way a user can know that the results are incomplete is by looking for the Initializing JS/TS features entry in the status bar. I believe it would also make sense to indicate that results are incomplete inline where the results are being rendered

Proposal

Allow language feature providers to signal that a result they returned is not complete. This should include a user facing message that explains why the results are incomplete (this message should also potentially allow links so that users can learn more about the issue or take an action to fix the underlying issue)

Off the top of my head, I believe this would make sense for the following providers:

  • Completions
  • Go to definition
  • Go to implementation
  • Go to type definition
  • Go to declaration
  • Find all references
  • Workspace symbols
  • Hover?

This would allow other language extensions to offer IntelliSense that is progressively enhanced as their project loads. It would also be useful in for serverless scenarios

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

apiunder-discussionIssue is under discussion for relevance, priority, approachuxUser experience issues

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions