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

Publish HF Code Autocomplete to Open VSX #11

Closed
omhomurlu opened this issue May 5, 2023 · 2 comments · Fixed by #74
Closed

Publish HF Code Autocomplete to Open VSX #11

omhomurlu opened this issue May 5, 2023 · 2 comments · Fixed by #74

Comments

@omhomurlu
Copy link

Dear extension author,
Please publish this extension to the Open VSX marketplace.

Context

Unfortunately, as Microsoft prohibits usages of the Microsoft marketplace by any other products or redistribution of .vsix files from it, in order to use VS Code extensions in non-Microsoft products, we kindly ask that you take ownership of the VS Code extension namespace in Open VSX and publish this extension on Open VSX.

What is Open VSX? Why does it exist?

Open VSX is a vendor neutral alternative to the MS marketplace used by most other derivatives of VS Code like VSCodium, Gitpod, OpenVSCode, Theia-based IDEs, and so on.

You can read on about Open VSX at the Eclipse Foundation's Open VSX FAQ.

How can you publish to Open VSX?

The docs to publish an extension can be found here. This process is straightforward and shouldn't take too long. Essentially, you need an authentication token and to execute the ovsx publish command to publish your extension. There's also a doc explaining the whole process with an example GitHub Action workflow.

@erkkimon
Copy link

Anyway, as a workaround for everyone, go download latest VSIX version from here: https://marketplace.visualstudio.com/items?itemName=HuggingFace.huggingface-vscode

Then go to Hugging Face token management (https://huggingface.co/settings/tokens), create read token and copy it. Then go in VSCodium to extensions tab, click three dots, then "Install from VSIX" and choose the VSIX you downloaded. After that press CMD/CTRL + SHIFT + P, and start writing "Hugging". Then choose "Hugging Face Code: Set API Token" from the list that appeared on the screen if VSIX was installed succesfully, and paste the token here. Now open or create a python file, start to write code and the AI should be writing code for you á la Github Co-Pilot.

If nothing happens or you are unsure is the AI writing code for you Github Co-Pilot or Hugging Face Autocomplete, click CMD/CTRL + SHIFT + U and choose "Hugging Face Code" in the dropdown instead of default "Tasks", and you should see what the VSCodium talks with Hugging Face Code if it does.

@McPatate
Copy link
Member

https://open-vsx.org/extension/huggingface/huggingface-vscode !

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.

3 participants