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

Make workspace detection more robust #578

Merged
merged 1 commit into from
May 8, 2024
Merged

Conversation

epwalsh
Copy link
Owner

@epwalsh epwalsh commented May 8, 2024

Fixes #576

@epwalsh epwalsh merged commit 2e1f034 into main May 8, 2024
7 checks passed
@epwalsh epwalsh deleted the epwalsh/workspace-detection branch May 8, 2024 18:28
Comment on lines +159 to +167
local ok
ok, cur_dir = pcall(function()
return Path.new(cur_dir):resolve { strict = true }
end)

if not ok then
return
end

Copy link

@sadtab sadtab May 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Piece of art, you just read plain English: if not ok then return, end

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.

If a markdown is in a git repository, this plugin conflicts with git DiffView
2 participants