Skip to content
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

inline-completions example is not work #867

Open
Tracked by #922
brookylin opened this issue May 19, 2023 · 7 comments · May be fixed by #879
Open
Tracked by #922

inline-completions example is not work #867

brookylin opened this issue May 19, 2023 · 7 comments · May be fixed by #879
Assignees

Comments

@brookylin
Copy link

The inline-completions example is not working. I was able to run this demo successfully last month, but it stopped working after the recent update.

image
@moranmono
Copy link

I get the following error:

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.

Any idea how to make it work?

@tardyp tardyp linked a pull request Jun 21, 2023 that will close this issue
@JerryYuanJ
Copy link

I got the same issue here but it's my first time trying this completion API. I copied the whole thing and still can't get it work.

@ariefaprilianto
Copy link

@brookylin , it seems it should be solved by adding this additional parameter --enable-proposed-api your-extension-identifier to your launch args:

"args": [ "--extensionDevelopmentPath=${workspaceFolder} --enable-proposed-api your-extension-identifier", "${workspaceFolder}/playground.js", ],

@gfyulx
Copy link

gfyulx commented Nov 30, 2023

@brookylin I have the same issue as you. Do you solve this problem?

@rhulha
Copy link

rhulha commented Dec 10, 2023

bump

@ShaneMaglangit
Copy link

ShaneMaglangit commented Jan 14, 2024

Bit silly, but I just had to use VSCode Insiders instead of the stable release 🤦

edit: Linked PR above works as well.

@rcjsuen
Copy link

rcjsuen commented Sep 4, 2024

The sample worked for me after applying the changes suggested in #879.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants