-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
How to get whole CompletionItems that vscode provided in language service API "registerCompletionItemProvider"? #578
Comments
From @jrieken on November 10, 2015 14:48 unsure if i have understood your question correctly, but wrt
so, to just get completions it's enough to return an array of completion items from |
From @BleyChen on November 11, 2015 2:54 sorry ,maybe my description is not very clear ,as we know , when we write JavaScript Code in JS File ,it will pop up completion list, what I want to know is that whether I can get completion list provided by the VSCode itself in provideCompletionItems. |
From @BleyChen on November 13, 2015 3:53 jrieken, i have two questions as following 2#. i found that resolveCompletionItem will be triggered only when completion item which is provided by myself was selected ,so i want to know whether resolveCompletionItem can be called when user select someone else completion item in completion list UI, thank you! |
From @jrieken on November 13, 2015 12:11 Sorry, you cannot do either. The item someone else provided, including those VSCode provides, cannot be access by someone at that time, also resolveCompletionItem will be called with items your provider created. |
From @BleyChen on November 17, 2015 8:27 jrieken, thanks your replay , and I want to ask your some questions as following: class CompletionItem {
|
We also ave this issue and it's something we need to work on - but for now the message is cropped at one line. This hits people in the VSCode API a lot as well. |
|
Actually sorry I lie that's for a diagnostic not a completion :( |
We have now API Commands for this |
@jrieken which API Commands ,can you tell me ,thank you! |
From @BleyChen on November 10, 2015 6:57
I want to develop an extension for JavaScript Intellisense in VSCode , And now i meet an problem that when i call the API "registerCompletionItemProvider" in the following code , i can't get the whole completionItems that provided by the VSCode itself in method "provideCompletionItems",anyone can help me?
Copied from original issue: Microsoft/vscode-extensionbuilders#89
The text was updated successfully, but these errors were encountered: