-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
VSCode document selector is not working when one project name is subset of other #41724
Comments
I can reproduce, the issue is that a glob pattern like |
@Apoorva-GA I think a workaround would be to set I fear about breaking people if we change our glob star to require a path segment, since we have behaved like this from day one. I know that other glob libraries seem to treat /cc @chrmarti @roblourens |
|
Unfortunately I have to close this "as designed" simply because it would break too many things in our code. To give one example: Our default
But the matching in the files explorer for example is always relative to the root (e.g. we will match " |
@bpasero What I suggested wouldn't break these cases, maybe I misunderstood your example from earlier? |
@chrmarti so then maybe try to explain how " |
@bpasero I agree it should match zero or more path segments. But |
@chrmarti I am having a hard time to encode that logic, nor understanding it. I find it hard to understand how a leading Btw if we were to change it, we would also need at the trivias we added for avoiding the RegExp, we seem to hit that case too with these patterns. |
@bpasero I agree, what I'm saying is: |
Good point 👍 |
I think I found a fix. In the parsing code (here) we typically add a path separator regex to the segments, but not if the next segment is a " To verify: you can use the |
* master: (280 commits) fix issue with useAltAsMultiSelectModifier Log ripgrep cmd from quickopen to logservice Switch search output panel to logservice Use absolute paths for webview core resources Explicitly hide TS version status when in ts/js file with unknown scheme First attempt of search caching. Pick up latest TS insiders 2018-01-19. Merged in translations from Transifex. Avoid double-counting same settings search query Use latest emmet helper that has fixes microsoft#33818 Remove settings search @groupId filters - since group ids can now be extension guids, and nobody uses this anyway backups - make sure to use "utf8" as encoding and not "utf-8" Catch any errors that onLineData users throw use uuid as extensions configuration id fix format on save problem that occurs when a provider returns no edits fix microsoft#41724 Fix microsoft#41868 some menu polish for issue reporter Fix microsoft#40260 Simplify edits handling in TextModelTokens ...
@bpasero the workaround you suggested worked for me, but looks like this is fixed now. Can I know in which insider version the fix is available? |
@Apoorva-GA fix will be in todays insider build, let me know if it works for you. |
@bpasero It works for me 👍 |
VSCode document selector is not working when one project name is subset of other.
The glob pattern that we use to match is
$projectroot/**/*
which is use to differentiate between two projects in a workspace.The above glob pattern seems to work with shell commands but not in VSCode
All the requests are being sent to both the language servers starting with the similar name.
Steps to Reproduce:
test
.testone
.The text was updated successfully, but these errors were encountered: