-
Notifications
You must be signed in to change notification settings - Fork 30.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Go To Symbol in Workspace" command provides inconvenient UX in some cases. #17022
Comments
That's a problem specific to TypeScripts |
This also confused me. I have a habit of closing all open files every now and then, but then CTRL+T wont work, so now I mostly use Go to file... (CTRL+P) to avoid this confusion all together. I don't know how tsserver works, but wouldn't it be possible to use the project root folder as the tsserver root? Especially considering I have a |
Indeed. All my dev team just tried the new VSCode version to check out if this "broken" feature has been "repaired"; but we was quite disappointed seeing that "Goto symbol in workspace" still doesn't return any result. If I understand well, "Goto symbol in workspace" is only looking in opened files ? Maybe should it be renamed to "Goto symbol in opened files" instead ? |
I would love to be able to search for any symbol from the project and have them appear first, before other NPM modules or external imports. |
I run into the same problem. cmd+t can only search in opened files and maybe some related files. |
The same confusing... I expect that |
This issue is a deal breaker for me and why i can't switch from full blown visual studio, i work on a project that's had hundreds of devs over 5 years so there are thousands of scripts, some with class names that don't match exactly the file name, some files have multiple classes/structs/enums in them and not being able to navigate to them quickly, or at all in the case where a coworker knows the name of a symbol but not the name of the file it was in (This of course also an issue because the actual search panel itself is slow and filtering it is not very intuitive) |
@jrieken this is incredibly annoying but easy enough to work around. How do we fix this? What specifically is it that the tsserver does that is preventing this feature from working as if I had all my TS file opened in the first place? For the most time it does find stuff but whenever you switch workspace or restart VS code it's back to nothing. |
Anyone looking into fixing this? |
I would be happy to help if someone can point to the cause in the source. |
has this been looked into, ever since? |
This has been open for a while! Why can't I search for symbol when no file is open in workspace? |
@mjbvz does it work only with TS? |
This issue (and the linked ones) are about JS/TS If you see the same issue but for Python, please file an issue against the python extension |
"Go To Symbol in Workspace" command (CTRL+T) is one of the most useful commands used for navigation in workspace, but in some cases it can be not so useful as it could be. Here is a couple of examples (usually I use VS code for typescript projects):
I suppose that this a bit strange behaviour origins from Typescript Language Service (tsserver), but can these issues be resolved on VS Code side? Most of users expect that "Go To Symbol in Workspace" performs search through whole workspace folder and through all projects in this workspace.
Thanks for awesome editor, it's really great!
The text was updated successfully, but these errors were encountered: