Files
vscode-codeql/extensions/ql-vscode/src/remote-queries/variant-analysis-view-manager.ts
Koen Vlaswinkel 76a00e5fa5 Send variant analysis on viewLoaded message
When the `viewLoaded` message is received by the view, it will now
retrieve the variant analysis from the manager and send it to the
view. This will allow the view to display the variant analysis.
2022-10-07 14:57:38 +02:00

14 lines
411 B
TypeScript

import { VariantAnalysis } from './shared/variant-analysis';
export interface VariantAnalysisViewInterface {
variantAnalysisId: number;
openView(): Promise<void>;
}
export interface VariantAnalysisViewManager<T extends VariantAnalysisViewInterface> {
registerView(view: T): void;
unregisterView(view: T): void;
getVariantAnalysis(variantAnalysisId: number): Promise<VariantAnalysis | undefined>;
}