Merge pull request #2388 from github/charisk/move-common-vscode-files
Move vscode utils to /common/vscode
This commit is contained in:
@@ -14,7 +14,10 @@ import {
|
|||||||
} from "../helpers";
|
} from "../helpers";
|
||||||
import { extLogger } from "../common";
|
import { extLogger } from "../common";
|
||||||
import { getCodeQlCliVersion } from "./cli-version";
|
import { getCodeQlCliVersion } from "./cli-version";
|
||||||
import { ProgressCallback, reportStreamProgress } from "../progress";
|
import {
|
||||||
|
ProgressCallback,
|
||||||
|
reportStreamProgress,
|
||||||
|
} from "../common/vscode/progress";
|
||||||
import {
|
import {
|
||||||
codeQlLauncherName,
|
codeQlLauncherName,
|
||||||
deprecatedCodeQlLauncherName,
|
deprecatedCodeQlLauncherName,
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ import {
|
|||||||
} from "vscode";
|
} from "vscode";
|
||||||
import { join } from "path";
|
import { join } from "path";
|
||||||
|
|
||||||
import { DisposableObject, DisposeHandler } from "./pure/disposable-object";
|
import { DisposableObject, DisposeHandler } from "../../pure/disposable-object";
|
||||||
import { tmpDir } from "./helpers";
|
import { tmpDir } from "../../helpers";
|
||||||
import {
|
import {
|
||||||
getHtmlForWebview,
|
getHtmlForWebview,
|
||||||
WebviewMessage,
|
WebviewMessage,
|
||||||
WebviewView,
|
WebviewView,
|
||||||
} from "./interface-utils";
|
} from "../../interface-utils";
|
||||||
|
|
||||||
export type WebviewPanelConfig = {
|
export type WebviewPanelConfig = {
|
||||||
viewId: string;
|
viewId: string;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { pathExists } from "fs-extra";
|
import { pathExists } from "fs-extra";
|
||||||
import * as unzipper from "unzipper";
|
import * as unzipper from "unzipper";
|
||||||
import * as vscode from "vscode";
|
import * as vscode from "vscode";
|
||||||
import { extLogger } from "./common";
|
import { extLogger } from "..";
|
||||||
|
|
||||||
// All path operations in this file must be on paths *within* the zip
|
// All path operations in this file must be on paths *within* the zip
|
||||||
// archive.
|
// archive.
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import * as vscode from "vscode";
|
import * as vscode from "vscode";
|
||||||
import * as Octokit from "@octokit/rest";
|
import * as Octokit from "@octokit/rest";
|
||||||
import { retry } from "@octokit/plugin-retry";
|
import { retry } from "@octokit/plugin-retry";
|
||||||
import { Credentials } from "./common/authentication";
|
import { Credentials } from "../authentication";
|
||||||
|
|
||||||
const GITHUB_AUTH_PROVIDER_ID = "github";
|
const GITHUB_AUTH_PROVIDER_ID = "github";
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
getErrorStack,
|
getErrorStack,
|
||||||
} from "../../pure/helpers-pure";
|
} from "../../pure/helpers-pure";
|
||||||
import { redactableError } from "../../pure/errors";
|
import { redactableError } from "../../pure/errors";
|
||||||
import { UserCancellationException } from "../../progress";
|
import { UserCancellationException } from "./progress";
|
||||||
import {
|
import {
|
||||||
showAndLogExceptionWithTelemetry,
|
showAndLogExceptionWithTelemetry,
|
||||||
showAndLogWarningMessage,
|
showAndLogWarningMessage,
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
import { Uri, window } from "vscode";
|
import { Uri, window } from "vscode";
|
||||||
import { AppCommandManager } from "../common/commands";
|
import { AppCommandManager } from "../commands";
|
||||||
import {
|
import {
|
||||||
showAndLogExceptionWithTelemetry,
|
showAndLogExceptionWithTelemetry,
|
||||||
showBinaryChoiceDialog,
|
showBinaryChoiceDialog,
|
||||||
} from "../helpers";
|
} from "../../helpers";
|
||||||
import { redactableError } from "../pure/errors";
|
import { redactableError } from "../../pure/errors";
|
||||||
import { asError, getErrorMessage, getErrorStack } from "../pure/helpers-pure";
|
import {
|
||||||
|
asError,
|
||||||
|
getErrorMessage,
|
||||||
|
getErrorStack,
|
||||||
|
} from "../../pure/helpers-pure";
|
||||||
|
|
||||||
export async function tryOpenExternalFile(
|
export async function tryOpenExternalFile(
|
||||||
commandManager: AppCommandManager,
|
commandManager: AppCommandManager,
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { DisposableObject } from "../pure/disposable-object";
|
import { DisposableObject } from "../../pure/disposable-object";
|
||||||
import { EventEmitter, Event, Uri, GlobPattern, workspace } from "vscode";
|
import { EventEmitter, Event, Uri, GlobPattern, workspace } from "vscode";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import * as vscode from "vscode";
|
import * as vscode from "vscode";
|
||||||
import { VSCodeCredentials } from "../../authentication";
|
import { VSCodeCredentials } from "./authentication";
|
||||||
import { Disposable } from "../../pure/disposable-object";
|
import { Disposable } from "../../pure/disposable-object";
|
||||||
import { App, AppMode } from "../app";
|
import { App, AppMode } from "../app";
|
||||||
import { AppEventEmitter } from "../events";
|
import { AppEventEmitter } from "../events";
|
||||||
|
|||||||
@@ -18,7 +18,10 @@ import resultsDiff from "./resultsDiff";
|
|||||||
import { CompletedLocalQueryInfo } from "../query-results";
|
import { CompletedLocalQueryInfo } from "../query-results";
|
||||||
import { assertNever, getErrorMessage } from "../pure/helpers-pure";
|
import { assertNever, getErrorMessage } from "../pure/helpers-pure";
|
||||||
import { HistoryItemLabelProvider } from "../query-history/history-item-label-provider";
|
import { HistoryItemLabelProvider } from "../query-history/history-item-label-provider";
|
||||||
import { AbstractWebview, WebviewPanelConfig } from "../abstract-webview";
|
import {
|
||||||
|
AbstractWebview,
|
||||||
|
WebviewPanelConfig,
|
||||||
|
} from "../common/vscode/abstract-webview";
|
||||||
import { telemetryListener } from "../telemetry";
|
import { telemetryListener } from "../telemetry";
|
||||||
import { redactableError } from "../pure/errors";
|
import { redactableError } from "../pure/errors";
|
||||||
import { showAndLogExceptionWithTelemetry } from "../helpers";
|
import { showAndLogExceptionWithTelemetry } from "../helpers";
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { ensureDir } from "fs-extra";
|
|||||||
import { join } from "path";
|
import { join } from "path";
|
||||||
import { App } from "../common/app";
|
import { App } from "../common/app";
|
||||||
import { showAndLogErrorMessage } from "../helpers";
|
import { showAndLogErrorMessage } from "../helpers";
|
||||||
import { withProgress } from "../progress";
|
import { withProgress } from "../common/vscode/progress";
|
||||||
import { pickExtensionPackModelFile } from "./extension-pack-picker";
|
import { pickExtensionPackModelFile } from "./extension-pack-picker";
|
||||||
|
|
||||||
const SUPPORTED_LANGUAGES: string[] = ["java", "csharp"];
|
const SUPPORTED_LANGUAGES: string[] = ["java", "csharp"];
|
||||||
|
|||||||
@@ -7,12 +7,15 @@ import {
|
|||||||
workspace,
|
workspace,
|
||||||
WorkspaceFolder,
|
WorkspaceFolder,
|
||||||
} from "vscode";
|
} from "vscode";
|
||||||
import { AbstractWebview, WebviewPanelConfig } from "../abstract-webview";
|
import {
|
||||||
|
AbstractWebview,
|
||||||
|
WebviewPanelConfig,
|
||||||
|
} from "../common/vscode/abstract-webview";
|
||||||
import {
|
import {
|
||||||
FromDataExtensionsEditorMessage,
|
FromDataExtensionsEditorMessage,
|
||||||
ToDataExtensionsEditorMessage,
|
ToDataExtensionsEditorMessage,
|
||||||
} from "../pure/interface-types";
|
} from "../pure/interface-types";
|
||||||
import { ProgressUpdate } from "../progress";
|
import { ProgressUpdate } from "../common/vscode/progress";
|
||||||
import { QueryRunner } from "../query-server";
|
import { QueryRunner } from "../query-server";
|
||||||
import {
|
import {
|
||||||
showAndLogErrorMessage,
|
showAndLogErrorMessage,
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {
|
|||||||
getOnDiskWorkspaceFoldersObjects,
|
getOnDiskWorkspaceFoldersObjects,
|
||||||
showAndLogErrorMessage,
|
showAndLogErrorMessage,
|
||||||
} from "../helpers";
|
} from "../helpers";
|
||||||
import { ProgressCallback } from "../progress";
|
import { ProgressCallback } from "../common/vscode/progress";
|
||||||
import { DatabaseItem } from "../databases/local-databases";
|
import { DatabaseItem } from "../databases/local-databases";
|
||||||
import { getQlPackPath, QLPACK_FILENAMES } from "../pure/ql";
|
import { getQlPackPath, QLPACK_FILENAMES } from "../pure/ql";
|
||||||
import { getErrorMessage } from "../pure/helpers-pure";
|
import { getErrorMessage } from "../pure/helpers-pure";
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import { TeeLogger } from "../common";
|
|||||||
import { CancellationToken } from "vscode";
|
import { CancellationToken } from "vscode";
|
||||||
import { CodeQLCliServer } from "../codeql-cli/cli";
|
import { CodeQLCliServer } from "../codeql-cli/cli";
|
||||||
import { DatabaseItem } from "../databases/local-databases";
|
import { DatabaseItem } from "../databases/local-databases";
|
||||||
import { ProgressCallback } from "../progress";
|
import { ProgressCallback } from "../common/vscode/progress";
|
||||||
import { fetchExternalApiQueries } from "./queries";
|
import { fetchExternalApiQueries } from "./queries";
|
||||||
import { QueryResultType } from "../pure/new-messages";
|
import { QueryResultType } from "../pure/new-messages";
|
||||||
import { join } from "path";
|
import { join } from "path";
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { QueryRunner } from "../query-server";
|
|||||||
import { CodeQLCliServer } from "../codeql-cli/cli";
|
import { CodeQLCliServer } from "../codeql-cli/cli";
|
||||||
import { TeeLogger } from "../common";
|
import { TeeLogger } from "../common";
|
||||||
import { extensiblePredicateDefinitions } from "./predicates";
|
import { extensiblePredicateDefinitions } from "./predicates";
|
||||||
import { ProgressCallback } from "../progress";
|
import { ProgressCallback } from "../common/vscode/progress";
|
||||||
import {
|
import {
|
||||||
getOnDiskWorkspaceFolders,
|
getOnDiskWorkspaceFolders,
|
||||||
showAndLogExceptionWithTelemetry,
|
showAndLogExceptionWithTelemetry,
|
||||||
|
|||||||
@@ -18,7 +18,10 @@ import { retry } from "@octokit/plugin-retry";
|
|||||||
|
|
||||||
import { DatabaseManager, DatabaseItem } from "./local-databases";
|
import { DatabaseManager, DatabaseItem } from "./local-databases";
|
||||||
import { showAndLogInformationMessage, tmpDir } from "../helpers";
|
import { showAndLogInformationMessage, tmpDir } from "../helpers";
|
||||||
import { reportStreamProgress, ProgressCallback } from "../progress";
|
import {
|
||||||
|
reportStreamProgress,
|
||||||
|
ProgressCallback,
|
||||||
|
} from "../common/vscode/progress";
|
||||||
import { extLogger } from "../common";
|
import { extLogger } from "../common";
|
||||||
import { getErrorMessage } from "../pure/helpers-pure";
|
import { getErrorMessage } from "../pure/helpers-pure";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import {
|
|||||||
ProgressContext,
|
ProgressContext,
|
||||||
withInheritedProgress,
|
withInheritedProgress,
|
||||||
withProgress,
|
withProgress,
|
||||||
} from "../progress";
|
} from "../common/vscode/progress";
|
||||||
import {
|
import {
|
||||||
isLikelyDatabaseRoot,
|
isLikelyDatabaseRoot,
|
||||||
isLikelyDbLanguageFolder,
|
isLikelyDbLanguageFolder,
|
||||||
|
|||||||
@@ -13,13 +13,13 @@ import {
|
|||||||
showBinaryChoiceDialog,
|
showBinaryChoiceDialog,
|
||||||
getFirstWorkspaceFolder,
|
getFirstWorkspaceFolder,
|
||||||
} from "../helpers";
|
} from "../helpers";
|
||||||
import { ProgressCallback, withProgress } from "../progress";
|
import { ProgressCallback, withProgress } from "../common/vscode/progress";
|
||||||
import {
|
import {
|
||||||
zipArchiveScheme,
|
zipArchiveScheme,
|
||||||
encodeArchiveBasePath,
|
encodeArchiveBasePath,
|
||||||
decodeSourceArchiveUri,
|
decodeSourceArchiveUri,
|
||||||
encodeSourceArchiveUri,
|
encodeSourceArchiveUri,
|
||||||
} from "../archive-filesystem-provider";
|
} from "../common/vscode/archive-filesystem-provider";
|
||||||
import { DisposableObject } from "../pure/disposable-object";
|
import { DisposableObject } from "../pure/disposable-object";
|
||||||
import { Logger, extLogger } from "../common";
|
import { Logger, extLogger } from "../common";
|
||||||
import { asError, getErrorMessage } from "../pure/helpers-pure";
|
import { asError, getErrorMessage } from "../pure/helpers-pure";
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
window,
|
window,
|
||||||
workspace,
|
workspace,
|
||||||
} from "vscode";
|
} from "vscode";
|
||||||
import { UserCancellationException } from "../../progress";
|
import { UserCancellationException } from "../../common/vscode/progress";
|
||||||
import {
|
import {
|
||||||
getNwoFromGitHubUrl,
|
getNwoFromGitHubUrl,
|
||||||
isValidGitHubNwo,
|
isValidGitHubNwo,
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import { watch } from "chokidar";
|
|||||||
import {
|
import {
|
||||||
activate as archiveFilesystemProvider_activate,
|
activate as archiveFilesystemProvider_activate,
|
||||||
zipArchiveScheme,
|
zipArchiveScheme,
|
||||||
} from "./archive-filesystem-provider";
|
} from "./common/vscode/archive-filesystem-provider";
|
||||||
import { CodeQLCliServer } from "./codeql-cli/cli";
|
import { CodeQLCliServer } from "./codeql-cli/cli";
|
||||||
import {
|
import {
|
||||||
CliConfigListener,
|
CliConfigListener,
|
||||||
@@ -90,7 +90,7 @@ import { QLTestAdapterFactory } from "./test-adapter";
|
|||||||
import { TestUIService } from "./test-ui";
|
import { TestUIService } from "./test-ui";
|
||||||
import { CompareView } from "./compare/compare-view";
|
import { CompareView } from "./compare/compare-view";
|
||||||
import { initializeTelemetry } from "./telemetry";
|
import { initializeTelemetry } from "./telemetry";
|
||||||
import { ProgressCallback, withProgress } from "./progress";
|
import { ProgressCallback, withProgress } from "./common/vscode/progress";
|
||||||
import { CodeQlStatusBarHandler } from "./status-bar";
|
import { CodeQlStatusBarHandler } from "./status-bar";
|
||||||
import { getPackagingCommands } from "./packaging";
|
import { getPackagingCommands } from "./packaging";
|
||||||
import { HistoryItemLabelProvider } from "./query-history/history-item-label-provider";
|
import { HistoryItemLabelProvider } from "./query-history/history-item-label-provider";
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import {
|
|||||||
WorkspaceFolder,
|
WorkspaceFolder,
|
||||||
} from "vscode";
|
} from "vscode";
|
||||||
import { CodeQLCliServer, QlpacksInfo } from "./codeql-cli/cli";
|
import { CodeQLCliServer, QlpacksInfo } from "./codeql-cli/cli";
|
||||||
import { UserCancellationException } from "./progress";
|
import { UserCancellationException } from "./common/vscode/progress";
|
||||||
import { extLogger, OutputChannelLogger } from "./common";
|
import { extLogger, OutputChannelLogger } from "./common";
|
||||||
import { QueryMetadata } from "./pure/interface-types";
|
import { QueryMetadata } from "./pure/interface-types";
|
||||||
import { telemetryListener } from "./telemetry";
|
import { telemetryListener } from "./telemetry";
|
||||||
|
|||||||
@@ -66,7 +66,10 @@ import {
|
|||||||
transformBqrsResultSet,
|
transformBqrsResultSet,
|
||||||
ResultSetSchema,
|
ResultSetSchema,
|
||||||
} from "./pure/bqrs-cli-types";
|
} from "./pure/bqrs-cli-types";
|
||||||
import { AbstractWebview, WebviewPanelConfig } from "./abstract-webview";
|
import {
|
||||||
|
AbstractWebview,
|
||||||
|
WebviewPanelConfig,
|
||||||
|
} from "./common/vscode/abstract-webview";
|
||||||
import { isCanary, PAGE_SIZE } from "./config";
|
import { isCanary, PAGE_SIZE } from "./config";
|
||||||
import { HistoryItemLabelProvider } from "./query-history/history-item-label-provider";
|
import { HistoryItemLabelProvider } from "./query-history/history-item-label-provider";
|
||||||
import { telemetryListener } from "./telemetry";
|
import { telemetryListener } from "./telemetry";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Uri, window } from "vscode";
|
import { Uri, window } from "vscode";
|
||||||
import { withProgress } from "../../progress";
|
import { withProgress } from "../../common/vscode/progress";
|
||||||
import { AstViewer } from "./ast-viewer";
|
import { AstViewer } from "./ast-viewer";
|
||||||
import { AstCfgCommands } from "../../common/commands";
|
import { AstCfgCommands } from "../../common/commands";
|
||||||
import { LocalQueries } from "../../local-queries";
|
import { LocalQueries } from "../../local-queries";
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {
|
import {
|
||||||
decodeSourceArchiveUri,
|
decodeSourceArchiveUri,
|
||||||
encodeArchiveBasePath,
|
encodeArchiveBasePath,
|
||||||
} from "../../archive-filesystem-provider";
|
} from "../../common/vscode/archive-filesystem-provider";
|
||||||
import {
|
import {
|
||||||
ColumnKindCode,
|
ColumnKindCode,
|
||||||
EntityValue,
|
EntityValue,
|
||||||
@@ -10,7 +10,7 @@ import {
|
|||||||
} from "../../pure/bqrs-cli-types";
|
} from "../../pure/bqrs-cli-types";
|
||||||
import { CodeQLCliServer } from "../../codeql-cli/cli";
|
import { CodeQLCliServer } from "../../codeql-cli/cli";
|
||||||
import { DatabaseManager, DatabaseItem } from "../../databases/local-databases";
|
import { DatabaseManager, DatabaseItem } from "../../databases/local-databases";
|
||||||
import { ProgressCallback } from "../../progress";
|
import { ProgressCallback } from "../../common/vscode/progress";
|
||||||
import { KeyType } from "./key-type";
|
import { KeyType } from "./key-type";
|
||||||
import {
|
import {
|
||||||
qlpackOfDatabase,
|
qlpackOfDatabase,
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import { CodeQLCliServer } from "../../codeql-cli/cli";
|
|||||||
import { DatabaseItem } from "../../databases/local-databases";
|
import { DatabaseItem } from "../../databases/local-databases";
|
||||||
import { extLogger, TeeLogger } from "../../common";
|
import { extLogger, TeeLogger } from "../../common";
|
||||||
import { CancellationToken } from "vscode";
|
import { CancellationToken } from "vscode";
|
||||||
import { ProgressCallback } from "../../progress";
|
import { ProgressCallback } from "../../common/vscode/progress";
|
||||||
import { CoreCompletedQuery, QueryRunner } from "../../query-server";
|
import { CoreCompletedQuery, QueryRunner } from "../../query-server";
|
||||||
import { redactableError } from "../../pure/errors";
|
import { redactableError } from "../../pure/errors";
|
||||||
import { QLPACK_FILENAMES } from "../../pure/ql";
|
import { QLPACK_FILENAMES } from "../../pure/ql";
|
||||||
|
|||||||
@@ -14,11 +14,11 @@ import {
|
|||||||
decodeSourceArchiveUri,
|
decodeSourceArchiveUri,
|
||||||
encodeArchiveBasePath,
|
encodeArchiveBasePath,
|
||||||
zipArchiveScheme,
|
zipArchiveScheme,
|
||||||
} from "../../archive-filesystem-provider";
|
} from "../../common/vscode/archive-filesystem-provider";
|
||||||
import { CodeQLCliServer } from "../../codeql-cli/cli";
|
import { CodeQLCliServer } from "../../codeql-cli/cli";
|
||||||
import { DatabaseManager } from "../../databases/local-databases";
|
import { DatabaseManager } from "../../databases/local-databases";
|
||||||
import { CachedOperation } from "../../helpers";
|
import { CachedOperation } from "../../helpers";
|
||||||
import { ProgressCallback, withProgress } from "../../progress";
|
import { ProgressCallback, withProgress } from "../../common/vscode/progress";
|
||||||
import { KeyType } from "./key-type";
|
import { KeyType } from "./key-type";
|
||||||
import {
|
import {
|
||||||
FullLocationLink,
|
FullLocationLink,
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
import { ProgressCallback, ProgressUpdate, withProgress } from "../progress";
|
import {
|
||||||
|
ProgressCallback,
|
||||||
|
ProgressUpdate,
|
||||||
|
withProgress,
|
||||||
|
} from "../common/vscode/progress";
|
||||||
import {
|
import {
|
||||||
CancellationToken,
|
CancellationToken,
|
||||||
CancellationTokenSource,
|
CancellationTokenSource,
|
||||||
|
|||||||
@@ -11,7 +11,10 @@ import {
|
|||||||
getQlPackForDbscheme,
|
getQlPackForDbscheme,
|
||||||
showBinaryChoiceDialog,
|
showBinaryChoiceDialog,
|
||||||
} from "../helpers";
|
} from "../helpers";
|
||||||
import { ProgressCallback, UserCancellationException } from "../progress";
|
import {
|
||||||
|
ProgressCallback,
|
||||||
|
UserCancellationException,
|
||||||
|
} from "../common/vscode/progress";
|
||||||
import { getErrorMessage } from "../pure/helpers-pure";
|
import { getErrorMessage } from "../pure/helpers-pure";
|
||||||
import { FALLBACK_QLPACK_FILENAME, getQlPackPath } from "../pure/ql";
|
import { FALLBACK_QLPACK_FILENAME, getQlPackPath } from "../pure/ql";
|
||||||
import { App } from "../common/app";
|
import { App } from "../common/app";
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {
|
|||||||
ProgressCallback,
|
ProgressCallback,
|
||||||
UserCancellationException,
|
UserCancellationException,
|
||||||
withProgress,
|
withProgress,
|
||||||
} from "../progress";
|
} from "../common/vscode/progress";
|
||||||
import { extLogger } from "../common";
|
import { extLogger } from "../common";
|
||||||
import { asError, getErrorStack } from "../pure/helpers-pure";
|
import { asError, getErrorStack } from "../pure/helpers-pure";
|
||||||
import { redactableError } from "../pure/errors";
|
import { redactableError } from "../pure/errors";
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
WorkspaceFolder,
|
WorkspaceFolder,
|
||||||
env,
|
env,
|
||||||
} from "vscode";
|
} from "vscode";
|
||||||
import { MultiFileSystemWatcher } from "./vscode-utils/multi-file-system-watcher";
|
import { MultiFileSystemWatcher } from "./common/vscode/multi-file-system-watcher";
|
||||||
import { CodeQLCliServer } from "./codeql-cli/cli";
|
import { CodeQLCliServer } from "./codeql-cli/cli";
|
||||||
import { pathExists } from "fs-extra";
|
import { pathExists } from "fs-extra";
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ import { HistoryTreeDataProvider } from "./history-tree-data-provider";
|
|||||||
import { QueryHistoryDirs } from "./query-history-dirs";
|
import { QueryHistoryDirs } from "./query-history-dirs";
|
||||||
import { QueryHistoryCommands } from "../common/commands";
|
import { QueryHistoryCommands } from "../common/commands";
|
||||||
import { App } from "../common/app";
|
import { App } from "../common/app";
|
||||||
import { tryOpenExternalFile } from "../vscode-utils/external-files";
|
import { tryOpenExternalFile } from "../common/vscode/external-files";
|
||||||
import {
|
import {
|
||||||
createMultiSelectionCommand,
|
createMultiSelectionCommand,
|
||||||
createSingleSelectionCommand,
|
createSingleSelectionCommand,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { CancellationToken } from "vscode";
|
import { CancellationToken } from "vscode";
|
||||||
import { CodeQLCliServer } from "../../codeql-cli/cli";
|
import { CodeQLCliServer } from "../../codeql-cli/cli";
|
||||||
import { ProgressCallback } from "../../progress";
|
import { ProgressCallback } from "../../common/vscode/progress";
|
||||||
import { Logger } from "../../common";
|
import { Logger } from "../../common";
|
||||||
import { DatabaseItem } from "../../databases/local-databases";
|
import { DatabaseItem } from "../../databases/local-databases";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import {
|
|||||||
ProgressMessage,
|
ProgressMessage,
|
||||||
WithProgressId,
|
WithProgressId,
|
||||||
} from "../../pure/legacy-messages";
|
} from "../../pure/legacy-messages";
|
||||||
import { ProgressCallback, ProgressTask } from "../../progress";
|
import { ProgressCallback, ProgressTask } from "../../common/vscode/progress";
|
||||||
import { ServerProcess } from "../server-process";
|
import { ServerProcess } from "../server-process";
|
||||||
import { App } from "../../common/app";
|
import { App } from "../../common/app";
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import {
|
|||||||
showAndLogWarningMessage,
|
showAndLogWarningMessage,
|
||||||
upgradesTmpDir,
|
upgradesTmpDir,
|
||||||
} from "../../helpers";
|
} from "../../helpers";
|
||||||
import { ProgressCallback } from "../../progress";
|
import { ProgressCallback } from "../../common/vscode/progress";
|
||||||
import { QueryMetadata } from "../../pure/interface-types";
|
import { QueryMetadata } from "../../pure/interface-types";
|
||||||
import { extLogger, Logger } from "../../common";
|
import { extLogger, Logger } from "../../common";
|
||||||
import * as messages from "../../pure/legacy-messages";
|
import * as messages from "../../pure/legacy-messages";
|
||||||
|
|||||||
@@ -4,7 +4,10 @@ import {
|
|||||||
showAndLogExceptionWithTelemetry,
|
showAndLogExceptionWithTelemetry,
|
||||||
tmpDir,
|
tmpDir,
|
||||||
} from "../../helpers";
|
} from "../../helpers";
|
||||||
import { ProgressCallback, UserCancellationException } from "../../progress";
|
import {
|
||||||
|
ProgressCallback,
|
||||||
|
UserCancellationException,
|
||||||
|
} from "../../common/vscode/progress";
|
||||||
import { extLogger } from "../../common";
|
import { extLogger } from "../../common";
|
||||||
import * as messages from "../../pure/legacy-messages";
|
import * as messages from "../../pure/legacy-messages";
|
||||||
import * as qsClient from "./query-server-client";
|
import * as qsClient from "./query-server-client";
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
import { CancellationToken } from "vscode";
|
import { CancellationToken } from "vscode";
|
||||||
import { ProgressCallback, UserCancellationException } from "../progress";
|
import {
|
||||||
|
ProgressCallback,
|
||||||
|
UserCancellationException,
|
||||||
|
} from "../common/vscode/progress";
|
||||||
import { DatabaseItem } from "../databases/local-databases";
|
import { DatabaseItem } from "../databases/local-databases";
|
||||||
import {
|
import {
|
||||||
clearCache,
|
clearCache,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { CancellationToken } from "vscode";
|
import { CancellationToken } from "vscode";
|
||||||
import { CodeQLCliServer } from "../codeql-cli/cli";
|
import { CodeQLCliServer } from "../codeql-cli/cli";
|
||||||
import { ProgressCallback } from "../progress";
|
import { ProgressCallback } from "../common/vscode/progress";
|
||||||
import { DatabaseItem } from "../databases/local-databases";
|
import { DatabaseItem } from "../databases/local-databases";
|
||||||
import { QueryOutputDir } from "../run-queries-shared";
|
import { QueryOutputDir } from "../run-queries-shared";
|
||||||
import { Position, QueryResultType } from "../pure/new-messages";
|
import { Position, QueryResultType } from "../pure/new-messages";
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
ProgressMessage,
|
ProgressMessage,
|
||||||
WithProgressId,
|
WithProgressId,
|
||||||
} from "../pure/new-messages";
|
} from "../pure/new-messages";
|
||||||
import { ProgressCallback, ProgressTask } from "../progress";
|
import { ProgressCallback, ProgressTask } from "../common/vscode/progress";
|
||||||
import { ServerProcess } from "./server-process";
|
import { ServerProcess } from "./server-process";
|
||||||
import { App } from "../common/app";
|
import { App } from "../common/app";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { CancellationToken } from "vscode";
|
import { CancellationToken } from "vscode";
|
||||||
import { ProgressCallback } from "../progress";
|
import { ProgressCallback } from "../common/vscode/progress";
|
||||||
import * as messages from "../pure/new-messages";
|
import * as messages from "../pure/new-messages";
|
||||||
import { QueryOutputDir } from "../run-queries-shared";
|
import { QueryOutputDir } from "../run-queries-shared";
|
||||||
import * as qsClient from "./query-server-client";
|
import * as qsClient from "./query-server-client";
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import {
|
|||||||
window,
|
window,
|
||||||
} from "vscode";
|
} from "vscode";
|
||||||
import { isCanary, AUTOSAVE_SETTING } from "./config";
|
import { isCanary, AUTOSAVE_SETTING } from "./config";
|
||||||
import { UserCancellationException } from "./progress";
|
import { UserCancellationException } from "./common/vscode/progress";
|
||||||
import {
|
import {
|
||||||
pathExists,
|
pathExists,
|
||||||
readFile,
|
readFile,
|
||||||
|
|||||||
@@ -12,7 +12,10 @@ import {
|
|||||||
import { getErrorMessage } from "./pure/helpers-pure";
|
import { getErrorMessage } from "./pure/helpers-pure";
|
||||||
import { QlPackGenerator } from "./qlpack-generator";
|
import { QlPackGenerator } from "./qlpack-generator";
|
||||||
import { DatabaseItem, DatabaseManager } from "./databases/local-databases";
|
import { DatabaseItem, DatabaseManager } from "./databases/local-databases";
|
||||||
import { ProgressCallback, UserCancellationException } from "./progress";
|
import {
|
||||||
|
ProgressCallback,
|
||||||
|
UserCancellationException,
|
||||||
|
} from "./common/vscode/progress";
|
||||||
import {
|
import {
|
||||||
askForGitHubRepo,
|
askForGitHubRepo,
|
||||||
downloadGitHubDatabase,
|
downloadGitHubDatabase,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import {
|
|||||||
} from "./config";
|
} from "./config";
|
||||||
import * as appInsights from "applicationinsights";
|
import * as appInsights from "applicationinsights";
|
||||||
import { extLogger } from "./common";
|
import { extLogger } from "./common";
|
||||||
import { UserCancellationException } from "./progress";
|
import { UserCancellationException } from "./common/vscode/progress";
|
||||||
import { showBinaryChoiceWithUrlDialog } from "./helpers";
|
import { showBinaryChoiceWithUrlDialog } from "./helpers";
|
||||||
import { RedactableError } from "./pure/errors";
|
import { RedactableError } from "./pure/errors";
|
||||||
import { SemVer } from "semver";
|
import { SemVer } from "semver";
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
import { ExtensionContext, ViewColumn } from "vscode";
|
import { ExtensionContext, ViewColumn } from "vscode";
|
||||||
import { AbstractWebview, WebviewPanelConfig } from "../abstract-webview";
|
import {
|
||||||
|
AbstractWebview,
|
||||||
|
WebviewPanelConfig,
|
||||||
|
} from "../common/vscode/abstract-webview";
|
||||||
import { assertNever } from "../pure/helpers-pure";
|
import { assertNever } from "../pure/helpers-pure";
|
||||||
import { telemetryListener } from "../telemetry";
|
import { telemetryListener } from "../telemetry";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
ProgressCallback,
|
ProgressCallback,
|
||||||
UserCancellationException,
|
UserCancellationException,
|
||||||
withProgress,
|
withProgress,
|
||||||
} from "../progress";
|
} from "../common/vscode/progress";
|
||||||
import { showInformationMessageWithAction } from "../helpers";
|
import { showInformationMessageWithAction } from "../helpers";
|
||||||
import { extLogger } from "../common";
|
import { extLogger } from "../common";
|
||||||
import { createGist } from "./gh-api/gh-api-client";
|
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 { DbManager } from "../databases/db-manager";
|
||||||
import { DbItemKind } from "../databases/db-item";
|
import { DbItemKind } from "../databases/db-item";
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,10 @@ import {
|
|||||||
getRemoteControllerRepo,
|
getRemoteControllerRepo,
|
||||||
setRemoteControllerRepo,
|
setRemoteControllerRepo,
|
||||||
} from "../config";
|
} from "../config";
|
||||||
import { ProgressCallback, UserCancellationException } from "../progress";
|
import {
|
||||||
|
ProgressCallback,
|
||||||
|
UserCancellationException,
|
||||||
|
} from "../common/vscode/progress";
|
||||||
import { RequestError } from "@octokit/types/dist-types";
|
import { RequestError } from "@octokit/types/dist-types";
|
||||||
import { QueryMetadata } from "../pure/interface-types";
|
import { QueryMetadata } from "../pure/interface-types";
|
||||||
import { getErrorMessage, REPO_REGEX } from "../pure/helpers-pure";
|
import { getErrorMessage, REPO_REGEX } from "../pure/helpers-pure";
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ import {
|
|||||||
ProgressCallback,
|
ProgressCallback,
|
||||||
UserCancellationException,
|
UserCancellationException,
|
||||||
withProgress,
|
withProgress,
|
||||||
} from "../progress";
|
} from "../common/vscode/progress";
|
||||||
import { CodeQLCliServer } from "../codeql-cli/cli";
|
import { CodeQLCliServer } from "../codeql-cli/cli";
|
||||||
import {
|
import {
|
||||||
defaultFilterSortState,
|
defaultFilterSortState,
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
import { ExtensionContext, ViewColumn } from "vscode";
|
import { ExtensionContext, ViewColumn } from "vscode";
|
||||||
import { AbstractWebview, WebviewPanelConfig } from "../abstract-webview";
|
import {
|
||||||
|
AbstractWebview,
|
||||||
|
WebviewPanelConfig,
|
||||||
|
} from "../common/vscode/abstract-webview";
|
||||||
import { extLogger } from "../common";
|
import { extLogger } from "../common";
|
||||||
import {
|
import {
|
||||||
FromVariantAnalysisMessage,
|
FromVariantAnalysisMessage,
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ import {
|
|||||||
AppCommandManager,
|
AppCommandManager,
|
||||||
QueryServerCommands,
|
QueryServerCommands,
|
||||||
} from "../../../src/common/commands";
|
} from "../../../src/common/commands";
|
||||||
import { ProgressCallback } from "../../../src/progress";
|
import { ProgressCallback } from "../../../src/common/vscode/progress";
|
||||||
import { withDebugController } from "./debugger/debug-controller";
|
import { withDebugController } from "./debugger/debug-controller";
|
||||||
|
|
||||||
type DebugMode = "localQueries" | "debug";
|
type DebugMode = "localQueries" | "debug";
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import {
|
|||||||
} from "../../../../src/variant-analysis/shared/variant-analysis";
|
} from "../../../../src/variant-analysis/shared/variant-analysis";
|
||||||
import { VariantAnalysis as VariantAnalysisApiResponse } from "../../../../src/variant-analysis/gh-api/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 { 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 { Repository } from "../../../../src/variant-analysis/gh-api/repository";
|
||||||
import { DbManager } from "../../../../src/databases/db-manager";
|
import { DbManager } from "../../../../src/databases/db-manager";
|
||||||
import { ExtensionApp } from "../../../../src/common/vscode/vscode-app";
|
import { ExtensionApp } from "../../../../src/common/vscode/vscode-app";
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import {
|
|||||||
import { CodeQLCliServer } from "../../src/codeql-cli/cli";
|
import { CodeQLCliServer } from "../../src/codeql-cli/cli";
|
||||||
import { removeWorkspaceRefs } from "../../src/variant-analysis/run-remote-query";
|
import { removeWorkspaceRefs } from "../../src/variant-analysis/run-remote-query";
|
||||||
import { CodeQLExtensionInterface } from "../../src/extension";
|
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 { importArchiveDatabase } from "../../src/databases/database-fetcher";
|
||||||
import { createMockCommandManager } from "../__mocks__/commandsMock";
|
import { createMockCommandManager } from "../__mocks__/commandsMock";
|
||||||
|
|
||||||
|
|||||||
@@ -13,12 +13,12 @@ import {
|
|||||||
FullDatabaseOptions,
|
FullDatabaseOptions,
|
||||||
} from "../../../src/databases/local-databases";
|
} from "../../../src/databases/local-databases";
|
||||||
import { Logger } from "../../../src/common";
|
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 { CodeQLCliServer, DbInfo } from "../../../src/codeql-cli/cli";
|
||||||
import {
|
import {
|
||||||
encodeArchiveBasePath,
|
encodeArchiveBasePath,
|
||||||
encodeSourceArchiveUri,
|
encodeSourceArchiveUri,
|
||||||
} from "../../../src/archive-filesystem-provider";
|
} from "../../../src/common/vscode/archive-filesystem-provider";
|
||||||
import { testDisposeHandler } from "../test-dispose-handler";
|
import { testDisposeHandler } from "../test-dispose-handler";
|
||||||
import { QueryRunner } from "../../../src/query-server/query-runner";
|
import { QueryRunner } from "../../../src/query-server/query-runner";
|
||||||
import * as helpers from "../../../src/helpers";
|
import * as helpers from "../../../src/helpers";
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
decodeSourceArchiveUri,
|
decodeSourceArchiveUri,
|
||||||
ZipFileReference,
|
ZipFileReference,
|
||||||
zipArchiveScheme,
|
zipArchiveScheme,
|
||||||
} from "../../../src/archive-filesystem-provider";
|
} from "../../../../../src/common/vscode/archive-filesystem-provider";
|
||||||
import { FileType, FileSystemError, Uri } from "vscode";
|
import { FileType, FileSystemError, Uri } from "vscode";
|
||||||
|
|
||||||
describe("archive-filesystem-provider", () => {
|
describe("archive-filesystem-provider", () => {
|
||||||
@@ -16,7 +16,7 @@ describe("archive-filesystem-provider", () => {
|
|||||||
const uri = encodeSourceArchiveUri({
|
const uri = encodeSourceArchiveUri({
|
||||||
sourceArchiveZipPath: resolve(
|
sourceArchiveZipPath: resolve(
|
||||||
__dirname,
|
__dirname,
|
||||||
"data/archive-filesystem-provider-test/single_file.zip",
|
"../../data/archive-filesystem-provider-test/single_file.zip",
|
||||||
),
|
),
|
||||||
pathWithinSourceArchive: "/aFileName.txt",
|
pathWithinSourceArchive: "/aFileName.txt",
|
||||||
});
|
});
|
||||||
@@ -29,7 +29,7 @@ describe("archive-filesystem-provider", () => {
|
|||||||
const uri = encodeSourceArchiveUri({
|
const uri = encodeSourceArchiveUri({
|
||||||
sourceArchiveZipPath: resolve(
|
sourceArchiveZipPath: resolve(
|
||||||
__dirname,
|
__dirname,
|
||||||
"data/archive-filesystem-provider-test/zip_with_folder.zip",
|
"../../data/archive-filesystem-provider-test/zip_with_folder.zip",
|
||||||
),
|
),
|
||||||
pathWithinSourceArchive: "folder1/textFile.txt",
|
pathWithinSourceArchive: "folder1/textFile.txt",
|
||||||
});
|
});
|
||||||
@@ -42,7 +42,7 @@ describe("archive-filesystem-provider", () => {
|
|||||||
const uri = encodeSourceArchiveUri({
|
const uri = encodeSourceArchiveUri({
|
||||||
sourceArchiveZipPath: resolve(
|
sourceArchiveZipPath: resolve(
|
||||||
__dirname,
|
__dirname,
|
||||||
"data/archive-filesystem-provider-test/zip_with_folder.zip",
|
"../../data/archive-filesystem-provider-test/zip_with_folder.zip",
|
||||||
),
|
),
|
||||||
pathWithinSourceArchive: "folder1",
|
pathWithinSourceArchive: "folder1",
|
||||||
});
|
});
|
||||||
@@ -59,7 +59,7 @@ describe("archive-filesystem-provider", () => {
|
|||||||
const uri = encodeSourceArchiveUri({
|
const uri = encodeSourceArchiveUri({
|
||||||
sourceArchiveZipPath: resolve(
|
sourceArchiveZipPath: resolve(
|
||||||
__dirname,
|
__dirname,
|
||||||
"data/archive-filesystem-provider-test/zip_with_folder.zip",
|
"../../data/archive-filesystem-provider-test/zip_with_folder.zip",
|
||||||
),
|
),
|
||||||
pathWithinSourceArchive: "folder1/not-here",
|
pathWithinSourceArchive: "folder1/not-here",
|
||||||
});
|
});
|
||||||
@@ -76,7 +76,7 @@ describe("archive-filesystem-provider", () => {
|
|||||||
const uri = encodeSourceArchiveUri({
|
const uri = encodeSourceArchiveUri({
|
||||||
sourceArchiveZipPath: resolve(
|
sourceArchiveZipPath: resolve(
|
||||||
__dirname,
|
__dirname,
|
||||||
"data/archive-filesystem-provider-test/zip_with_folder.zip",
|
"../../data/archive-filesystem-provider-test/zip_with_folder.zip",
|
||||||
),
|
),
|
||||||
pathWithinSourceArchive: "folder1/not-here",
|
pathWithinSourceArchive: "folder1/not-here",
|
||||||
});
|
});
|
||||||
@@ -93,7 +93,7 @@ describe("archive-filesystem-provider", () => {
|
|||||||
const uri = encodeSourceArchiveUri({
|
const uri = encodeSourceArchiveUri({
|
||||||
sourceArchiveZipPath: resolve(
|
sourceArchiveZipPath: resolve(
|
||||||
__dirname,
|
__dirname,
|
||||||
"data/archive-filesystem-provider-test/zip_with_folder.zip",
|
"../../data/archive-filesystem-provider-test/zip_with_folder.zip",
|
||||||
),
|
),
|
||||||
pathWithinSourceArchive: "folder1/textFile.txt",
|
pathWithinSourceArchive: "folder1/textFile.txt",
|
||||||
});
|
});
|
||||||
@@ -110,7 +110,7 @@ describe("archive-filesystem-provider", () => {
|
|||||||
const uri = encodeSourceArchiveUri({
|
const uri = encodeSourceArchiveUri({
|
||||||
sourceArchiveZipPath: resolve(
|
sourceArchiveZipPath: resolve(
|
||||||
__dirname,
|
__dirname,
|
||||||
"data/archive-filesystem-provider-test/zip_with_folder.zip",
|
"../../data/archive-filesystem-provider-test/zip_with_folder.zip",
|
||||||
),
|
),
|
||||||
pathWithinSourceArchive: "folder1/folder2",
|
pathWithinSourceArchive: "folder1/folder2",
|
||||||
});
|
});
|
||||||
@@ -127,7 +127,7 @@ describe("archive-filesystem-provider", () => {
|
|||||||
const uri = encodeSourceArchiveUri({
|
const uri = encodeSourceArchiveUri({
|
||||||
sourceArchiveZipPath: resolve(
|
sourceArchiveZipPath: resolve(
|
||||||
__dirname,
|
__dirname,
|
||||||
"data/archive-filesystem-provider-test/zip_with_folder.zip",
|
"../../data/archive-filesystem-provider-test/zip_with_folder.zip",
|
||||||
),
|
),
|
||||||
pathWithinSourceArchive: "folder1/folder2",
|
pathWithinSourceArchive: "folder1/folder2",
|
||||||
});
|
});
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import * as vscode from "vscode";
|
import * as vscode from "vscode";
|
||||||
import { tryOpenExternalFile } from "../../../../../src/vscode-utils/external-files";
|
import { tryOpenExternalFile } from "../../../../../src/common/vscode/external-files";
|
||||||
import { createMockCommandManager } from "../../../../__mocks__/commandsMock";
|
import { createMockCommandManager } from "../../../../__mocks__/commandsMock";
|
||||||
import { mockedObject } from "../../../utils/mocking.helpers";
|
import { mockedObject } from "../../../utils/mocking.helpers";
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ import {
|
|||||||
showInformationMessageWithAction,
|
showInformationMessageWithAction,
|
||||||
walkDirectory,
|
walkDirectory,
|
||||||
} from "../../../src/helpers";
|
} from "../../../src/helpers";
|
||||||
import { reportStreamProgress } from "../../../src/progress";
|
import { reportStreamProgress } from "../../../src/common/vscode/progress";
|
||||||
import { QueryLanguage } from "../../../src/common/query-language";
|
import { QueryLanguage } from "../../../src/common/query-language";
|
||||||
import { Setting } from "../../../src/config";
|
import { Setting } from "../../../src/config";
|
||||||
import { createMockCommandManager } from "../../__mocks__/commandsMock";
|
import { createMockCommandManager } from "../../__mocks__/commandsMock";
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {
|
|||||||
TelemetryListener,
|
TelemetryListener,
|
||||||
telemetryListener as globalTelemetryListener,
|
telemetryListener as globalTelemetryListener,
|
||||||
} from "../../../src/telemetry";
|
} from "../../../src/telemetry";
|
||||||
import { UserCancellationException } from "../../../src/progress";
|
import { UserCancellationException } from "../../../src/common/vscode/progress";
|
||||||
import { ENABLE_TELEMETRY } from "../../../src/config";
|
import { ENABLE_TELEMETRY } from "../../../src/config";
|
||||||
import { createMockExtensionContext } from "./index";
|
import { createMockExtensionContext } from "./index";
|
||||||
import { vscodeGetConfigurationMock } from "../test-config";
|
import { vscodeGetConfigurationMock } from "../test-config";
|
||||||
|
|||||||
Reference in New Issue
Block a user