Skip to content
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

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

slavaandrejev
Copy link
Contributor

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.

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.
@tristan957
Copy link
Contributor

Could you try this locally on your monorepo to see if it fixes your issue?

@tristan957
Copy link
Contributor

Note that I am going to make a bugfix release today, so if you want this in, please get back to me

@intractabilis
Copy link

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.

@tristan957
Copy link
Contributor

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.

@intractabilis
Copy link

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 yarn, whatever that might be. It's a corporate laptop, so I can't install whatever I want here.

@tristan957
Copy link
Contributor

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.

@tristan957
Copy link
Contributor

@slavaandrejev
Copy link
Contributor Author

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 tasks.json.

@tristan957
Copy link
Contributor

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.

@tristan957 tristan957 added this pull request to the merge queue Jun 20, 2024
Merged via the queue into mesonbuild:main with commit ae98804 Jun 20, 2024
5 checks passed
@intractabilis
Copy link

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.

@tristan957
Copy link
Contributor

I don't think what I asked was unusual. I'm asking to test the extension in your environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extention doesn't activate if meson.build is not in the workspace root
3 participants