fixing for 1.54

This commit is contained in:
Baptiste Augrain 2021-03-11 02:13:52 +01:00
parent edc9773c9c
commit 3a15ad9778

View file

@ -24,15 +24,12 @@ diff --git a/src/vs/platform/native/electron-main/nativeHostMainService.ts b/src
index 50c4460..bf73260 100644
--- a/src/vs/platform/native/electron-main/nativeHostMainService.ts
+++ b/src/vs/platform/native/electron-main/nativeHostMainService.ts
@@ -430,7 +430,7 @@ export class NativeHostMainService extends Disposable implements INativeHostMain
@@ -431,4 +431,4 @@ export class NativeHostMainService extends Disposable implements INativeHostMain
// macOS
if (this.environmentService.isBuilt) {
- return join(this.environmentService.appRoot, 'bin', 'code');
+ return join(this.environmentService.appRoot, 'bin', `${product.applicationName}`);
if (this.environmentMainService.isBuilt) {
- return join(this.environmentMainService.appRoot, 'bin', 'code');
+ return join(this.environmentMainService.appRoot, 'bin', `${product.applicationName}`);
}
return join(this.environmentService.appRoot, 'scripts', 'code-cli.sh');
diff --git a/src/vs/workbench/contrib/cli/node/cli.contribution.ts b/src/vs/workbench/contrib/cli/node/cli.contribution.ts
index 30972a4..0a9435c 100644
--- a/src/vs/workbench/contrib/cli/node/cli.contribution.ts