-
Notifications
You must be signed in to change notification settings - Fork 50
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
Limit the depth of the meson.build search #239
Conversation
Searching the entire workspace can be be very costly, especially if the workspace is on a network drive. This change makes the extension to assume that meson.build is located either in the root of workspace, or in any directory two levels down from the root. Potentially fixes mesonbuild#234.
Could you try this locally on your monorepo to see if it fixes your issue? |
Note that I am going to make a bugfix release today, so if you want this in, please get back to me |
I don't know what I am supposed to do. I don't know TypeScript, and I've never developed VS Code extensions. I have zero idea how to verify Slava's PR. So, I guess it's ok. I got used to living with this bug. |
Open this repo in VSCode. Checkout slava's branch. Then launch a debug session. That will open a new vscode window, which you can then use to open your huge monorepo. |
It says it needs |
Well I don't want to merge this until I get confirmation that it fixes the issue, so until that point that it is confirmed, I guess this will sit in limbo. |
IMHO, limiting the search depth is the right thing to do, regardless. When I worked at NVIDIA, my client space could have a dozen gigabytes of source code. It probably would have taken an hour for VS Code to fumble through all the files, even on a local drive. Also, IMHO, asking uninitiated users to install development tools is counterproductive. However, I understand—it's your kitchen, your rules. I am okay with this PR sitting in limbo. @intractabilis You may consider other Meson extensions. The feature you need most is syntax highlighting. Meson's setup and compile phases are easily configurable in |
I think people who come to the table with fairly unique use cases need to be prepared to be able to test. If I can't repro, I can't help, but I'll just go ahead and merge this. |
You certainly have the full right to set up such a rule. Moreover, I never objected to testing. It's just that your proposed unusual way of testing was a no-go. I filed several bugs against VS Code itself. Microsoft has never asked me to compile VS Code to see if their fix worked. Their approach is: Hey, the fix made its way to the release X; please check if it works for you. |
I don't think what I asked was unusual. I'm asking to test the extension in your environment. |
Searching the entire workspace can be very costly, especially if the workspace is on a network drive. This change makes the extension assume that meson.build is located either in the workspace's root or in any directory two levels down from the root.
Potentially fixes #234.