-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Inline completion not working #994
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
Comments
Same error and not work +1 :( |
the same error :( |
please read error log carefully :) code --enable-proposed-api vscode-samples.inline-completion-sample |
The sample worked for me after applying the changes suggested in #879. |
The easiest way to invoke that vscode API, is to add into Runtime Arguments. By following this:
|
Extension sample
inline-completions
VS Code version
1.87.2
What went wrong?
I am trying to understand how the inline code completion feature of vs code works and how I can use it in an extension. So, to understand its working, I went and looked at its code sample here.
However, as soon as I open and run the code without making any changes at all, I see the following errors:
Activating extension 'vscode-samples.inline-completion-sample' failed: Extension 'vscode-samples.inline-completion-sample' CANNOT use API proposal: inlineCompletionsAdditions. Its package.json#enabledApiProposals-property declares: but NOT inlineCompletionsAdditions. The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api vscode-samples.inline-completion-sample.
[vscode-samples.inline-completion-sample]: editor/inlineCompletions/actions is a proposed menu identifier. It requires 'package.json#enabledApiProposals: ["inlineCompletionsAdditions"]' and is only available when running out of dev or with the following command line switch: --enable-proposed-api vscode-samples.inline-completion-sample
I try running it regardless to see if it still works and it opens a new window as a playground with the below code:
I try typing in "console" just as they did in the demo gif in the sample code page I linked earlier but I am not getting the inline completion. I am just getting normal completion:
Also, I noticed that gif in the sample code is slightly cropped so I am not fully sure how they activated the inline completion as well. I see this issue having been raised multiple times in the past but I do not see any good solutions to it yet other than using VS Code insiders as pointed out by tamuratak in the discussion repo here.
So, it would be nice if this worked in normal VS Code as well so that I can understand its working better.
The text was updated successfully, but these errors were encountered: