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

Run Yaml VSCode plugin as Che7 plugin #12142

Closed
tsmaeder opened this issue Dec 7, 2018 · 4 comments
Closed

Run Yaml VSCode plugin as Che7 plugin #12142

tsmaeder opened this issue Dec 7, 2018 · 4 comments
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed.

Comments

@tsmaeder
Copy link
Contributor

tsmaeder commented Dec 7, 2018

Package vscode-yaml extension as a Che 7 plugin and publish it to the plugin registry.

Write down the necessary steps as part of Che 7 documentation. I believe @l0rd would know where to put the doc.
Once we have the last vscode languages API's implemented, running vscode-yaml in Theia "should just work" :-)

@tsmaeder tsmaeder added kind/task Internal things, technical debt, and to-do tasks to be performed. team/languages labels Dec 7, 2018
@tsmaeder
Copy link
Contributor Author

tsmaeder commented Dec 7, 2018

Infos from @NikolasKomonen for installing vscode extensions in Theia:

Steps for Theia/lsp4xml:

open command palette, search for "deploy plugin id" and insert "vscode:extension/redhat.vscode-xml" it will deploy your vscode extension

If it doesn't work:

could you try to put vsix file in a folder like /tmp/foo

and before starting theia

export THEIA_PLUGINS=local-dir:///tmp/foo

and Command Palette is the F1 key

@NikolasKomonen
Copy link

Would like to add on, that each VSCode extension has a 'Unique Identifier' which can be found on the marketplace eg: the XML Language server is "vscode:extension/redhat.vscode-xml" and can be found here under 'Unique Identifier'

And for YAML it is: "redhat.vscode-yaml"

This identifier is the thing you paste into the 'deploy plugin id' command

@JPinkney
Copy link
Contributor

JPinkney commented Jan 7, 2019

I've been exploring VSCode-YAML in Theia and it looks like a few features aren't working.

The language server currently supports validation, format, auto completion, hover, document outlining, and automatically loading schemas from JSON schema store. However, it looks like only document outlining is working despite the languages api being implemented for those features IIRC.

The first step to verifying validation, autocompletion, and hover would be to fix eclipse-theia/theia#3892 so that we are able to set schemas.

For formatting it looks like this PR should fix this

I'm still looking into it but I don't have a direct inclination as to why JSON schemas aren't automatically being pulled from the schema store.

@invincibleJai
Copy link

first of all thanks for the info, this is what I was looking for

could you try to put vsix file in a folder like /tmp/foo

and before starting theia

export THEIA_PLUGINS=local-dir:///tmp/foo

forgive my ignorance, not sure shall i build https://github.com/eclipse/che from source or do i need to build https://github.com/theia-ide/theia in order to achieve it @tsmaeder @NikolasKomonen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed.
Projects
None yet
Development

No branches or pull requests

5 participants