improve imports
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { CommandManager } from "../packages/commands";
|
||||
import type { Uri, Range, TextDocumentShowOptions } from "vscode";
|
||||
import type { AstItem } from "../language-support/ast-viewer/ast-viewer";
|
||||
import type { AstItem } from "../language-support";
|
||||
import type { DbTreeViewItem } from "../databases/ui/db-tree-view-item";
|
||||
import type { DatabaseItem } from "../local-databases";
|
||||
import type { QueryHistoryInfo } from "../query-history/query-history-info";
|
||||
|
||||
@@ -20,8 +20,6 @@ import { dirSync } from "tmp-promise";
|
||||
import { testExplorerExtensionId, TestHub } from "vscode-test-adapter-api";
|
||||
import { lt, parse } from "semver";
|
||||
import { watch } from "chokidar";
|
||||
|
||||
import { AstViewer } from "./language-support/ast-viewer/ast-viewer";
|
||||
import {
|
||||
activate as archiveFilesystemProvider_activate,
|
||||
zipArchiveScheme,
|
||||
@@ -36,6 +34,7 @@ import {
|
||||
QueryServerConfigListener,
|
||||
} from "./config";
|
||||
import {
|
||||
AstViewer,
|
||||
install,
|
||||
spawnIdeServer,
|
||||
getQueryEditorCommands,
|
||||
|
||||
@@ -8,7 +8,7 @@ import { DatabaseItem } from "../../local-databases";
|
||||
import { ChildAstItem, AstItem } from "./ast-viewer";
|
||||
import { Uri } from "vscode";
|
||||
import { QueryOutputDir } from "../../run-queries-shared";
|
||||
import { fileRangeFromURI } from "../contextual";
|
||||
import { fileRangeFromURI } from "../contextual/file-range-from-uri";
|
||||
|
||||
/**
|
||||
* A class that wraps a tree of QL results from a query that
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import { Uri, window } from "vscode";
|
||||
import { withProgress } from "../../progress";
|
||||
import { AstViewer } from "./ast-viewer";
|
||||
import { TemplatePrintAstProvider, TemplatePrintCfgProvider } from "..";
|
||||
import { AstCfgCommands } from "../../common/commands";
|
||||
import { LocalQueries } from "../../local-queries";
|
||||
import {
|
||||
TemplatePrintAstProvider,
|
||||
TemplatePrintCfgProvider,
|
||||
} from "../contextual/template-provider";
|
||||
|
||||
type AstCfgOptions = {
|
||||
localQueries: LocalQueries;
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
export * from "../ast-viewer/ast-builder";
|
||||
export * from "./file-range-from-uri";
|
||||
export * from "./key-type";
|
||||
export * from "./location-finder";
|
||||
export * from "./query-resolver";
|
||||
export * from "./template-provider";
|
||||
@@ -21,7 +21,7 @@ import { CancellationToken, LocationLink, Uri } from "vscode";
|
||||
import { QueryOutputDir } from "../../run-queries-shared";
|
||||
import { QueryRunner } from "../../query-server";
|
||||
import { QueryResultType } from "../../pure/new-messages";
|
||||
import { fileRangeFromURI } from ".";
|
||||
import { fileRangeFromURI } from "./file-range-from-uri";
|
||||
|
||||
export const SELECT_QUERY_NAME = "#select";
|
||||
export const TEMPLATE_NAME = "selectedSourceFile";
|
||||
|
||||
@@ -32,7 +32,7 @@ import {
|
||||
} from "./query-resolver";
|
||||
import { isCanary, NO_CACHE_AST_VIEWER } from "../../config";
|
||||
import { CoreCompletedQuery, QueryRunner } from "../../query-server";
|
||||
import { AstBuilder } from ".";
|
||||
import { AstBuilder } from "../ast-viewer/ast-builder";
|
||||
|
||||
/**
|
||||
* Runs templated CodeQL queries to find definitions in
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
export * from "./contextual";
|
||||
export * from "./ast-viewer/ast-builder";
|
||||
export * from "./ast-viewer/ast-viewer";
|
||||
export * from "./contextual/file-range-from-uri";
|
||||
export * from "./contextual/key-type";
|
||||
export * from "./contextual/location-finder";
|
||||
export * from "./contextual/query-resolver";
|
||||
export * from "./contextual/template-provider";
|
||||
export * from "./ide-server";
|
||||
export * from "./language-support";
|
||||
export * from "./query-editor";
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
import { readFile } from "fs-extra";
|
||||
import { load } from "js-yaml";
|
||||
|
||||
import {
|
||||
AstViewer,
|
||||
AstItem,
|
||||
} from "../../../../../src/language-support/ast-viewer/ast-viewer";
|
||||
import { AstViewer, AstItem } from "../../../../../src/language-support";
|
||||
import { commands, Range, Uri } from "vscode";
|
||||
import { testDisposeHandler } from "../../../test-dispose-handler";
|
||||
import { mockDatabaseItem } from "../../../utils/mocking.helpers";
|
||||
|
||||
Reference in New Issue
Block a user