File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
vs/workbench/api/common/positron Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1829,7 +1829,7 @@ declare module 'positron' {
1829
1829
/**
1830
1830
* List all active sessions.
1831
1831
*/
1832
- export function getActiveSessions ( ) : Thenable < ActiveRuntimeSessionMetadata [ ] > ;
1832
+ export function getActiveSessions ( ) : Thenable < BaseLanguageRuntimeSession [ ] > ;
1833
1833
1834
1834
/**
1835
1835
* Get a specific session by its ID.
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ export function createPositronApiFactoryAndRegisterActors(accessor: ServicesAcce
103
103
getPreferredRuntime ( languageId : string ) : Thenable < positron . LanguageRuntimeMetadata | undefined > {
104
104
return extHostLanguageRuntime . getPreferredRuntime ( languageId ) ;
105
105
} ,
106
- getActiveSessions ( ) : Thenable < positron . ActiveRuntimeSessionMetadata [ ] > {
106
+ getActiveSessions ( ) : Thenable < positron . BaseLanguageRuntimeSession [ ] > {
107
107
return extHostLanguageRuntime . getActiveSessions ( ) ;
108
108
} ,
109
109
getSession ( sessionId : string ) : Thenable < positron . BaseLanguageRuntimeSession | undefined > {
Original file line number Diff line number Diff line change @@ -1062,8 +1062,9 @@ export class ExtHostLanguageRuntime implements extHostProtocol.ExtHostLanguageRu
1062
1062
return this . _proxy . $getPreferredRuntime ( languageId ) ;
1063
1063
}
1064
1064
1065
- public async getActiveSessions ( ) : Promise < positron . ActiveRuntimeSessionMetadata [ ] > {
1066
- return this . _proxy . $getActiveSessions ( ) ;
1065
+ public async getActiveSessions ( ) : Promise < positron . BaseLanguageRuntimeSession [ ] > {
1066
+ return ( await this . _proxy . $getActiveSessions ( ) )
1067
+ . map ( session => this . getRuntimeSessionInterface ( session ) ! ) ;
1067
1068
}
1068
1069
1069
1070
public async getSession ( sessionId : string ) : Promise < positron . BaseLanguageRuntimeSession | undefined > {
You can’t perform that action at this time.
0 commit comments