File tree Expand file tree Collapse file tree
WorkspaceLauncherForVSCode/Commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33using System ;
44using System . Diagnostics ;
55using System . IO ;
6+ using System . Text . RegularExpressions ;
67using System . Threading . Tasks ;
78using Microsoft . CommandPalette . Extensions . Toolkit ;
89using WorkspaceLauncherForVSCode . Classes ;
@@ -117,7 +118,15 @@ public override CommandResult Invoke()
117118
118119 arguments = $ "--folder-uri \" { path } \" ";
119120 }
120-
121+ if ( Workspace . WorkspaceType == WorkspaceType . AntigravityFolder || Workspace . WorkspaceType == WorkspaceType . AntigravityWorkspace )
122+ {
123+ Workspace . VSCodeInstance . ExecutablePath = Regex . Replace (
124+ Workspace . VSCodeInstance . ExecutablePath ,
125+ "Antigravity" ,
126+ "Antigravity IDE" ,
127+ RegexOptions . IgnoreCase
128+ ) ;
129+ }
121130 if ( page . SettingsManager . UseHelperLauncher )
122131 {
123132 var launcherPath = Path . Combine ( AppContext . BaseDirectory , "VisualStudioCodeForCommandPaletteLauncher.exe" ) ;
You can’t perform that action at this time.
0 commit comments