Open frg2089 opened 2 years ago
Are you going to update the extension yet? I hate having to run as admin every time..
Are you going to update the extension yet? I hate having to run as admin every time..
Haven't had the time to test #24 as the changes are quite extensive, but I'll try to get around to testing and hopefully merging it next week.
Are you going to update the extension yet? I hate having to run as admin every time..
Haven't had the time to test #24 as the changes are quite extensive, but I'll try to get around to testing and hopefully merging it next week.
In fact, we just need to rewrite the write file logic with this part in our project.
import * as sudoPrompt from '@vscode/sudo-prompt'
const sudo = async (
cmd: string,
name?: string
): Promise<{
stdout: string | Buffer | undefined,
stderr: string | Buffer | undefined
}> => new Promise((resolve, reject) =>
sudoPrompt.exec(cmd, { name }, (err, stdout, stderr) => {
if (err)
reject(err)
else
resolve({ stdout, stderr })
})
)
Hey, I still need to enter vscode as admin to enable vscode vibrancy.
if you fix this issue, It would be much easier for a novice like me to implement extra features for this project/repo. (Like auto dark mode).
This shouldn't impede your process if you reinstall VSCode to be a user installation.
I've tried looking into this also, but didn't have much success, Windows would give me an "operation not permitted" error when trying to copy the runtime files with admin permissions. If anyone wants to submit a PR with a solution that works, that would be much appreciated.
Hi, we can use this package to make the extension to run as admin when need. It can make this extension run without admin vscode.
@vscode/sudo-prompt