1
1
mirror of https://github.com/kahole/edamagit.git synced 2024-09-11 07:15:31 +03:00

Merge pull request #267 from ianic/fix-remote-insiders-path

fix vscode-insiders path for the remote environment
This commit is contained in:
Kristian Andersen Hole 2023-12-04 17:10:49 +01:00 committed by GitHub
commit 0d17f57d62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,7 +206,7 @@ function findCodePath(): string {
if (isDarwin) {
codePath = execPath.split(/(?<=\.app)/)[0] + '/Contents/Resources/app/bin/' + codePath;
} else {
codePath = path.join(path.dirname(execPath), 'bin', codePath);
codePath = path.join(path.dirname(execPath), 'bin', (isRemote ? 'remote-cli' : ''), codePath);
}
if (!fs.existsSync(codePath)) {