madskristensen / OpenInVsCode

A Visual Studio extension
Other
67 stars 23 forks source link

Doesn't work when main window on "Website:Publish" #36

Open alandraper opened 1 year ago

alandraper commented 1 year ago

To Reproduce Steps to reproduce the behavior:

  1. Create a website project in Visual Studio and publish it to an Azure App Service
  2. "Website:Publish" should be the only open tab in main window.
  3. Right click on any folder in Solution Explorer.
  4. Click "Open with Visual Studio Code"
  5. Nothing happens

Expected behavior VS Code should open

Output from Open in Visual Studio Code

7/30/2023 10:13:10 AM: System.ArgumentException: Value does not fall within the expected range. at EnvDTE80.DTE2.get_ActiveDocument() at OpenInVsCode.OpenVsCodeCommand.OpenFolderInVs(Object sender, EventArgs e) in C:\projects\openinvscode\src\Commands\OpenVsCodeCommand.cs:line 58