phoenixframework / vscode-phoenix

Syntax highlighting support for Phoenix templates in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=phoenixframework.phoenix
MIT License
157 stars 10 forks source link

Allow extension to be installed in container or remote #12

Open bzuu opened 1 year ago

bzuu commented 1 year ago

If you try to install the extension in vscode when running with a devcontainer, you only see the option Install Locally. It would be nice if the extension could be installed directly in the devcontainer so you have the right extensions installed when you open your devcontainer on a different machine.

I was able to enable the extension in my devcontainer by overriding the extensionKind in my settings.json like this:

"remote.extensionKind": {
    "phoenixframework.phoenix": [
        "workspace"
    ]
}

For more info see the vscode extension host docs.

joddm commented 5 months ago

GitHub Codespaces:

I do not see the option to Install Locally, and the extension seems to be installing directly in the devcontainer, but I do not see the extension running under Developer: Show Running Extensions.

The syntax highlighter seems to work, but I do not get any HTML Intellisense/auto complete to work. It works when selecting regular HTML as file type.

Adding the remote.extensionKind to workspace as above does not seem to have any effect at all.

(I have the usual suspects in my settings.json file):

{
                "files.associations": {
                    "*.heex": "phoenix-heex"
                },
                "emmet.includeLanguages": {
                    "elixir": "html",
                    "phoenix-heex": "html"
                },
                "tailwindCSS.includeLanguages": {
                    "elixir": "html",
                    "phoenix-heex": "html"
                }
}