Skip to content

Commit

Permalink
Update proposed APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Raj committed Feb 23, 2023
1 parent afeedd8 commit f987b91
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"publisher": "ms-python",
"enabledApiProposals": [
"quickPickSortByLabel",
"envShellEvent",
"testObserver"
],
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/client/interpreter/activation/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export class EnvironmentActivationService
args[i] = arg.toCommandArgumentForPythonExt();
});
if (interpreter?.envType === EnvironmentType.Conda) {
const conda = await Conda.getConda();
const conda = await Conda.getConda(shell);
const pythonArgv = await conda?.getRunPythonArgs({
name: interpreter.envName,
prefix: interpreter.envPath ?? '',
Expand Down
16 changes: 16 additions & 0 deletions types/vscode.proposed.envShellEvent.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

declare module 'vscode' {

// See https://github.com/microsoft/vscode/issues/160694
export namespace env {

/**
* An {@link Event} which fires when the default shell changes.
*/
export const onDidChangeShell: Event<string>;
}
}
18 changes: 0 additions & 18 deletions types/vscode.proposed.testObserver.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,24 +68,6 @@ declare module 'vscode' {
readonly removed: ReadonlyArray<TestItem>;
}

/**
* A test item is an item shown in the "test explorer" view. It encompasses
* both a suite and a test, since they have almost or identical capabilities.
*/
export interface TestItem {
/**
* Marks the test as outdated. This can happen as a result of file changes,
* for example. In "auto run" mode, tests that are outdated will be
* automatically rerun after a short delay. Invoking this on a
* test with children will mark the entire subtree as outdated.
*
* Extensions should generally not override this method.
*/
// todo@api still unsure about this
invalidateResults(): void;
}


/**
* TestResults can be provided to the editor in {@link tests.publishTestResult},
* or read from it in {@link tests.testResults}.
Expand Down

0 comments on commit f987b91

Please sign in to comment.