@@ -23,7 +23,7 @@ export function activate(context: vscode.ExtensionContext) {
2323 await vscode . commands . executeCommand ( `${ viewId } .focus` ) ;
2424 } ;
2525
26- const view = vscode . window . createTreeView ( viewId , {
26+ const view = vscode . window . createTreeView < FileItem | ReferenceItem | CallItem > ( viewId , {
2727 treeDataProvider : provider ,
2828 showCollapseAll : true
2929 } ) ;
@@ -236,9 +236,9 @@ export function activate(context: vscode.ExtensionContext) {
236236 }
237237 } ;
238238
239- const removeRefCommand = ( arg ?: ReferenceItem | any ) => {
239+ const removeRefCommand = async ( arg ?: ReferenceItem | any ) => {
240240 if ( model instanceof ReferencesModel ) {
241- const next = model . move ( arg , true ) ;
241+ const next = await model . move ( arg , true ) ;
242242 model . remove ( arg ) ;
243243 editorHighlights . refresh ( ) ;
244244 showResultsMessage ( ) ;
@@ -248,15 +248,15 @@ export function activate(context: vscode.ExtensionContext) {
248248 }
249249 } ;
250250
251- const focusRefCommand = ( fwd : boolean ) => {
251+ const focusRefCommand = async ( fwd : boolean ) => {
252252 if ( ! ( model instanceof ReferencesModel ) ) {
253253 return ;
254254 }
255255 const selection = view . selection [ 0 ] || model . first ( ) ;
256256 if ( selection instanceof HistoryItem || selection instanceof CallItem ) {
257257 return ;
258258 }
259- const next = model . move ( selection , fwd ) ;
259+ const next = await model . move ( selection , fwd ) ;
260260 if ( next ) {
261261 view . reveal ( next , { select : true } ) ;
262262 showItemCommand ( next , true ) ;
0 commit comments