Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 77e4c90

Browse files
committed
1 parent 0cb7589 commit 77e4c90

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Reference Search View",
44
"icon": "media/icon.png",
55
"description": "Reference Search results as separate, stable view in the sidebar",
6-
"version": "0.0.43",
6+
"version": "0.0.44",
77
"publisher": "ms-vscode",
88
"engines": {
99
"vscode": "^1.40.0"

src/extension.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)