@@ -2,6 +2,7 @@ import type { CancellationToken, ConfigurationChangeEvent, Position, TextDocumen
22import  {  Disposable ,  Hover ,  languages ,  Range ,  window  }  from  'vscode' ; 
33import  type  {  Container  }  from  '../container' ; 
44import  {  configuration  }  from  '../system/-webview/configuration' ; 
5+ import  {  isTrackableTextEditor  }  from  '../system/-webview/vscode/editors' ; 
56import  {  debug  }  from  '../system/decorators/log' ; 
67import  {  once  }  from  '../system/event' ; 
78import  {  Logger  }  from  '../system/logger' ; 
@@ -81,6 +82,8 @@ export class LineHoverController implements Disposable {
8182			1 : position  =>  `${ position . line }  :${ position . character }  ` , 
8283			2 : false , 
8384		} , 
85+ 		exit : r  =>  ( r  !=  null  ? 'provided'  : 'skipped' ) , 
86+ 		singleLine : true , 
8487	} ) 
8588	async  provideDetailsHover ( 
8689		document : TextDocument , 
@@ -141,6 +144,8 @@ export class LineHoverController implements Disposable {
141144			1 : position  =>  `${ position . line }  :${ position . character }  ` , 
142145			2 : false , 
143146		} , 
147+ 		exit : r  =>  ( r  !=  null  ? 'provided'  : 'skipped' ) , 
148+ 		singleLine : true , 
144149	} ) 
145150	async  provideChangesHover ( 
146151		document : TextDocument , 
@@ -197,7 +202,7 @@ export class LineHoverController implements Disposable {
197202	private  register ( editor : TextEditor  |  undefined )  { 
198203		this . unregister ( ) ; 
199204
200- 		if  ( editor  ==  null )  return ; 
205+ 		if  ( editor  ==  null   ||   ! isTrackableTextEditor ( editor ) )  return ; 
201206
202207		const  cfg  =  configuration . get ( 'hovers' ) ; 
203208		if  ( ! cfg . enabled  ||  ! cfg . currentLine . enabled  ||  ( ! cfg . currentLine . details  &&  ! cfg . currentLine . changes ) )  return ; 
0 commit comments