File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ export type ScopeDescriptionMap = {
108
108
export type CommandListScopes = {
109
109
type : 'command' ;
110
110
command : 'list_scopes' ;
111
+ scope : null | string ;
111
112
} ;
112
113
113
114
export type ResponseListScopes = {
Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ export class Session {
64
64
if ( scopeDescriptionMap === undefined ) {
65
65
const response = await this . connection . listScopes ( {
66
66
type : 'command' ,
67
- command : 'list_scopes'
68
- // FIXME: should be possible to filter by scope, too
67
+ command : 'list_scopes' ,
68
+ scope : scopeIdentifier ,
69
69
} ) ;
70
70
const filteredScopes = Object . keys ( response . scopes ) . filter ( ( scopeName ) => {
71
71
if ( scopeIdentifier === '' ) {
@@ -104,7 +104,8 @@ export class Session {
104
104
if ( this . rootScopeDesc === undefined ) {
105
105
const response = await this . connection . listScopes ( {
106
106
type : 'command' ,
107
- command : 'list_scopes'
107
+ command : 'list_scopes' ,
108
+ scope : scopeName ,
108
109
} ) ;
109
110
this . rootScopeDesc = response . scopes [ scopeName ] ;
110
111
}
You can’t perform that action at this time.
0 commit comments