File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/application-extension/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,8 @@ const opener: JupyterFrontEndPlugin<void> = {
200
200
) : void => {
201
201
const { commands, docRegistry } = app ;
202
202
203
- const ignoredPattern = new RegExp ( '/tree(.*)' ) ;
203
+ const ignoredPattern = new RegExp ( '/tree/(.*)' ) ;
204
+ const pathSegmentPattern = new RegExp ( '\\bnotebooks\\b|\\bedit\\b' ) ;
204
205
const command = 'router:tree' ;
205
206
commands . addCommand ( command , {
206
207
execute : ( args : any ) => {
@@ -212,7 +213,7 @@ const opener: JupyterFrontEndPlugin<void> = {
212
213
return ;
213
214
}
214
215
215
- const pathSegments : string [ ] = parsed . path . split ( TREE_PATTERN ) ;
216
+ const pathSegments : string [ ] = parsed . path . split ( pathSegmentPattern ) ;
216
217
if ( pathSegments . length > 1 && pathSegments [ 0 ] . match ( ignoredPattern ) ) {
217
218
return ;
218
219
}
You can’t perform that action at this time.
0 commit comments