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

fix: Check for a bogus root folder in workspace/didChangeWorkspaceFolders request #380

Merged
merged 1 commit into from
Dec 14, 2024

Conversation

artempyanykh
Copy link
Owner

@artempyanykh artempyanykh commented Dec 14, 2024

Stacked PRs:


fix: Check for a bogus root folder in workspace/didChangeWorkspaceFolders request

Sometimes, LSP clients can send bogus folders (CWD, or homedir) as part
of added folders in didChangeWorkspaceFolders. Whenever this happens
marksman treats the root as the real root of the project folders and
recursively scans/indexes mardown documents underneath.This is
problematic when such root is a homedir because it makes marksman scan
too much and potentially fail.

Fixes #377
Potentially, addresses #373 too

…ders request

Sometimes, LSP clients can send bogus folders (CWD, or homedir) as part
of added folders in didChangeWorkspaceFolders. Whenever this happens
marksman treats the root as the real root of the project folders and
recursively scans/indexes mardown documents underneath.This is
problematic when such root is a homedir because it makes marksman scan
too much and potentially fail.

Fixes #377
Potentially, addresses #373 too

stack-info: PR: #380, branch: artempyanykh/stack/17
artempyanykh added a commit that referenced this pull request Dec 14, 2024
…ders request

Sometimes, LSP clients can send bogus folders (CWD, or homedir) as part
of added folders in didChangeWorkspaceFolders. Whenever this happens
marksman treats the root as the real root of the project folders and
recursively scans/indexes mardown documents underneath.This is
problematic when such root is a homedir because it makes marksman scan
too much and potentially fail.

Fixes #377
Potentially, addresses #373 too

stack-info: PR: #380, branch: artempyanykh/stack/17
artempyanykh added a commit that referenced this pull request Dec 14, 2024
…ders request

Sometimes, LSP clients can send bogus folders (CWD, or homedir) as part
of added folders in didChangeWorkspaceFolders. Whenever this happens
marksman treats the root as the real root of the project folders and
recursively scans/indexes mardown documents underneath.This is
problematic when such root is a homedir because it makes marksman scan
too much and potentially fail.

Fixes #377
Potentially, addresses #373 too

stack-info: PR: #380, branch: artempyanykh/stack/17
@artempyanykh artempyanykh force-pushed the artempyanykh/stack/17 branch 2 times, most recently from 4134fd0 to 410bd1f Compare December 14, 2024 17:18
@artempyanykh artempyanykh changed the base branch from artempyanykh/stack/16 to main December 14, 2024 17:18
@artempyanykh artempyanykh merged commit 8299f11 into main Dec 14, 2024
6 checks passed
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