You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Go to Augmentation CodeLen opens a new editor in the current group instead of jumping to an existing editor in another group #5056
/Users/kevmoo/github/flutter/bin/cache/dart-sdk/bin/dart info
If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.
changed the title [-]Goto augmentation opens a new tab instead of just jumping to the already open tab[/-][+]Go to Augmentation CodeLen opens a new editor in the current group instead of jumping to an existing editor in another group[/+]on Apr 4, 2024
@kevmoo btw, did you have 7 different VS Code windows open when you repro'd this? (you have 8 dart language_server processes, 7 of which are from VS Code... if you didn't have 7 open Windows, this seems like we might be leaking processes? 😬)
Activity
DanTup commentedon Apr 4, 2024
This probably happens here:
Dart-Code/src/extension/lsp/go_to.ts
Lines 15 to 16 in 3d2201c
We could enumerate the open files instead and if we find it already open, focus it (similar to microsoft/vscode#178628).
[-]Goto augmentation opens a new tab instead of just jumping to the already open tab[/-][+]Go to Augmentation CodeLen opens a new editor in the current group instead of jumping to an existing editor in another group[/+]DanTup commentedon Apr 4, 2024
@kevmoo btw, did you have 7 different VS Code windows open when you repro'd this? (you have 8
dart language_serverprocesses, 7 of which are from VS Code... if you didn't have 7 open Windows, this seems like we might be leaking processes? 😬)kevmoo commentedon Apr 4, 2024
@DanTup – I DID restart things a few times to get macros logic working. Could be a leak! Only one VS code window open!
DanTup commentedon Apr 5, 2024
If you can reproduce this, please file another issue with steps (and your exact SDK version), thanks!
DanTup commentedon Apr 8, 2024
goto.mp4