Entity completion not working in Visual Studio Code

I have HA running in Docker on Synology NAS box. I installed the Visual Studio Code on my PC. I added the config helper extension. I hooked up the extension to my HA on the NAS. I can see and open and save config yaml files. And the various parts work in VS Code. However, the part I wanted most doesn’t work. Autocompletion of entity ids. It says, “No suggestions”.

I also see an error:

Error connecting to your Home Assistant Server at mydomain:8123 and token 'eyJ0e...', 
check your network or update your VS Code Settings, make sure to (also) check your workspace settings! 
Error:SyntaxError: The URL's protocol must be one of "ws:", "wss:", or "ws+unix:"

I don’t know what that is trying to tell me. Anybody have a clue?

… time passes …

I tried putting the http in http://mydomain:8123 and now I at least get “loading”.

… time passes …

It finally logged something in output. I think it resolved the domain name to an outside address and I’ll try a local IP instead. The outside address works fine to open up HA in a browser.

The solution to my problem was to use http:// and the local 192.168.0.x address to the HA. Doesn’t sound like the config helper is resolving the name the same way that Edge browser does.

So are you using the port too? I’m not getting auto completion in the IDE.

Configured mine with the following values: http://192.168.20.10:8123/ and http://192.168.20.10/

When I review the logs I see the following:

Connecting to Home Assistant...
[Auth phase] Initializing WebSocket connection to Home Assistant
[Auth Phase] Connecting to Home Assistant... Tries left: 3
Connecting to Home Assistant...
[Auth phase] Initializing WebSocket connection to Home Assistant
[Auth Phase] Connecting to Home Assistant... Tries left: 3
Discover all configuration files because file://192.168.20.10/config/groups.yaml got updated and new files were found...

This implies it is connection using http://192.168.20.10:8123/ but I’m not seeing auto completion on entities…any ideas?