Home Assistant Community Add-on: Visual Studio Code

This isn’t the right topic for this (because it’s a yaml issue not an add-on issue) but the indenting jumped out at me. It should be:

  - sensor: # this line is needed only once

      - name: Sensor 1 # then each sensor in a list with a hyphen on the first line
        state: ...
        etc.

      - name: Sensor 2
        state: ...
        etc.

And so on.

2 Likes

Has anyone else found autocomplete function is really slow in VSCode? In comparison to the template editor autocomplete?

Is there a fix?

VSCode Example (about 3-10s for auto-complete to appear).
Screen Recording 2022-11-20 at 18.26.48

vs Template Editor which is almost instant.
Screen Recording 2022-11-20 at 18.27.14

1 Like

Thanks a lot for your support. Your suggestion solved it :slight_smile:

So entities suggestions doesn’t work for me. If I choose “Home Assistant” as language I get HA suggestions, if I choose “home-assistant-jinja” I get my entities, but not both at the same time.

Does anyone have this working with Github on a HAOS RPI4b install? No matter what I do, it will never finish the commit and push. I have changed http to 1 and the chunk size to 500mb and it still errors out. I have been rsyncing the files over to my windows laptop and using github desktop to get them onto github.

just noticed that VS Code is working again on Safari :upside_down_face:

grafik
Is this CPU load normal? reboot or restart doesn’t help…

What hardware are you using?

Raspi 4B, 8GB Ram

Recently (~1mo) I started noticing that the connection becomes unresponsive after opening VSCode for config edits. In a fresh tab it initially loads the last edited file and that’s fine. If I try to switch editing to some other file it just hangs. Everything becomes unresponsive.

Not running out of RAM on either HA machine or my browsing machine and addon seems to be idling.
image

Blockquote
[19:20:47] [172.30.32.2][9c964824][ManagementConnection] The client has reconnected.
[19:20:48] [172.30.32.2][9c964824][ManagementConnection] The client has reconnected.
[19:20:48] [172.30.32.2][9c964824][ManagementConnection] The client has reconnected.
[19:20:49] [172.30.32.2][9c964824][ManagementConnection] The client has reconnected.
[19:20:49] [172.30.32.2][9c964824][ManagementConnection] The client has reconnected.
[19:20:50] [172.30.32.2][9c964824][ManagementConnection] The client has reconnected.
[19:20:51] [172.30.32.2][9c964824][ManagementConnection] The client has reconnected.
[19:20:51] [172.30.32.2][9c964824][ManagementConnection] The client has reconnected.
[19:20:52] [172.30.32.2][9c964824][ManagementConnection] The client has reconnected.
[19:20:52] [172.30.32.2][9c964824][ManagementConnection] The client has reconnected.
[19:20:53] [172.30.32.2][9c964824][ManagementConnection] The client has reconnected.
[19:20:53] [172.30.32.2][9c964824][ManagementConnection] The client has reconnected.
[19:20:54] [172.30.32.2][9c964824][ManagementConnection] The client has reconnected.
[19:20:54] [172.30.32.2][9c964824][ManagementConnection] The client has reconnected.
[19:20:55] [172.30.32.2][9c964824][ManagementConnection] The client has reconnected.
[19:20:55] [172.30.32.2][84e902be][ExtensionHostConnection] <933> Extension Host Process exited with code: 0, signal: null.

Logs show frequent reconnections and eventually an exit.

My HA is running in a VM (4 cores & 8GB RAM) behind NPM + Cloudflare tunnel.

1 Like

I’ve been having exactly the same issue.

The last open file will reload, but the loading of new files, config directory all seem to hang.

I see the same log messages, but they don’t provide much useful info.

I’ve not been able to find a fix. I’ve switched back to using the File Editor add-on when I need to edit a file in browser.

@sentur Found this vscode not working (again, see #443) · Issue #511 · hassio-addons/addon-vscode · GitHub which refferences VS Code completely broken for a couple months · Issue #443 · hassio-addons/addon-vscode · GitHub
TLDR: uninstall, reset, install, enjoy

I have the same problem (slowness), and I’d love to find a solution!

I Wonder what this pop-up windows could mean :

File 'configuration.yaml' could not be parsed, it was referenced from path 'configuration.yaml'.This file will be ignored. Error(s): - YAMLSyntaxError: All collection items must start at the same column - YAMLSyntaxError: Unexpected PLAIN node in sequence

Hi all,
I tried to find out how to show hidden files with VSC but couldn’t find a solution as some files are present in directory but don’t show up.
Anyone could please provide information on how to achieve this in a simple way? (I am not at all an expert of Linux…).
Many thanks,
Fred

I’ve started to get this error which points me to these instructions but not sure how to fix this with this HA addon:

Amazing work as usual from frenck! I have been faithfully editing all my code directly from this Add-on for the past 2 years in my Home Assistant journey. Its really perfect except for one thing, I cannot commit and push to my repo, directly from Studio Code Server, I have to SSH into my HA and commit/push from there. I know Git is functioning perfectly, why doesn’t Studio Code Server see my user.name and user.email are already set.

Hi guys, I wanted to install an add-on to Home Assistant that runs on Odroid XU4, but it’s telling me incompatibility. Is there any solution?
This add-on is not compatible with your device’s processor or the operating system you have installed on your device.

What are you running?

Direct Home Home Assistant Operating System on SD card. ODROID - Home Assistant