Move text-utils.ts to /common
This commit is contained in:
@@ -2,7 +2,7 @@ import { readJsonSync } from "fs-extra";
|
||||
import { resolve } from "path";
|
||||
import Ajv, { ValidateFunction } from "ajv";
|
||||
import { clearLocalDbConfig, DbConfig } from "./db-config";
|
||||
import { findDuplicateStrings } from "../../pure/text-utils";
|
||||
import { findDuplicateStrings } from "../../common/text-utils";
|
||||
import {
|
||||
DbConfigValidationError,
|
||||
DbConfigValidationErrorKind,
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
parseHighlightedLine,
|
||||
shouldHighlightLine,
|
||||
} from "../common/sarif-utils";
|
||||
import { convertNonPrintableChars } from "../pure/text-utils";
|
||||
import { convertNonPrintableChars } from "../common/text-utils";
|
||||
import type {
|
||||
AnalysisAlert,
|
||||
AnalysisRawResults,
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
} from "../../common/interface-types";
|
||||
import { assertNever } from "../../common/helpers-pure";
|
||||
import { vscode } from "../vscode-api";
|
||||
import { convertNonPrintableChars } from "../../pure/text-utils";
|
||||
import { convertNonPrintableChars } from "../../common/text-utils";
|
||||
import { sendTelemetry } from "../common/telemetry";
|
||||
|
||||
export interface ResultTableProps {
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
} from "../../common/bqrs-cli-types";
|
||||
import { tryGetRemoteLocation } from "../../common/bqrs-utils";
|
||||
import TextButton from "../common/TextButton";
|
||||
import { convertNonPrintableChars } from "../../pure/text-utils";
|
||||
import { convertNonPrintableChars } from "../../common/text-utils";
|
||||
import { sendTelemetry, useTelemetryOnChange } from "../common/telemetry";
|
||||
|
||||
const numOfResultsInContractedMode = 5;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { findDuplicateStrings } from "../../src/pure/text-utils";
|
||||
import { findDuplicateStrings } from "../../src/common/text-utils";
|
||||
|
||||
describe("findDuplicateStrings", () => {
|
||||
it("should find duplicates strings in an array of strings", () => {
|
||||
|
||||
Reference in New Issue
Block a user