Move progress.ts to /common/vscode/progress.ts
This commit is contained in:
@@ -14,7 +14,10 @@ import {
|
||||
} from "../helpers";
|
||||
import { extLogger } from "../common";
|
||||
import { getCodeQlCliVersion } from "./cli-version";
|
||||
import { ProgressCallback, reportStreamProgress } from "../progress";
|
||||
import {
|
||||
ProgressCallback,
|
||||
reportStreamProgress,
|
||||
} from "../common/vscode/progress";
|
||||
import {
|
||||
codeQlLauncherName,
|
||||
deprecatedCodeQlLauncherName,
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
getErrorStack,
|
||||
} from "../../pure/helpers-pure";
|
||||
import { redactableError } from "../../pure/errors";
|
||||
import { UserCancellationException } from "../../progress";
|
||||
import { UserCancellationException } from "./progress";
|
||||
import {
|
||||
showAndLogExceptionWithTelemetry,
|
||||
showAndLogWarningMessage,
|
||||
|
||||
@@ -8,7 +8,7 @@ import { ensureDir } from "fs-extra";
|
||||
import { join } from "path";
|
||||
import { App } from "../common/app";
|
||||
import { showAndLogErrorMessage } from "../helpers";
|
||||
import { withProgress } from "../progress";
|
||||
import { withProgress } from "../common/vscode/progress";
|
||||
import { pickExtensionPackModelFile } from "./extension-pack-picker";
|
||||
|
||||
const SUPPORTED_LANGUAGES: string[] = ["java", "csharp"];
|
||||
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
FromDataExtensionsEditorMessage,
|
||||
ToDataExtensionsEditorMessage,
|
||||
} from "../pure/interface-types";
|
||||
import { ProgressUpdate } from "../progress";
|
||||
import { ProgressUpdate } from "../common/vscode/progress";
|
||||
import { QueryRunner } from "../query-server";
|
||||
import {
|
||||
showAndLogErrorMessage,
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
getOnDiskWorkspaceFoldersObjects,
|
||||
showAndLogErrorMessage,
|
||||
} from "../helpers";
|
||||
import { ProgressCallback } from "../progress";
|
||||
import { ProgressCallback } from "../common/vscode/progress";
|
||||
import { DatabaseItem } from "../databases/local-databases";
|
||||
import { getQlPackPath, QLPACK_FILENAMES } from "../pure/ql";
|
||||
import { getErrorMessage } from "../pure/helpers-pure";
|
||||
|
||||
@@ -10,7 +10,7 @@ import { TeeLogger } from "../common";
|
||||
import { CancellationToken } from "vscode";
|
||||
import { CodeQLCliServer } from "../codeql-cli/cli";
|
||||
import { DatabaseItem } from "../databases/local-databases";
|
||||
import { ProgressCallback } from "../progress";
|
||||
import { ProgressCallback } from "../common/vscode/progress";
|
||||
import { fetchExternalApiQueries } from "./queries";
|
||||
import { QueryResultType } from "../pure/new-messages";
|
||||
import { join } from "path";
|
||||
|
||||
@@ -5,7 +5,7 @@ import { QueryRunner } from "../query-server";
|
||||
import { CodeQLCliServer } from "../codeql-cli/cli";
|
||||
import { TeeLogger } from "../common";
|
||||
import { extensiblePredicateDefinitions } from "./predicates";
|
||||
import { ProgressCallback } from "../progress";
|
||||
import { ProgressCallback } from "../common/vscode/progress";
|
||||
import {
|
||||
getOnDiskWorkspaceFolders,
|
||||
showAndLogExceptionWithTelemetry,
|
||||
|
||||
@@ -18,7 +18,10 @@ import { retry } from "@octokit/plugin-retry";
|
||||
|
||||
import { DatabaseManager, DatabaseItem } from "./local-databases";
|
||||
import { showAndLogInformationMessage, tmpDir } from "../helpers";
|
||||
import { reportStreamProgress, ProgressCallback } from "../progress";
|
||||
import {
|
||||
reportStreamProgress,
|
||||
ProgressCallback,
|
||||
} from "../common/vscode/progress";
|
||||
import { extLogger } from "../common";
|
||||
import { getErrorMessage } from "../pure/helpers-pure";
|
||||
import {
|
||||
|
||||
@@ -27,7 +27,7 @@ import {
|
||||
ProgressContext,
|
||||
withInheritedProgress,
|
||||
withProgress,
|
||||
} from "../progress";
|
||||
} from "../common/vscode/progress";
|
||||
import {
|
||||
isLikelyDatabaseRoot,
|
||||
isLikelyDbLanguageFolder,
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
showBinaryChoiceDialog,
|
||||
getFirstWorkspaceFolder,
|
||||
} from "../helpers";
|
||||
import { ProgressCallback, withProgress } from "../progress";
|
||||
import { ProgressCallback, withProgress } from "../common/vscode/progress";
|
||||
import {
|
||||
zipArchiveScheme,
|
||||
encodeArchiveBasePath,
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
window,
|
||||
workspace,
|
||||
} from "vscode";
|
||||
import { UserCancellationException } from "../../progress";
|
||||
import { UserCancellationException } from "../../common/vscode/progress";
|
||||
import {
|
||||
getNwoFromGitHubUrl,
|
||||
isValidGitHubNwo,
|
||||
|
||||
@@ -90,7 +90,7 @@ import { QLTestAdapterFactory } from "./test-adapter";
|
||||
import { TestUIService } from "./test-ui";
|
||||
import { CompareView } from "./compare/compare-view";
|
||||
import { initializeTelemetry } from "./telemetry";
|
||||
import { ProgressCallback, withProgress } from "./progress";
|
||||
import { ProgressCallback, withProgress } from "./common/vscode/progress";
|
||||
import { CodeQlStatusBarHandler } from "./status-bar";
|
||||
import { getPackagingCommands } from "./packaging";
|
||||
import { HistoryItemLabelProvider } from "./query-history/history-item-label-provider";
|
||||
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
WorkspaceFolder,
|
||||
} from "vscode";
|
||||
import { CodeQLCliServer, QlpacksInfo } from "./codeql-cli/cli";
|
||||
import { UserCancellationException } from "./progress";
|
||||
import { UserCancellationException } from "./common/vscode/progress";
|
||||
import { extLogger, OutputChannelLogger } from "./common";
|
||||
import { QueryMetadata } from "./pure/interface-types";
|
||||
import { telemetryListener } from "./telemetry";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Uri, window } from "vscode";
|
||||
import { withProgress } from "../../progress";
|
||||
import { withProgress } from "../../common/vscode/progress";
|
||||
import { AstViewer } from "./ast-viewer";
|
||||
import { AstCfgCommands } from "../../common/commands";
|
||||
import { LocalQueries } from "../../local-queries";
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
} from "../../pure/bqrs-cli-types";
|
||||
import { CodeQLCliServer } from "../../codeql-cli/cli";
|
||||
import { DatabaseManager, DatabaseItem } from "../../databases/local-databases";
|
||||
import { ProgressCallback } from "../../progress";
|
||||
import { ProgressCallback } from "../../common/vscode/progress";
|
||||
import { KeyType } from "./key-type";
|
||||
import {
|
||||
qlpackOfDatabase,
|
||||
|
||||
@@ -20,7 +20,7 @@ import { CodeQLCliServer } from "../../codeql-cli/cli";
|
||||
import { DatabaseItem } from "../../databases/local-databases";
|
||||
import { extLogger, TeeLogger } from "../../common";
|
||||
import { CancellationToken } from "vscode";
|
||||
import { ProgressCallback } from "../../progress";
|
||||
import { ProgressCallback } from "../../common/vscode/progress";
|
||||
import { CoreCompletedQuery, QueryRunner } from "../../query-server";
|
||||
import { redactableError } from "../../pure/errors";
|
||||
import { QLPACK_FILENAMES } from "../../pure/ql";
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
import { CodeQLCliServer } from "../../codeql-cli/cli";
|
||||
import { DatabaseManager } from "../../databases/local-databases";
|
||||
import { CachedOperation } from "../../helpers";
|
||||
import { ProgressCallback, withProgress } from "../../progress";
|
||||
import { ProgressCallback, withProgress } from "../../common/vscode/progress";
|
||||
import { KeyType } from "./key-type";
|
||||
import {
|
||||
FullLocationLink,
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { ProgressCallback, ProgressUpdate, withProgress } from "../progress";
|
||||
import {
|
||||
ProgressCallback,
|
||||
ProgressUpdate,
|
||||
withProgress,
|
||||
} from "../common/vscode/progress";
|
||||
import {
|
||||
CancellationToken,
|
||||
CancellationTokenSource,
|
||||
|
||||
@@ -11,7 +11,10 @@ import {
|
||||
getQlPackForDbscheme,
|
||||
showBinaryChoiceDialog,
|
||||
} from "../helpers";
|
||||
import { ProgressCallback, UserCancellationException } from "../progress";
|
||||
import {
|
||||
ProgressCallback,
|
||||
UserCancellationException,
|
||||
} from "../common/vscode/progress";
|
||||
import { getErrorMessage } from "../pure/helpers-pure";
|
||||
import { FALLBACK_QLPACK_FILENAME, getQlPackPath } from "../pure/ql";
|
||||
import { App } from "../common/app";
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
ProgressCallback,
|
||||
UserCancellationException,
|
||||
withProgress,
|
||||
} from "../progress";
|
||||
} from "../common/vscode/progress";
|
||||
import { extLogger } from "../common";
|
||||
import { asError, getErrorStack } from "../pure/helpers-pure";
|
||||
import { redactableError } from "../pure/errors";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CancellationToken } from "vscode";
|
||||
import { CodeQLCliServer } from "../../codeql-cli/cli";
|
||||
import { ProgressCallback } from "../../progress";
|
||||
import { ProgressCallback } from "../../common/vscode/progress";
|
||||
import { Logger } from "../../common";
|
||||
import { DatabaseItem } from "../../databases/local-databases";
|
||||
import {
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
ProgressMessage,
|
||||
WithProgressId,
|
||||
} from "../../pure/legacy-messages";
|
||||
import { ProgressCallback, ProgressTask } from "../../progress";
|
||||
import { ProgressCallback, ProgressTask } from "../../common/vscode/progress";
|
||||
import { ServerProcess } from "../server-process";
|
||||
import { App } from "../../common/app";
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
showAndLogWarningMessage,
|
||||
upgradesTmpDir,
|
||||
} from "../../helpers";
|
||||
import { ProgressCallback } from "../../progress";
|
||||
import { ProgressCallback } from "../../common/vscode/progress";
|
||||
import { QueryMetadata } from "../../pure/interface-types";
|
||||
import { extLogger, Logger } from "../../common";
|
||||
import * as messages from "../../pure/legacy-messages";
|
||||
|
||||
@@ -4,7 +4,10 @@ import {
|
||||
showAndLogExceptionWithTelemetry,
|
||||
tmpDir,
|
||||
} from "../../helpers";
|
||||
import { ProgressCallback, UserCancellationException } from "../../progress";
|
||||
import {
|
||||
ProgressCallback,
|
||||
UserCancellationException,
|
||||
} from "../../common/vscode/progress";
|
||||
import { extLogger } from "../../common";
|
||||
import * as messages from "../../pure/legacy-messages";
|
||||
import * as qsClient from "./query-server-client";
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
import { CancellationToken } from "vscode";
|
||||
import { ProgressCallback, UserCancellationException } from "../progress";
|
||||
import {
|
||||
ProgressCallback,
|
||||
UserCancellationException,
|
||||
} from "../common/vscode/progress";
|
||||
import { DatabaseItem } from "../databases/local-databases";
|
||||
import {
|
||||
clearCache,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CancellationToken } from "vscode";
|
||||
import { CodeQLCliServer } from "../codeql-cli/cli";
|
||||
import { ProgressCallback } from "../progress";
|
||||
import { ProgressCallback } from "../common/vscode/progress";
|
||||
import { DatabaseItem } from "../databases/local-databases";
|
||||
import { QueryOutputDir } from "../run-queries-shared";
|
||||
import { Position, QueryResultType } from "../pure/new-messages";
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
ProgressMessage,
|
||||
WithProgressId,
|
||||
} from "../pure/new-messages";
|
||||
import { ProgressCallback, ProgressTask } from "../progress";
|
||||
import { ProgressCallback, ProgressTask } from "../common/vscode/progress";
|
||||
import { ServerProcess } from "./server-process";
|
||||
import { App } from "../common/app";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { CancellationToken } from "vscode";
|
||||
import { ProgressCallback } from "../progress";
|
||||
import { ProgressCallback } from "../common/vscode/progress";
|
||||
import * as messages from "../pure/new-messages";
|
||||
import { QueryOutputDir } from "../run-queries-shared";
|
||||
import * as qsClient from "./query-server-client";
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
window,
|
||||
} from "vscode";
|
||||
import { isCanary, AUTOSAVE_SETTING } from "./config";
|
||||
import { UserCancellationException } from "./progress";
|
||||
import { UserCancellationException } from "./common/vscode/progress";
|
||||
import {
|
||||
pathExists,
|
||||
readFile,
|
||||
|
||||
@@ -12,7 +12,10 @@ import {
|
||||
import { getErrorMessage } from "./pure/helpers-pure";
|
||||
import { QlPackGenerator } from "./qlpack-generator";
|
||||
import { DatabaseItem, DatabaseManager } from "./databases/local-databases";
|
||||
import { ProgressCallback, UserCancellationException } from "./progress";
|
||||
import {
|
||||
ProgressCallback,
|
||||
UserCancellationException,
|
||||
} from "./common/vscode/progress";
|
||||
import {
|
||||
askForGitHubRepo,
|
||||
downloadGitHubDatabase,
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
} from "./config";
|
||||
import * as appInsights from "applicationinsights";
|
||||
import { extLogger } from "./common";
|
||||
import { UserCancellationException } from "./progress";
|
||||
import { UserCancellationException } from "./common/vscode/progress";
|
||||
import { showBinaryChoiceWithUrlDialog } from "./helpers";
|
||||
import { RedactableError } from "./pure/errors";
|
||||
import { SemVer } from "semver";
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
ProgressCallback,
|
||||
UserCancellationException,
|
||||
withProgress,
|
||||
} from "../progress";
|
||||
} from "../common/vscode/progress";
|
||||
import { showInformationMessageWithAction } from "../helpers";
|
||||
import { extLogger } from "../common";
|
||||
import { createGist } from "./gh-api/gh-api-client";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { UserCancellationException } from "../progress";
|
||||
import { UserCancellationException } from "../common/vscode/progress";
|
||||
import { DbManager } from "../databases/db-manager";
|
||||
import { DbItemKind } from "../databases/db-item";
|
||||
|
||||
|
||||
@@ -18,7 +18,10 @@ import {
|
||||
getRemoteControllerRepo,
|
||||
setRemoteControllerRepo,
|
||||
} from "../config";
|
||||
import { ProgressCallback, UserCancellationException } from "../progress";
|
||||
import {
|
||||
ProgressCallback,
|
||||
UserCancellationException,
|
||||
} from "../common/vscode/progress";
|
||||
import { RequestError } from "@octokit/types/dist-types";
|
||||
import { QueryMetadata } from "../pure/interface-types";
|
||||
import { getErrorMessage, REPO_REGEX } from "../pure/helpers-pure";
|
||||
|
||||
@@ -54,7 +54,7 @@ import {
|
||||
ProgressCallback,
|
||||
UserCancellationException,
|
||||
withProgress,
|
||||
} from "../progress";
|
||||
} from "../common/vscode/progress";
|
||||
import { CodeQLCliServer } from "../codeql-cli/cli";
|
||||
import {
|
||||
defaultFilterSortState,
|
||||
|
||||
@@ -36,7 +36,7 @@ import {
|
||||
AppCommandManager,
|
||||
QueryServerCommands,
|
||||
} from "../../../src/common/commands";
|
||||
import { ProgressCallback } from "../../../src/progress";
|
||||
import { ProgressCallback } from "../../../src/common/vscode/progress";
|
||||
import { withDebugController } from "./debugger/debug-controller";
|
||||
|
||||
type DebugMode = "localQueries" | "debug";
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
} from "../../../../src/variant-analysis/shared/variant-analysis";
|
||||
import { VariantAnalysis as VariantAnalysisApiResponse } from "../../../../src/variant-analysis/gh-api/variant-analysis";
|
||||
import { createMockApiResponse } from "../../../factories/variant-analysis/gh-api/variant-analysis-api-response";
|
||||
import { UserCancellationException } from "../../../../src/progress";
|
||||
import { UserCancellationException } from "../../../../src/common/vscode/progress";
|
||||
import { Repository } from "../../../../src/variant-analysis/gh-api/repository";
|
||||
import { DbManager } from "../../../../src/databases/db-manager";
|
||||
import { ExtensionApp } from "../../../../src/common/vscode/vscode-app";
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
import { CodeQLCliServer } from "../../src/codeql-cli/cli";
|
||||
import { removeWorkspaceRefs } from "../../src/variant-analysis/run-remote-query";
|
||||
import { CodeQLExtensionInterface } from "../../src/extension";
|
||||
import { ProgressCallback } from "../../src/progress";
|
||||
import { ProgressCallback } from "../../src/common/vscode/progress";
|
||||
import { importArchiveDatabase } from "../../src/databases/database-fetcher";
|
||||
import { createMockCommandManager } from "../__mocks__/commandsMock";
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
FullDatabaseOptions,
|
||||
} from "../../../src/databases/local-databases";
|
||||
import { Logger } from "../../../src/common";
|
||||
import { ProgressCallback } from "../../../src/progress";
|
||||
import { ProgressCallback } from "../../../src/common/vscode/progress";
|
||||
import { CodeQLCliServer, DbInfo } from "../../../src/codeql-cli/cli";
|
||||
import {
|
||||
encodeArchiveBasePath,
|
||||
|
||||
@@ -38,7 +38,7 @@ import {
|
||||
showInformationMessageWithAction,
|
||||
walkDirectory,
|
||||
} from "../../../src/helpers";
|
||||
import { reportStreamProgress } from "../../../src/progress";
|
||||
import { reportStreamProgress } from "../../../src/common/vscode/progress";
|
||||
import { QueryLanguage } from "../../../src/common/query-language";
|
||||
import { Setting } from "../../../src/config";
|
||||
import { createMockCommandManager } from "../../__mocks__/commandsMock";
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
TelemetryListener,
|
||||
telemetryListener as globalTelemetryListener,
|
||||
} from "../../../src/telemetry";
|
||||
import { UserCancellationException } from "../../../src/progress";
|
||||
import { UserCancellationException } from "../../../src/common/vscode/progress";
|
||||
import { ENABLE_TELEMETRY } from "../../../src/config";
|
||||
import { createMockExtensionContext } from "./index";
|
||||
import { vscodeGetConfigurationMock } from "../test-config";
|
||||
|
||||
Reference in New Issue
Block a user