pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python-lsp/python-lsp-server/pull/682

-b67dd1bd4e6047ea.css" /> utils: prefer parent uri when matching uri by mnauw · Pull Request #682 · python-lsp/python-lsp-server · GitHub
Skip to content

utils: prefer parent uri when matching uri#682

Open
mnauw wants to merge 1 commit intopython-lsp:developfrom
mnauw:uri_match_parent
Open

utils: prefer parent uri when matching uri#682
mnauw wants to merge 1 commit intopython-lsp:developfrom
mnauw:uri_match_parent

Conversation

@mnauw
Copy link
Contributor

@mnauw mnauw commented Oct 25, 2025

At present, match_uri_to_workspace can return a workspace that is not a parent of the uri. In particular, if /a/b/c is a workspace, and also /a/b, then searching for a workspace for /a/b/x/y can return either one of the previous. In this case, however, /a/b is preferred as it is actually a parent (whereas /a/b/c is not). While this may be an "odd" workspace setup, it can occur when dealing with git submodules or some other project setup (also depending on the LSP client). But presumably it is preferable to be robust at the LSP server end than to declare such invalid.

@mnauw
Copy link
Contributor Author

mnauw commented Dec 27, 2025

Looks like the Mac runners are down, should otherwise be OK now (with prior glitch for Windows case handling).

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.

1 participant

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy