Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion extensions/ql-vscode/src/common/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type {
} from "../variant-analysis/shared/variant-analysis";
import type { QLDebugConfiguration } from "../debugger/debug-configuration";
import type { QueryTreeViewItem } from "../queries-panel/query-tree-view-item";
import type { Usage } from "../model-editor/method";
import type { Method, Usage } from "../model-editor/method";

// A command function matching the signature that VS Code calls when
// a command is invoked from a context menu on a TreeView with
Expand Down Expand Up @@ -306,6 +306,7 @@ export type PackagingCommands = {
export type ModelEditorCommands = {
"codeQL.openModelEditor": () => Promise<void>;
"codeQLModelEditor.jumpToUsageLocation": (
method: Method,
usage: Usage,
databaseItem: DatabaseItem,
) => Promise<void>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,11 @@ export class ModelEditorModule extends DisposableObject {
);
},
"codeQLModelEditor.jumpToUsageLocation": async (
method: Method,
usage: Usage,
databaseItem: DatabaseItem,
) => {
await this.methodModelingPanel.setMethod(method);
await showResolvableLocation(usage.url, databaseItem, this.app.logger);
},
};
Expand Down