Skip to content

Commit c2df3b7

Browse files
author
Kartik Raj
committed
Undo unnecessary cast
1 parent 64ee37a commit c2df3b7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/vs/workbench/api/common/extHostExtensionService.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,10 +522,7 @@ export abstract class AbstractExtHostExtensionService extends Disposable impleme
522522
checkProposedApiEnabled(extensionDescription, 'extensionRuntime');
523523
return that.extensionRuntime;
524524
},
525-
get environmentVariableCollection() {
526-
// TODO: Remove `as` cast once workspace collection proposal is finalized.
527-
return (that._extHostTerminalService.getEnvironmentVariableCollection(extensionDescription) as vscode.EnvironmentVariableCollection);
528-
},
525+
get environmentVariableCollection() { return that._extHostTerminalService.getEnvironmentVariableCollection(extensionDescription); },
529526
get messagePassingProtocol() {
530527
if (!messagePassingProtocol) {
531528
if (!messagePort) {

0 commit comments

Comments
 (0)