File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export class ObjectScriptDebugSession extends LoggingDebugSession {
8282
8383 private _contexts = new Map < number , xdebug . Context > ( ) ;
8484
85- private _contextNames : string [ ] = [ "Private" , "Public" ] ;
85+ private _contextNames : string [ ] = [ "Private" , "Public" , "Class" ] ;
8686
8787 private _properties = new Map < number , xdebug . Property > ( ) ;
8888
@@ -389,7 +389,11 @@ export class ObjectScriptDebugSession extends LoggingDebugSession {
389389 scopes = contexts . map ( ( context ) => {
390390 const variableId = this . _variableIdCounter ++ ;
391391 this . _contexts . set ( variableId , context ) ;
392- return new Scope ( this . _contextNames [ context . id ] , variableId ) ;
392+ if ( context . id < this . _contextNames . length ) {
393+ return new Scope ( this . _contextNames [ context . id ] , variableId ) ;
394+ } else {
395+ return new Scope ( context . name , variableId ) ;
396+ }
393397 } ) ;
394398 response . body = {
395399 scopes,
You can’t perform that action at this time.
0 commit comments