diff --git a/src/vs/code/electron-main/main.ts b/src/vs/code/electron-main/main.ts index 0824056344acd..eba79c0656b08 100644 --- a/src/vs/code/electron-main/main.ts +++ b/src/vs/code/electron-main/main.ts @@ -481,8 +481,7 @@ class CodeMain { args.waitMarkerFilePath = waitMarkerFilePath; } } - addArg(process.argv, '--autoplay-policy', 'no-user-gesture-required'); - args['autoplay-policy'] = 'no-user-gesture-required'; + return args; } diff --git a/src/vs/platform/environment/common/argv.ts b/src/vs/platform/environment/common/argv.ts index 1de244c04ed75..3fd7438bad480 100644 --- a/src/vs/platform/environment/common/argv.ts +++ b/src/vs/platform/environment/common/argv.ts @@ -45,7 +45,6 @@ export interface NativeParsedArgs { 'prof-duration-markers-file'?: string; 'prof-v8-extensions'?: boolean; 'no-cached-data'?: boolean; - 'autoplay-policy'?: string; verbose?: boolean; trace?: boolean; 'trace-category-filter'?: string; diff --git a/src/vs/platform/environment/common/environment.ts b/src/vs/platform/environment/common/environment.ts index c0d0ede082de5..dbec787f07737 100644 --- a/src/vs/platform/environment/common/environment.ts +++ b/src/vs/platform/environment/common/environment.ts @@ -65,7 +65,6 @@ export interface IEnvironmentService { // --- continue edit session continueOn?: string; - autoplayPolicy?: string; editSessionId?: string; // --- extension development diff --git a/src/vs/platform/environment/common/environmentService.ts b/src/vs/platform/environment/common/environmentService.ts index 9867e4392a946..7f2e8e93b3ed2 100644 --- a/src/vs/platform/environment/common/environmentService.ts +++ b/src/vs/platform/environment/common/environmentService.ts @@ -259,10 +259,6 @@ export abstract class AbstractNativeEnvironmentService implements INativeEnviron this.args['continueOn'] = value; } - get autoplayPolicy(): string | undefined { - return this._args['autoplay-policy']; - } - get args(): NativeParsedArgs { return this._args; } constructor( diff --git a/src/vs/platform/environment/node/argv.ts b/src/vs/platform/environment/node/argv.ts index 6e69f0448b1b5..8f94ff9c6c4be 100644 --- a/src/vs/platform/environment/node/argv.ts +++ b/src/vs/platform/environment/node/argv.ts @@ -66,6 +66,7 @@ export const OPTIONS: OptionDescriptions> = { } } }, + 'diff': { type: 'boolean', cat: 'o', alias: 'd', args: ['file', 'file'], description: localize('diff', "Compare two files with each other.") }, 'merge': { type: 'boolean', cat: 'o', alias: 'm', args: ['path1', 'path2', 'base', 'result'], description: localize('merge', "Perform a three-way merge by providing paths for two modified versions of a file, the common origin of both modified versions and the output file to save merge results.") }, 'add': { type: 'boolean', cat: 'o', alias: 'a', args: 'folder', description: localize('add', "Add folder(s) to the last active window.") }, @@ -189,7 +190,6 @@ export const OPTIONS: OptionDescriptions> = { '_urls': { type: 'string[]' }, 'disable-dev-shm-usage': { type: 'boolean' }, 'profile-temp': { type: 'boolean' }, - 'autoplay-policy': { type: 'string' }, _: { type: 'string[]' } // main arguments }; diff --git a/src/vs/platform/windows/electron-main/windowImpl.ts b/src/vs/platform/windows/electron-main/windowImpl.ts index 98a88dd6454dd..82fcef5e7db99 100644 --- a/src/vs/platform/windows/electron-main/windowImpl.ts +++ b/src/vs/platform/windows/electron-main/windowImpl.ts @@ -1085,7 +1085,6 @@ export class CodeWindow extends Disposable implements ICodeWindow { configuration.isInitialStartup = false; // since this is a reload configuration.policiesData = this.policyService.serialize(); // set policies data again configuration.continueOn = this.environmentMainService.continueOn; - configuration['autoplay-policy'] = this.environmentMainService.autoplayPolicy; configuration.profiles = { all: this.userDataProfilesService.profiles, profile: this.profile || this.userDataProfilesService.defaultProfile,