-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Add exported members of all project files in the global completion list #13921
Conversation
@zhengbli Does this include files under |
Yes as long as they have been used in the project at least once |
Will the first time import of a class work (this class has not been imported into my source, but the |
No you have to import that module at least once anywhere in your project, so that module becomes part of your project. Otherwise it would be too expensive to search all the folders all the time. The same applies to how we implements the current quick fix now. |
@zhengbli The sheer mention of a dependency in Only So the amount of change cycles that trigger autocomplete index to change are relatively limited from the point of view of the files under Unless I'm missing something, forcing user to import at least once in the project is an arbitrary expectation. Please let me know if I've missed something |
I agree parsing |
@zhengbli Is this change going to be part of 2.3? |
4b35f01
to
d7678b9
Compare
@thekalinga at this point I'm not sure, depends on if the team has the time to review the changes |
d7678b9
to
4b35f01
Compare
fcdbd06
to
e60e239
Compare
… importsInCompletion
Updated with the feature embedded in the "CompletionEntryDetails" API call. |
The API looks good to me for VSCode. Looking forward to picking up this change |
… importsInCompletion
I'm looking for too for this great feature to integrate it inside Eclipse. Do you know when you think you could merge this issue to master to consume it with typescript@dev ? |
This is redone in #17851 |
Fixes #7849
This PR adds several things:
CompletionEntry
now has a new propertyhasAction
, indicating if the user commits it, additional code actions will be needed to avoid errors;hasAction
set totrue
, the editor can send aCommitCompletionWithCodeAction
request to the server to get the corresponding code actions, and then apply them just like other code actions.