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

consider use ${userHome} instead while init #722

Open
heartacker opened this issue May 16, 2023 · 6 comments
Open

consider use ${userHome} instead while init #722

heartacker opened this issue May 16, 2023 · 6 comments

Comments

@heartacker
Copy link

https://code.visualstudio.com/docs/editor/variables-reference#_predefined-variables
${userHome} - the path of the user's home folder

image

@filipw
Copy link
Member

filipw commented Jun 5, 2023

We already use {env:HOME} (see which is effectively the same thing

"program": "${env:HOME}/.dotnet/tools/dotnet-script",
)

have you had any problem with the current approach?

@heartacker
Copy link
Author

but when I init in vscode with windows11, the dotnet-script provide the absolute path,not the home

@heartacker
Copy link
Author

image

@filipw
Copy link
Member

filipw commented Jun 5, 2023

which version of dotnet script are you using? it might be you are using the older one?
also, if the file already existed before, it won't be updated

@heartacker
Copy link
Author

which version of dotnet script are you using? it might be you are using the older one? also, if the file already existed before, it won't be updated

1.4.0
and can you try in your windows ?
I can repro this
视频.webm

@heartacker
Copy link
Author

heartacker commented Jul 12, 2023

which version of dotnet script are you using? it might be you are using the older one? also, if the file already existed before, it won't be updated

1.4.0 and can you try in your windows ? I can repro this 视频.webm

@filipw can you see the webm,please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants