Skip to content

Conversation

@josephemorgan
Copy link
Contributor

I added a platform check for windows, and if true, I remove any trailing forward slash from the file's URI.

This fixes the error on my machine, and shouldn't introduce any issues for those who aren't on Windows. As far as I'm aware, there's no way for a valid Windows URI to start with a /.

Thanks!

Ensure that file URIs starting with an extra slash on Windows are correctly normalized.
@sidlatau sidlatau merged commit 3b2f652 into nvim-flutter:main Jan 11, 2026
4 checks passed
@sidlatau
Copy link
Collaborator

Thanks, @josephemorgan!

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