瀏覽代碼

Fixed opening new instances of VS 2022 while a instance is already open

Densorius 3 年之前
父節點
當前提交
93e2d0446f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/Program.cs

+ 1 - 1
modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/Program.cs

@@ -183,7 +183,7 @@ namespace GodotTools.OpenVisualStudio
                         continue;
 
                     // The digits after the colon are the process ID
-                    if (!Regex.IsMatch(ppszDisplayName, "!VisualStudio.DTE.16.0:[0-9]"))
+                    if (!Regex.IsMatch(ppszDisplayName, "!VisualStudio.DTE.1[6-7].0:[0-9]"))
                         continue;
 
                     if (pprot.GetObject(moniker[0], out object ppunkObject) == 0)