Commit 481f6d9
fix: isolate per-folder exception in mode picker for multi-project workspaces
In McpPreferencePage.getWorkspaceNameForMode(), the entire workspace-folder
loop was wrapped in one try-catch. If any project had a non-file:// URI
(e.g. EFS-backed sftp://, ecf:// or other custom linked resources),
Paths.get(URI.create(...)) would throw and the catch would return '' for
ALL custom modes — hiding them from the mode picker dropdown.
Move the Paths.get() call into a per-folder inner try-catch so one
bad URI only skips that folder; the loop continues for the rest.
Also add INFO/WARN diagnostic logs so future issues can be diagnosed
from workspace.log without a debugger.
Fixes: #180
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 63b3c1b commit 481f6d9
1 file changed
Lines changed: 10 additions & 6 deletions
File tree
- com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/preferences
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
970 | 970 | | |
971 | 971 | | |
972 | 972 | | |
973 | | - | |
974 | | - | |
| 973 | + | |
| 974 | + | |
975 | 975 | | |
976 | 976 | | |
977 | 977 | | |
| |||
1086 | 1086 | | |
1087 | 1087 | | |
1088 | 1088 | | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
1092 | 1096 | | |
1093 | 1097 | | |
1094 | 1098 | | |
1095 | 1099 | | |
1096 | | - | |
| 1100 | + | |
1097 | 1101 | | |
1098 | 1102 | | |
1099 | 1103 | | |
| |||
0 commit comments