Skip to content

Commit e93f77a

Browse files
committed
Disable proposed api used for custom editor
1 parent 4e67124 commit e93f77a

File tree

7 files changed

+8
-141
lines changed

7 files changed

+8
-141
lines changed

.vscode/launch.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
"request": "launch",
99
"runtimeExecutable": "${execPath}",
1010
"args": [
11-
"--extensionDevelopmentPath=${workspaceFolder}",
12-
"--enable-proposed-api",
13-
"ms-python.python"
11+
"--extensionDevelopmentPath=${workspaceFolder}"
1412
],
1513
"stopOnEntry": false,
1614
"smartStep": true,
@@ -21,7 +19,7 @@
2119
"preLaunchTask": "Compile",
2220
"skipFiles": [
2321
"<node_internals>/**"
24-
],
22+
]
2523
},
2624
{
2725
"name": "Extension inside container",

src/client/common/insidersBuild/insidersExtensionService.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,7 @@ export class InsidersExtensionService implements IExtensionSingleActivationServi
8585
* @returns `true` if install channel is handled in these miscellaneous cases, `false` if install channel needs further handling
8686
*/
8787
public async handleEdgeCases(installChannel: ExtensionChannels, isDefault: boolean): Promise<boolean> {
88-
// When running UI Tests we might want to disable these prompts.
89-
if (process.env.UITEST_DISABLE_INSIDERS) {
90-
return true;
91-
} else if (await this.promptToInstallInsidersIfApplicable(isDefault)) {
88+
if (await this.promptToInstallInsidersIfApplicable(isDefault)) {
9289
return true;
9390
} else if (await this.setInsidersChannelToOffIfApplicable(installChannel)) {
9491
return true;

src/test/common/insidersBuild/insidersExtensionService.unit.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,7 @@ suite('Insiders Extension Service - Activation', () => {
106106
let handleEdgeCases: sinon.SinonStub<any>;
107107
let insidersInstaller: IExtensionBuildInstaller;
108108
let insidersExtensionService: InsidersExtensionService;
109-
let envUITEST_DISABLE_INSIDERSExists = false;
110109
setup(() => {
111-
envUITEST_DISABLE_INSIDERSExists = process.env.UITEST_DISABLE_INSIDERS !== undefined;
112-
delete process.env.UITEST_DISABLE_INSIDERS;
113110
extensionChannelService = mock(ExtensionChannelService);
114111
insidersInstaller = mock(InsidersBuildInstaller);
115112
appEnvironment = mock(ApplicationEnvironment);
@@ -122,9 +119,6 @@ suite('Insiders Extension Service - Activation', () => {
122119
});
123120

124121
teardown(() => {
125-
if (envUITEST_DISABLE_INSIDERSExists) {
126-
process.env.UITEST_DISABLE_INSIDERS = '1';
127-
}
128122
sinon.restore();
129123
});
130124

src/test/debuggerTest.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ function start() {
1818
extensionDevelopmentPath: EXTENSION_ROOT_DIR_FOR_TESTS,
1919
extensionTestsPath: path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'out', 'test', 'index'),
2020
launchArgs: [workspacePath],
21-
version: 'insiders',
22-
extensionTestsEnv: { ...process.env, UITEST_DISABLE_INSIDERS: '1' }
21+
version: 'insiders'
2322
}).catch(ex => {
2423
console.error('End Debugger tests (with errors)', ex);
2524
process.exit(1);

src/test/multiRootTest.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ function start() {
1313
runTests({
1414
extensionDevelopmentPath: EXTENSION_ROOT_DIR_FOR_TESTS,
1515
extensionTestsPath: path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'out', 'test', 'index'),
16-
launchArgs: [workspacePath, '--enable-proposed-api', 'ms-python.python'],
17-
version: 'insiders',
18-
extensionTestsEnv: { ...process.env, UITEST_DISABLE_INSIDERS: '1' }
16+
launchArgs: [workspacePath],
17+
version: 'stable'
1918
}).catch(ex => {
2019
console.error('End Multiroot tests (with errors)', ex);
2120
process.exit(1);

src/test/standardTest.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ function start() {
1919
runTests({
2020
extensionDevelopmentPath: extensionDevelopmentPath,
2121
extensionTestsPath: path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'out', 'test', 'index'),
22-
launchArgs: [workspacePath, '--enable-proposed-api', 'ms-python.python'],
23-
version: 'insiders',
24-
extensionTestsEnv: { ...process.env, UITEST_DISABLE_INSIDERS: '1' }
22+
launchArgs: [workspacePath],
23+
version: 'stable'
2524
}).catch(ex => {
2625
console.error('End Standard tests (with errors)', ex);
2726
process.exit(1);

types/vscode.proposed.d.ts

Lines changed: 0 additions & 119 deletions
This file was deleted.

0 commit comments

Comments
 (0)