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: use fspath to get correct path [IDE-398] #469

Merged
merged 2 commits into from
Jun 11, 2024

Conversation

ShawkyZ
Copy link
Contributor

@ShawkyZ ShawkyZ commented Jun 11, 2024

Description

  • Use uri.fspath instead of uri.path to get local files paths.
    On Mac/Linux there is no difference in the result between both but on Windows:
    fspath returns:
    'c:\\Users\\user\\work\\vscode-extension\\media\\views\\snykCode\\suggestion\\suggestionLS.css'
    path returns:
    /c:/Users/shawky/work/vscode-extension/media/views/snykCode/suggestion/suggestionLS.css

Checklist

  • Tests added and all succeed
  • Linted
  • CHANGELOG.md updated
  • README.md updated, if user-facing

Screenshots / GIFs

Visuals that may help the reviewer. Please add screenshots for any UI change. GIFs are most welcome!

@ShawkyZ ShawkyZ marked this pull request as ready for review June 11, 2024 11:23
@ShawkyZ ShawkyZ requested a review from a team as a code owner June 11, 2024 11:23
@bastiandoetsch
Copy link
Contributor

Nice find!

@ShawkyZ ShawkyZ force-pushed the fix/codewebviewpath-windows branch from 36b5426 to 715d2b4 Compare June 11, 2024 12:21
@ShawkyZ ShawkyZ merged commit 7d7e3c0 into main Jun 11, 2024
7 checks passed
@ShawkyZ ShawkyZ deleted the fix/codewebviewpath-windows branch June 11, 2024 13:29
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