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(vsc): generate codelens on windows #1740

Merged
merged 2 commits into from
May 29, 2024
Merged

fix(vsc): generate codelens on windows #1740

merged 2 commits into from
May 29, 2024

Conversation

Druue
Copy link
Contributor

@Druue Druue commented May 27, 2024

pass cwd directly to exec instead of cd

fixes #1738

@Druue Druue added this to the 5.15.0 milestone May 27, 2024
Copy link

github-actions bot commented May 27, 2024

🤖 Pull request artifacts

empty string

file commit
prisma.vsix 4fc58f0

Copy link

github-actions bot added a commit that referenced this pull request May 27, 2024
Copy link
Contributor

@janpio janpio left a comment

Choose a reason for hiding this comment

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

As far as I understood, rootpath will not be the correct, usable path for this on Windows.

Copy link

@SevInf SevInf left a comment

Choose a reason for hiding this comment

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

Would changing rootPath from uri.path to uri.fsPath fix the issue?

@janpio
Copy link
Contributor

janpio commented May 28, 2024

From what I linked to in the Slack discussion, yes. Not sure what potential side effects this would have of course.

github-actions bot added a commit that referenced this pull request May 28, 2024
@Druue
Copy link
Contributor Author

Druue commented May 29, 2024

I can confirm that it works on windows now :) that was harrowing 💀

Screen.Recording.2024-05-29.at.11.20.20.mov

@Druue Druue merged commit c6a22d2 into main May 29, 2024
7 checks passed
@Druue Druue deleted the fix/1738 branch May 29, 2024 16:23
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.

Generate codelens fails on Windows
4 participants