This seems to only affect my JS files. My PHP files work fine (with a PHP extension of course).
When I do a symbol search (ie. Go to symbol in workspace
) or when I try to Go to Definition
(or find usages), it will only look within the currently open tabs. This seems to defeat the purpose of these actions, where I want to search within my entire project.
If I open the file containing the symbol/definition I am searching for in one tab, then search for that symbol/definition from a different file in another tab, it works just fine. If I close the tab containing the symbol/definition, it immediately stops working.
I've tried disabling all of my extensions. The typescript.workspaceSymbols.scope
setting does not affect the problem. I've tried restarting VSCode. I've made sure that the workspace is saved. This is a nearly fresh install of VSCode.
Is this just how these features are supposed to work? Do I need to reload some sort of symbol database? Is there some setting or extension I'm missing? My understanding was that VSCode came with JS support built in. As I said, these features are working as I would expect for PHP files with a PHP extension but don't work for JS files.
Edit: to clarify before someone asks, none of these files are gitignored
Via Active questions tagged javascript - Stack Overflow https://ift.tt/3ZLnYNh
Comments
Post a Comment