eclipse-che / che

Kubernetes based Cloud Development Environments for Enterprise Teams
http://eclipse.org/che
Eclipse Public License 2.0
6.99k stars 1.19k forks source link

Run Yaml VSCode plugin as Che7 plugin #12142

Closed tsmaeder closed 5 years ago

tsmaeder commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 https://github.com/theia-ide/theia/issues/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 commented 5 years ago

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