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

This commit is contained in:
Densorius 2022-02-04 10:38:28 +01:00
parent 9ea0508d35
commit 93e2d0446f
1 changed files with 1 additions and 1 deletions

View File

@ -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)