File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -522,7 +522,10 @@ export abstract class AbstractExtHostExtensionService extends Disposable impleme
522
522
checkProposedApiEnabled ( extensionDescription , 'extensionRuntime' ) ;
523
523
return that . extensionRuntime ;
524
524
} ,
525
- get environmentVariableCollection ( ) { return that . _extHostTerminalService . getEnvironmentVariableCollection ( extensionDescription ) ; } ,
525
+ get environmentVariableCollection ( ) {
526
+ // TODO: Remove `as` cast once workspace collection proposal is finalized.
527
+ return ( that . _extHostTerminalService . getEnvironmentVariableCollection ( extensionDescription ) as vscode . EnvironmentVariableCollection ) ;
528
+ } ,
526
529
get messagePassingProtocol ( ) {
527
530
if ( ! messagePassingProtocol ) {
528
531
if ( ! messagePort ) {
Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ declare module 'vscode' {
7
7
8
8
// https://github.com/microsoft/vscode/issues/182069
9
9
10
- export interface ExtensionContext {
11
- /**
12
- * Gets the extension's environment variable collection for this workspace, enabling changes
13
- * to be applied to terminal environment variables.
14
- *
15
- * @param scope The scope to which the environment variable collection applies to.
16
- */
17
- readonly environmentVariableCollection : EnvironmentVariableCollection | { getScopedEnvironmentVariableCollection ( scope : EnvironmentVariableScope ) : EnvironmentVariableCollection } ;
18
- }
10
+ // export interface ExtensionContext {
11
+ // /**
12
+ // * Gets the extension's environment variable collection for this workspace, enabling changes
13
+ // * to be applied to terminal environment variables.
14
+ // *
15
+ // * @param scope The scope to which the environment variable collection applies to.
16
+ // */
17
+ // readonly environmentVariableCollection: EnvironmentVariableCollection | { getScopedEnvironmentVariableCollection(scope: EnvironmentVariableScope): EnvironmentVariableCollection };
18
+ // }
19
19
20
20
export type EnvironmentVariableScope = {
21
21
/**
You can’t perform that action at this time.
0 commit comments