Missing "VS Code" button for sites

What issue or error are you experiencing?

Despite being updated to the newest version of Local, and even attempting to uninstall/reinstall, I’m missing the button to be able to open the site files directly in VSCode. When I newly installed it on another machine, it successfully appears - but not on this machine that had the existing install that was updated.


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

Local was just updated at first, but then I completely uninstalled and re-installed Local with no success of the VS Code button appearing. I can only think that files are remaining even after uninstalling, but i’m not sure why it wouldn’t have appeared after updating to 9.2.0.

Installing on a new machine that has not had any version of Local previously successfully displays the VS Code button.


System Details

  • Local Version: 9.2.0+6762

  • Operating System (OS) and OS version: Windows 11 Pro

Hi @wintsec!

The device that you installed Local on where it worked, was this also on Windows 11? Or was it a different OS/version?

Could you also share your Local Log here for your Windows 11 setup where it’s not working?

Retrieving Local’s Log File

I appreciate the response!

The only difference is that the machine where it worked was Windows 11 Home, verses the one where it didn’t work is Windows 11 Pro.

Apologies for not including the logs – I think/hope i’ve uploaded them correctly!

@wintsec I don’t see your logs there, but feel free to try again!

One thing you can try on your Windows 11 Pro machine is to open a terminal (cmd or PowerShell) to type this, then press enter:

code --version

If you see no output or “code: command not found” or “the term ‘code’ is not recognized” or similar, that will explain why Local can’t detect VS Code on this machine.

Normally code is installed automatically by the VS Code installer (except on macOS, but we use a different detection test there). You could try re-installing VS Code or adding the path to the code command manually as recommended in the VS Code docs.

Windows and Linux installations should add the VS Code binaries location to your system path. If this isn’t the case, you can manually add the location to the Path environment variable ($PATH on Linux). For example, on Windows, the default VS Code binaries location is AppData\Local\Programs\Microsoft VS Code\bin . To review platform-specific setup instructions, see Setup.

2 Likes

Thank you so much – that definitely seemed to be the issue. I reinstalled VS Code, and made sure that it set up the path this time. It appeared in Local after a restart.

2 Likes