Skip to content

Commit 27ebc3e

Browse files
authored
Merge pull request #2388 from github/charisk/move-common-vscode-files
Move vscode utils to /common/vscode
2 parents afa7b1d + b034c31 commit 27ebc3e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+118
-74
lines changed

extensions/ql-vscode/src/codeql-cli/distribution.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ import {
1414
} from "../helpers";
1515
import { extLogger } from "../common";
1616
import { getCodeQlCliVersion } from "./cli-version";
17-
import { ProgressCallback, reportStreamProgress } from "../progress";
17+
import {
18+
ProgressCallback,
19+
reportStreamProgress,
20+
} from "../common/vscode/progress";
1821
import {
1922
codeQlLauncherName,
2023
deprecatedCodeQlLauncherName,

extensions/ql-vscode/src/abstract-webview.ts renamed to extensions/ql-vscode/src/common/vscode/abstract-webview.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ import {
99
} from "vscode";
1010
import { join } from "path";
1111

12-
import { DisposableObject, DisposeHandler } from "./pure/disposable-object";
13-
import { tmpDir } from "./helpers";
12+
import { DisposableObject, DisposeHandler } from "../../pure/disposable-object";
13+
import { tmpDir } from "../../helpers";
1414
import {
1515
getHtmlForWebview,
1616
WebviewMessage,
1717
WebviewView,
18-
} from "./interface-utils";
18+
} from "../../interface-utils";
1919

2020
export type WebviewPanelConfig = {
2121
viewId: string;

extensions/ql-vscode/src/archive-filesystem-provider.ts renamed to extensions/ql-vscode/src/common/vscode/archive-filesystem-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { pathExists } from "fs-extra";
22
import * as unzipper from "unzipper";
33
import * as vscode from "vscode";
4-
import { extLogger } from "./common";
4+
import { extLogger } from "..";
55

66
// All path operations in this file must be on paths *within* the zip
77
// archive.

extensions/ql-vscode/src/authentication.ts renamed to extensions/ql-vscode/src/common/vscode/authentication.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as vscode from "vscode";
22
import * as Octokit from "@octokit/rest";
33
import { retry } from "@octokit/plugin-retry";
4-
import { Credentials } from "./common/authentication";
4+
import { Credentials } from "../authentication";
55

66
const GITHUB_AUTH_PROVIDER_ID = "github";
77

extensions/ql-vscode/src/common/vscode/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
getErrorStack,
88
} from "../../pure/helpers-pure";
99
import { redactableError } from "../../pure/errors";
10-
import { UserCancellationException } from "../../progress";
10+
import { UserCancellationException } from "./progress";
1111
import {
1212
showAndLogExceptionWithTelemetry,
1313
showAndLogWarningMessage,

extensions/ql-vscode/src/vscode-utils/external-files.ts renamed to extensions/ql-vscode/src/common/vscode/external-files.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import { Uri, window } from "vscode";
2-
import { AppCommandManager } from "../common/commands";
2+
import { AppCommandManager } from "../commands";
33
import {
44
showAndLogExceptionWithTelemetry,
55
showBinaryChoiceDialog,
6-
} from "../helpers";
7-
import { redactableError } from "../pure/errors";
8-
import { asError, getErrorMessage, getErrorStack } from "../pure/helpers-pure";
6+
} from "../../helpers";
7+
import { redactableError } from "../../pure/errors";
8+
import {
9+
asError,
10+
getErrorMessage,
11+
getErrorStack,
12+
} from "../../pure/helpers-pure";
913

1014
export async function tryOpenExternalFile(
1115
commandManager: AppCommandManager,

extensions/ql-vscode/src/vscode-utils/multi-file-system-watcher.ts renamed to extensions/ql-vscode/src/common/vscode/multi-file-system-watcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DisposableObject } from "../pure/disposable-object";
1+
import { DisposableObject } from "../../pure/disposable-object";
22
import { EventEmitter, Event, Uri, GlobPattern, workspace } from "vscode";
33

44
/**
File renamed without changes.

extensions/ql-vscode/src/common/vscode/vscode-app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as vscode from "vscode";
2-
import { VSCodeCredentials } from "../../authentication";
2+
import { VSCodeCredentials } from "./authentication";
33
import { Disposable } from "../../pure/disposable-object";
44
import { App, AppMode } from "../app";
55
import { AppEventEmitter } from "../events";

extensions/ql-vscode/src/compare/compare-view.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ import resultsDiff from "./resultsDiff";
1818
import { CompletedLocalQueryInfo } from "../query-results";
1919
import { assertNever, getErrorMessage } from "../pure/helpers-pure";
2020
import { HistoryItemLabelProvider } from "../query-history/history-item-label-provider";
21-
import { AbstractWebview, WebviewPanelConfig } from "../abstract-webview";
21+
import {
22+
AbstractWebview,
23+
WebviewPanelConfig,
24+
} from "../common/vscode/abstract-webview";
2225
import { telemetryListener } from "../telemetry";
2326
import { redactableError } from "../pure/errors";
2427
import { showAndLogExceptionWithTelemetry } from "../helpers";

0 commit comments

Comments
 (0)