Merge pull request #2502 from github/koesie10/move-interface-utils
Move interface-utils to local-queries/webview
This commit is contained in:
@@ -73,7 +73,11 @@ import {
|
|||||||
getErrorStack,
|
getErrorStack,
|
||||||
} from "./pure/helpers-pure";
|
} from "./pure/helpers-pure";
|
||||||
import { ResultsView } from "./interface";
|
import { ResultsView } from "./interface";
|
||||||
import { WebviewReveal } from "./interface-utils";
|
import {
|
||||||
|
WebviewReveal,
|
||||||
|
LocalQueries,
|
||||||
|
QuickEvalCodeLensProvider,
|
||||||
|
} from "./local-queries";
|
||||||
import {
|
import {
|
||||||
extLogger,
|
extLogger,
|
||||||
ideServerLogger,
|
ideServerLogger,
|
||||||
@@ -115,7 +119,6 @@ import {
|
|||||||
PreActivationCommands,
|
PreActivationCommands,
|
||||||
QueryServerCommands,
|
QueryServerCommands,
|
||||||
} from "./common/commands";
|
} from "./common/commands";
|
||||||
import { LocalQueries, QuickEvalCodeLensProvider } from "./local-queries";
|
|
||||||
import { getAstCfgCommands } from "./language-support/ast-viewer/ast-cfg-commands";
|
import { getAstCfgCommands } from "./language-support/ast-viewer/ast-cfg-commands";
|
||||||
import { App } from "./common/app";
|
import { App } from "./common/app";
|
||||||
import { registerCommandWithErrorHandling } from "./common/vscode/commands";
|
import { registerCommandWithErrorHandling } from "./common/vscode/commands";
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ import {
|
|||||||
parseSarifLocation,
|
parseSarifLocation,
|
||||||
parseSarifPlainTextMessage,
|
parseSarifPlainTextMessage,
|
||||||
} from "./pure/sarif-utils";
|
} from "./pure/sarif-utils";
|
||||||
import { WebviewReveal, fileUriToWebviewUri } from "./interface-utils";
|
import { WebviewReveal, fileUriToWebviewUri } from "./local-queries/webview";
|
||||||
import {
|
import {
|
||||||
tryResolveLocation,
|
tryResolveLocation,
|
||||||
shownLocationDecoration,
|
shownLocationDecoration,
|
||||||
|
|||||||
@@ -2,3 +2,4 @@ export * from "./local-queries";
|
|||||||
export * from "./local-query-run";
|
export * from "./local-query-run";
|
||||||
export * from "./quick-eval-code-lens-provider";
|
export * from "./quick-eval-code-lens-provider";
|
||||||
export * from "./quick-query";
|
export * from "./quick-query";
|
||||||
|
export { WebviewReveal } from "./webview";
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ import {
|
|||||||
validateQueryUri,
|
validateQueryUri,
|
||||||
} from "../run-queries-shared";
|
} from "../run-queries-shared";
|
||||||
import { CompletedLocalQueryInfo, LocalQueryInfo } from "../query-results";
|
import { CompletedLocalQueryInfo, LocalQueryInfo } from "../query-results";
|
||||||
import { WebviewReveal } from "../interface-utils";
|
import { WebviewReveal } from "./webview";
|
||||||
import { asError, getErrorMessage } from "../pure/helpers-pure";
|
import { asError, getErrorMessage } from "../pure/helpers-pure";
|
||||||
import { CodeQLCliServer } from "../codeql-cli/cli";
|
import { CodeQLCliServer } from "../codeql-cli/cli";
|
||||||
import { LocalQueryCommands } from "../common/commands";
|
import { LocalQueryCommands } from "../common/commands";
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import {
|
|||||||
QueryWithResults,
|
QueryWithResults,
|
||||||
} from "../run-queries-shared";
|
} from "../run-queries-shared";
|
||||||
import { CompletedLocalQueryInfo, LocalQueryInfo } from "../query-results";
|
import { CompletedLocalQueryInfo, LocalQueryInfo } from "../query-results";
|
||||||
import { WebviewReveal } from "../interface-utils";
|
import { WebviewReveal } from "./webview";
|
||||||
import { CodeQLCliServer } from "../codeql-cli/cli";
|
import { CodeQLCliServer } from "../codeql-cli/cli";
|
||||||
import { QueryResultType } from "../pure/new-messages";
|
import { QueryResultType } from "../pure/new-messages";
|
||||||
import { redactableError } from "../pure/errors";
|
import { redactableError } from "../pure/errors";
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
import { Uri, WebviewPanel } from "vscode";
|
import type { Uri, WebviewPanel } from "vscode";
|
||||||
|
|
||||||
/**
|
|
||||||
* This module contains functions and types that are sharedd between
|
|
||||||
* interface.ts and compare-interface.ts.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether to force webview to reveal
|
* Whether to force webview to reveal
|
||||||
@@ -43,7 +43,7 @@ import { pathExists } from "fs-extra";
|
|||||||
import { CliVersionConstraint } from "../codeql-cli/cli";
|
import { CliVersionConstraint } from "../codeql-cli/cli";
|
||||||
import { HistoryItemLabelProvider } from "./history-item-label-provider";
|
import { HistoryItemLabelProvider } from "./history-item-label-provider";
|
||||||
import { ResultsView } from "../interface";
|
import { ResultsView } from "../interface";
|
||||||
import { WebviewReveal } from "../interface-utils";
|
import { WebviewReveal } from "../local-queries";
|
||||||
import { EvalLogTreeBuilder, EvalLogViewer } from "../query-evaluation-logging";
|
import { EvalLogTreeBuilder, EvalLogViewer } from "../query-evaluation-logging";
|
||||||
import { EvalLogData, parseViewerData } from "../pure/log-summary-parser";
|
import { EvalLogData, parseViewerData } from "../pure/log-summary-parser";
|
||||||
import { QueryWithResults } from "../run-queries-shared";
|
import { QueryWithResults } from "../run-queries-shared";
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { Uri, ViewColumn, WebviewPanel, window } from "vscode";
|
import { Uri, ViewColumn, WebviewPanel, window } from "vscode";
|
||||||
import { basename } from "path";
|
import { basename } from "path";
|
||||||
import { FileResult, fileSync } from "tmp";
|
import { FileResult, fileSync } from "tmp";
|
||||||
import { fileUriToWebviewUri } from "../../../src/interface-utils";
|
import { fileUriToWebviewUri } from "../../../../src/local-queries/webview";
|
||||||
import { getDefaultResultSetName } from "../../../src/pure/interface-types";
|
import { getDefaultResultSetName } from "../../../../src/pure/interface-types";
|
||||||
|
|
||||||
describe("interface-utils", () => {
|
describe("interface-utils", () => {
|
||||||
describe("webview uri conversion", () => {
|
describe("webview uri conversion", () => {
|
||||||
@@ -22,7 +22,7 @@ import { createMockVariantAnalysisHistoryItem } from "../../../factories/query-h
|
|||||||
import { VariantAnalysisHistoryItem } from "../../../../src/query-history/variant-analysis-history-item";
|
import { VariantAnalysisHistoryItem } from "../../../../src/query-history/variant-analysis-history-item";
|
||||||
import { QueryStatus } from "../../../../src/query-status";
|
import { QueryStatus } from "../../../../src/query-status";
|
||||||
import { VariantAnalysisStatus } from "../../../../src/variant-analysis/shared/variant-analysis";
|
import { VariantAnalysisStatus } from "../../../../src/variant-analysis/shared/variant-analysis";
|
||||||
import { WebviewReveal } from "../../../../src/interface-utils";
|
import { WebviewReveal } from "../../../../src/local-queries";
|
||||||
import * as helpers from "../../../../src/helpers";
|
import * as helpers from "../../../../src/helpers";
|
||||||
import { mockedQuickPickItem } from "../../utils/mocking.helpers";
|
import { mockedQuickPickItem } from "../../utils/mocking.helpers";
|
||||||
import { createMockQueryHistoryDirs } from "../../../factories/query-history/query-history-dirs";
|
import { createMockQueryHistoryDirs } from "../../../factories/query-history/query-history-dirs";
|
||||||
|
|||||||
Reference in New Issue
Block a user