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 for Windows platform #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nicolagianelli
Copy link

@nicolagianelli nicolagianelli commented Oct 22, 2024

Hello,
thank you for this extension but it wasn't working for me on Windows platform because
vscode.window.activeTextEditor?.document.fileName
was returning the full path with "" instead of "/", I resolved this problem by using the same method you used to check the path
vscode.workspace.asRelativePath
This method returns the relative path with standard "/" even in Windows.

Let me know if something isn't clear.
Resolves the following issues: #2 #3

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