@@ -50,9 +50,9 @@ export interface IExtHostTerminalService extends ExtHostTerminalServiceShape, ID
50
50
registerLinkProvider ( provider : vscode . TerminalLinkProvider ) : vscode . Disposable ;
51
51
registerProfileProvider ( extension : IExtensionDescription , id : string , provider : vscode . TerminalProfileProvider ) : vscode . Disposable ;
52
52
registerTerminalQuickFixProvider ( id : string , extensionId : string , provider : vscode . TerminalQuickFixProvider ) : vscode . Disposable ;
53
- getEnvironmentVariableCollection ( extension : IExtensionDescription ) : IDefaultEnvironmentVariableCollection ;
53
+ getEnvironmentVariableCollection ( extension : IExtensionDescription ) : IEnvironmentVariableCollection ;
54
54
}
55
- type IDefaultEnvironmentVariableCollection = vscode . EnvironmentVariableCollection | { getScopedEnvironmentVariableCollection ( scope : vscode . EnvironmentVariableScope | undefined ) : vscode . EnvironmentVariableCollection } ;
55
+ type IEnvironmentVariableCollection = vscode . EnvironmentVariableCollection & { getScopedEnvironmentVariableCollection ( scope : vscode . EnvironmentVariableScope | undefined ) : vscode . EnvironmentVariableCollection } ;
56
56
export interface ITerminalInternalOptions {
57
57
isFeatureTerminal ?: boolean ;
58
58
useShellEnvironment ?: boolean ;
@@ -823,7 +823,7 @@ export abstract class BaseExtHostTerminalService extends Disposable implements I
823
823
return index ;
824
824
}
825
825
826
- public getEnvironmentVariableCollection ( extension : IExtensionDescription ) : IDefaultEnvironmentVariableCollection {
826
+ public getEnvironmentVariableCollection ( extension : IExtensionDescription ) : IEnvironmentVariableCollection {
827
827
let collection = this . _environmentVariableCollections . get ( extension . identifier . value ) ;
828
828
if ( ! collection ) {
829
829
collection = new EnvironmentVariableCollection ( ) ;
@@ -888,7 +888,7 @@ class EnvironmentVariableCollection {
888
888
this . map = new Map ( serialized ) ;
889
889
}
890
890
891
- getScopedEnvironmentVariableCollection ( scope : vscode . EnvironmentVariableScope | undefined ) : IDefaultEnvironmentVariableCollection {
891
+ getScopedEnvironmentVariableCollection ( scope : vscode . EnvironmentVariableScope | undefined ) : IEnvironmentVariableCollection {
892
892
const scopedCollectionKey = this . getScopeKey ( scope ) ;
893
893
let scopedCollection = this . scopedCollections . get ( scopedCollectionKey ) ;
894
894
if ( ! scopedCollection ) {
@@ -1004,7 +1004,7 @@ class EnvironmentVariableCollection {
1004
1004
}
1005
1005
}
1006
1006
1007
- class ScopedEnvironmentVariableCollection implements vscode . EnvironmentVariableCollection , IDefaultEnvironmentVariableCollection {
1007
+ class ScopedEnvironmentVariableCollection implements vscode . EnvironmentVariableCollection , IEnvironmentVariableCollection {
1008
1008
public get persistent ( ) : boolean { return this . collection . persistent ; }
1009
1009
public set persistent ( value : boolean ) {
1010
1010
this . collection . persistent = value ;
0 commit comments