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
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 featuresentry in the status bar. I believe it would also make sense to indicate that results are incomplete inline where the results are being renderedProposal
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:
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