Skip to content

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
@artempyanykh artempyanykh deleted the artempyanykh/stack/17 branch November 30, 2025 17:26
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.

2 participants