From a23172ddcc080c2be76c852781f8257cc073b956 Mon Sep 17 00:00:00 2001 From: wd357dui Date: Mon, 9 Nov 2026 07:50:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(tools):=20symbol=20search=20includes=20proj?= =?UTF-8?q?ects=20in=20virtual=20folder=20=EF=BB=BF=20Projects=20located?= =?UTF-8?q?=20inside=20a=20solution=20folder=20(solution=20explorer's=20vi?= =?UTF-8?q?rtual=20folder)=20weren't=20included=20in=20a=20symbol=20search?= =?UTF-8?q?;=20as=20a=20result,=20`symbol=5Fworkspace`=20wasn't=20able=20t?= =?UTF-8?q?o=20find=20any=20symbols=20located=20in=20those=20projects;=20c?= =?UTF-8?q?onsequently,=20`test=5Frun`=20couldn't=20match=20unit=20test=20?= =?UTF-8?q?projects=20located=20in=20solution=20folders=20either.=20This?= =?UTF-8?q?=20fix=20addresses=20this=20problem=20by=20adding=20an=20"is=20?= =?UTF-8?q?this=20a=20solution=20folder=3F"=20check=20in=20the=20solution?= =?UTF-8?q?=20items=20enumeration=20logic=20in=20the=20collect=20symbol=20?= =?UTF-8?q?path.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/VisualStudioService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/CodingWithCalvin.MCPServer/Services/VisualStudioService.cs b/src/CodingWithCalvin.MCPServer/Services/VisualStudioService.cs index f53c7dd..1bbe751 100644 --- a/src/CodingWithCalvin.MCPServer/Services/VisualStudioService.cs +++ b/src/CodingWithCalvin.MCPServer/Services/VisualStudioService.cs @@ -1122,6 +1122,11 @@ private void CollectProjectSymbols(ProjectItems? items, WorkspaceSymbolSearch se { CollectProjectSymbols(item.ProjectItems, search); } + + if (item.ContainingProject.Kind == ProjectKinds.vsProjectKindSolutionFolder && item.SubProject != null) + { + CollectProjectSymbols(item.SubProject.ProjectItems, search); + } } catch (Exception ex) {