Merge pull request #2388 from github/charisk/move-common-vscode-files

Move vscode utils to /common/vscode
This commit is contained in:
Charis Kyriakou
2023-04-28 14:51:10 +01:00
committed by GitHub
56 changed files with 118 additions and 74 deletions

View File

@@ -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,

View File

@@ -9,13 +9,13 @@ import {
} from "vscode";
import { join } from "path";
import { DisposableObject, DisposeHandler } from "./pure/disposable-object";
import { tmpDir } from "./helpers";
import { DisposableObject, DisposeHandler } from "../../pure/disposable-object";
import { tmpDir } from "../../helpers";
import {
getHtmlForWebview,
WebviewMessage,
WebviewView,
} from "./interface-utils";
} from "../../interface-utils";
export type WebviewPanelConfig = {
viewId: string;

View File

@@ -1,7 +1,7 @@
import { pathExists } from "fs-extra";
import * as unzipper from "unzipper";
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
// archive.

View File

@@ -1,7 +1,7 @@
import * as vscode from "vscode";
import * as Octokit from "@octokit/rest";
import { retry } from "@octokit/plugin-retry";
import { Credentials } from "./common/authentication";
import { Credentials } from "../authentication";
const GITHUB_AUTH_PROVIDER_ID = "github";

View File

@@ -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,

View File

@@ -1,11 +1,15 @@
import { Uri, window } from "vscode";
import { AppCommandManager } from "../common/commands";
import { AppCommandManager } from "../commands";
import {
showAndLogExceptionWithTelemetry,
showBinaryChoiceDialog,
} from "../helpers";
import { redactableError } from "../pure/errors";
import { asError, getErrorMessage, getErrorStack } from "../pure/helpers-pure";
} from "../../helpers";
import { redactableError } from "../../pure/errors";
import {
asError,
getErrorMessage,
getErrorStack,
} from "../../pure/helpers-pure";
export async function tryOpenExternalFile(
commandManager: AppCommandManager,

View File

@@ -1,4 +1,4 @@
import { DisposableObject } from "../pure/disposable-object";
import { DisposableObject } from "../../pure/disposable-object";
import { EventEmitter, Event, Uri, GlobPattern, workspace } from "vscode";
/**

View File

@@ -1,5 +1,5 @@
import * as vscode from "vscode";
import { VSCodeCredentials } from "../../authentication";
import { VSCodeCredentials } from "./authentication";
import { Disposable } from "../../pure/disposable-object";
import { App, AppMode } from "../app";
import { AppEventEmitter } from "../events";

View File

@@ -18,7 +18,10 @@ import resultsDiff from "./resultsDiff";
import { CompletedLocalQueryInfo } from "../query-results";
import { assertNever, getErrorMessage } from "../pure/helpers-pure";
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 { redactableError } from "../pure/errors";
import { showAndLogExceptionWithTelemetry } from "../helpers";

View File

@@ -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"];

View File

@@ -7,12 +7,15 @@ import {
workspace,
WorkspaceFolder,
} from "vscode";
import { AbstractWebview, WebviewPanelConfig } from "../abstract-webview";
import {
AbstractWebview,
WebviewPanelConfig,
} from "../common/vscode/abstract-webview";
import {
FromDataExtensionsEditorMessage,
ToDataExtensionsEditorMessage,
} from "../pure/interface-types";
import { ProgressUpdate } from "../progress";
import { ProgressUpdate } from "../common/vscode/progress";
import { QueryRunner } from "../query-server";
import {
showAndLogErrorMessage,

View File

@@ -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";

View File

@@ -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";

View File

@@ -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,

View File

@@ -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 {

View File

@@ -27,7 +27,7 @@ import {
ProgressContext,
withInheritedProgress,
withProgress,
} from "../progress";
} from "../common/vscode/progress";
import {
isLikelyDatabaseRoot,
isLikelyDbLanguageFolder,

View File

@@ -13,13 +13,13 @@ import {
showBinaryChoiceDialog,
getFirstWorkspaceFolder,
} from "../helpers";
import { ProgressCallback, withProgress } from "../progress";
import { ProgressCallback, withProgress } from "../common/vscode/progress";
import {
zipArchiveScheme,
encodeArchiveBasePath,
decodeSourceArchiveUri,
encodeSourceArchiveUri,
} from "../archive-filesystem-provider";
} from "../common/vscode/archive-filesystem-provider";
import { DisposableObject } from "../pure/disposable-object";
import { Logger, extLogger } from "../common";
import { asError, getErrorMessage } from "../pure/helpers-pure";

View File

@@ -6,7 +6,7 @@ import {
window,
workspace,
} from "vscode";
import { UserCancellationException } from "../../progress";
import { UserCancellationException } from "../../common/vscode/progress";
import {
getNwoFromGitHubUrl,
isValidGitHubNwo,

View File

@@ -23,7 +23,7 @@ import { watch } from "chokidar";
import {
activate as archiveFilesystemProvider_activate,
zipArchiveScheme,
} from "./archive-filesystem-provider";
} from "./common/vscode/archive-filesystem-provider";
import { CodeQLCliServer } from "./codeql-cli/cli";
import {
CliConfigListener,
@@ -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";

View File

@@ -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";

View File

@@ -66,7 +66,10 @@ import {
transformBqrsResultSet,
ResultSetSchema,
} 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 { HistoryItemLabelProvider } from "./query-history/history-item-label-provider";
import { telemetryListener } from "./telemetry";

View File

@@ -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";

View File

@@ -1,7 +1,7 @@
import {
decodeSourceArchiveUri,
encodeArchiveBasePath,
} from "../../archive-filesystem-provider";
} from "../../common/vscode/archive-filesystem-provider";
import {
ColumnKindCode,
EntityValue,
@@ -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,

View File

@@ -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";

View File

@@ -14,11 +14,11 @@ import {
decodeSourceArchiveUri,
encodeArchiveBasePath,
zipArchiveScheme,
} from "../../archive-filesystem-provider";
} from "../../common/vscode/archive-filesystem-provider";
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,

View File

@@ -1,4 +1,8 @@
import { ProgressCallback, ProgressUpdate, withProgress } from "../progress";
import {
ProgressCallback,
ProgressUpdate,
withProgress,
} from "../common/vscode/progress";
import {
CancellationToken,
CancellationTokenSource,

View File

@@ -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";

View File

@@ -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";

View File

@@ -8,7 +8,7 @@ import {
WorkspaceFolder,
env,
} 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 { pathExists } from "fs-extra";

View File

@@ -55,7 +55,7 @@ import { HistoryTreeDataProvider } from "./history-tree-data-provider";
import { QueryHistoryDirs } from "./query-history-dirs";
import { QueryHistoryCommands } from "../common/commands";
import { App } from "../common/app";
import { tryOpenExternalFile } from "../vscode-utils/external-files";
import { tryOpenExternalFile } from "../common/vscode/external-files";
import {
createMultiSelectionCommand,
createSingleSelectionCommand,

View File

@@ -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 {

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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,

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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,

View File

@@ -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,

View File

@@ -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";

View File

@@ -1,5 +1,8 @@
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 { telemetryListener } from "../telemetry";
import {

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -54,7 +54,7 @@ import {
ProgressCallback,
UserCancellationException,
withProgress,
} from "../progress";
} from "../common/vscode/progress";
import { CodeQLCliServer } from "../codeql-cli/cli";
import {
defaultFilterSortState,

View File

@@ -1,5 +1,8 @@
import { ExtensionContext, ViewColumn } from "vscode";
import { AbstractWebview, WebviewPanelConfig } from "../abstract-webview";
import {
AbstractWebview,
WebviewPanelConfig,
} from "../common/vscode/abstract-webview";
import { extLogger } from "../common";
import {
FromVariantAnalysisMessage,

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -13,12 +13,12 @@ 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,
encodeSourceArchiveUri,
} from "../../../src/archive-filesystem-provider";
} from "../../../src/common/vscode/archive-filesystem-provider";
import { testDisposeHandler } from "../test-dispose-handler";
import { QueryRunner } from "../../../src/query-server/query-runner";
import * as helpers from "../../../src/helpers";

View File

@@ -7,7 +7,7 @@ import {
decodeSourceArchiveUri,
ZipFileReference,
zipArchiveScheme,
} from "../../../src/archive-filesystem-provider";
} from "../../../../../src/common/vscode/archive-filesystem-provider";
import { FileType, FileSystemError, Uri } from "vscode";
describe("archive-filesystem-provider", () => {
@@ -16,7 +16,7 @@ describe("archive-filesystem-provider", () => {
const uri = encodeSourceArchiveUri({
sourceArchiveZipPath: resolve(
__dirname,
"data/archive-filesystem-provider-test/single_file.zip",
"../../data/archive-filesystem-provider-test/single_file.zip",
),
pathWithinSourceArchive: "/aFileName.txt",
});
@@ -29,7 +29,7 @@ describe("archive-filesystem-provider", () => {
const uri = encodeSourceArchiveUri({
sourceArchiveZipPath: resolve(
__dirname,
"data/archive-filesystem-provider-test/zip_with_folder.zip",
"../../data/archive-filesystem-provider-test/zip_with_folder.zip",
),
pathWithinSourceArchive: "folder1/textFile.txt",
});
@@ -42,7 +42,7 @@ describe("archive-filesystem-provider", () => {
const uri = encodeSourceArchiveUri({
sourceArchiveZipPath: resolve(
__dirname,
"data/archive-filesystem-provider-test/zip_with_folder.zip",
"../../data/archive-filesystem-provider-test/zip_with_folder.zip",
),
pathWithinSourceArchive: "folder1",
});
@@ -59,7 +59,7 @@ describe("archive-filesystem-provider", () => {
const uri = encodeSourceArchiveUri({
sourceArchiveZipPath: resolve(
__dirname,
"data/archive-filesystem-provider-test/zip_with_folder.zip",
"../../data/archive-filesystem-provider-test/zip_with_folder.zip",
),
pathWithinSourceArchive: "folder1/not-here",
});
@@ -76,7 +76,7 @@ describe("archive-filesystem-provider", () => {
const uri = encodeSourceArchiveUri({
sourceArchiveZipPath: resolve(
__dirname,
"data/archive-filesystem-provider-test/zip_with_folder.zip",
"../../data/archive-filesystem-provider-test/zip_with_folder.zip",
),
pathWithinSourceArchive: "folder1/not-here",
});
@@ -93,7 +93,7 @@ describe("archive-filesystem-provider", () => {
const uri = encodeSourceArchiveUri({
sourceArchiveZipPath: resolve(
__dirname,
"data/archive-filesystem-provider-test/zip_with_folder.zip",
"../../data/archive-filesystem-provider-test/zip_with_folder.zip",
),
pathWithinSourceArchive: "folder1/textFile.txt",
});
@@ -110,7 +110,7 @@ describe("archive-filesystem-provider", () => {
const uri = encodeSourceArchiveUri({
sourceArchiveZipPath: resolve(
__dirname,
"data/archive-filesystem-provider-test/zip_with_folder.zip",
"../../data/archive-filesystem-provider-test/zip_with_folder.zip",
),
pathWithinSourceArchive: "folder1/folder2",
});
@@ -127,7 +127,7 @@ describe("archive-filesystem-provider", () => {
const uri = encodeSourceArchiveUri({
sourceArchiveZipPath: resolve(
__dirname,
"data/archive-filesystem-provider-test/zip_with_folder.zip",
"../../data/archive-filesystem-provider-test/zip_with_folder.zip",
),
pathWithinSourceArchive: "folder1/folder2",
});

View File

@@ -1,5 +1,5 @@
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 { mockedObject } from "../../../utils/mocking.helpers";

View File

@@ -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";

View File

@@ -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";