diff --git a/packages/cursorless-jetbrains/package.json b/packages/cursorless-jetbrains/package.json index a06aad6639..74eebe6919 100644 --- a/packages/cursorless-jetbrains/package.json +++ b/packages/cursorless-jetbrains/package.json @@ -4,6 +4,7 @@ "description": "cursorless in jetbrains", "main": "./out/cursorless.js", "private": true, + "type": "module", "scripts": { "build": "pnpm run esbuild:prod && pnpm run populate-dist", "compile": "tsc --build", @@ -35,10 +36,6 @@ "web-tree-sitter": "0.24.4" }, "devDependencies": { - "@types/chai": "^5.0.0", - "@types/js-yaml": "^4.0.9", - "@types/lodash": "4.17.10", - "@types/uuid": "^10.0.0", - "lodash": "^4.17.21" + "@types/chai": "^5.0.0" } } diff --git a/packages/cursorless-jetbrains/src/ide/JetbrainsCommandServer.ts b/packages/cursorless-jetbrains/src/ide/JetbrainsCommandServer.ts index 82bc2ac262..ed891a2d8a 100644 --- a/packages/cursorless-jetbrains/src/ide/JetbrainsCommandServer.ts +++ b/packages/cursorless-jetbrains/src/ide/JetbrainsCommandServer.ts @@ -1,8 +1 @@ -import type { CommandServerApi} from "@cursorless/common"; -import { JetbrainsClient } from "./JetbrainsClient"; - -export class JetbrainsCommandServer { - - - -} +export class JetbrainsCommandServer {} diff --git a/packages/cursorless-jetbrains/src/ide/JetbrainsConfiguration.ts b/packages/cursorless-jetbrains/src/ide/JetbrainsConfiguration.ts index a7633f17e8..2cdffe861b 100644 --- a/packages/cursorless-jetbrains/src/ide/JetbrainsConfiguration.ts +++ b/packages/cursorless-jetbrains/src/ide/JetbrainsConfiguration.ts @@ -1,4 +1,3 @@ -import { HatStability } from "@cursorless/common"; import { get } from "lodash"; import type { Configuration, diff --git a/packages/cursorless-jetbrains/src/ide/JetbrainsEvents.ts b/packages/cursorless-jetbrains/src/ide/JetbrainsEvents.ts index 690d10858e..b478991ed3 100644 --- a/packages/cursorless-jetbrains/src/ide/JetbrainsEvents.ts +++ b/packages/cursorless-jetbrains/src/ide/JetbrainsEvents.ts @@ -7,13 +7,13 @@ import type { import { Position, Range } from "@cursorless/common"; export function jetbrainsOnDidChangeTextDocument( - listener: (event: TextDocumentChangeEvent) => void, + _listener: (event: TextDocumentChangeEvent) => void, ): Disposable { return dummyEvent(); } export function jetbrainsOnDidOpenTextDocument( - listener: (event: TextDocument) => any, + _listener: (event: TextDocument) => any, _thisArgs?: any, _disposables?: Disposable[] | undefined, ): Disposable { diff --git a/packages/cursorless-jetbrains/src/ide/JetbrainsHats.ts b/packages/cursorless-jetbrains/src/ide/JetbrainsHats.ts index a1fab1384a..927c37ecb7 100644 --- a/packages/cursorless-jetbrains/src/ide/JetbrainsHats.ts +++ b/packages/cursorless-jetbrains/src/ide/JetbrainsHats.ts @@ -7,7 +7,7 @@ import type { } from "@cursorless/common"; import { Notifier } from "@cursorless/common"; import type { JetbrainsClient } from "./JetbrainsClient"; -import { JetbrainsHatRange } from "../types/jetbrains.types"; +import type { JetbrainsHatRange } from "../types/jetbrains.types"; const HAT_COLORS = [ "default", diff --git a/packages/cursorless-jetbrains/src/ide/JetbrainsIDE.ts b/packages/cursorless-jetbrains/src/ide/JetbrainsIDE.ts index c1a1ba6aed..448945b421 100644 --- a/packages/cursorless-jetbrains/src/ide/JetbrainsIDE.ts +++ b/packages/cursorless-jetbrains/src/ide/JetbrainsIDE.ts @@ -19,10 +19,7 @@ import type { } from "@cursorless/common"; import { pull } from "lodash"; import { JetbrainsCapabilities } from "./JetbrainsCapabilities"; -import { - fromJetbrainsContentChange, - jetbrainsOnDidOpenTextDocument, -} from "./JetbrainsEvents"; +import { fromJetbrainsContentChange } from "./JetbrainsEvents"; import type { JetbrainsClient } from "./JetbrainsClient"; import { JetbrainsClipboard } from "./JetbrainsClipboard"; diff --git a/packages/cursorless-jetbrains/src/ide/jetbrainsPerformEdits.ts b/packages/cursorless-jetbrains/src/ide/jetbrainsPerformEdits.ts index a031cf1525..7e7c6a6ab8 100644 --- a/packages/cursorless-jetbrains/src/ide/jetbrainsPerformEdits.ts +++ b/packages/cursorless-jetbrains/src/ide/jetbrainsPerformEdits.ts @@ -1,6 +1,5 @@ import type { Edit } from "@cursorless/common"; import { type InMemoryTextDocument } from "@cursorless/common"; -import type { Jetbrains } from "../types/jetbrains.types"; import type { EditorEdit } from "../types/types"; import type { JetbrainsIDE } from "./JetbrainsIDE"; import type { JetbrainsClient } from "./JetbrainsClient"; diff --git a/packages/cursorless-jetbrains/src/types/jetbrains.types.ts b/packages/cursorless-jetbrains/src/types/jetbrains.types.ts index e81eb391c4..648f9077e6 100644 --- a/packages/cursorless-jetbrains/src/types/jetbrains.types.ts +++ b/packages/cursorless-jetbrains/src/types/jetbrains.types.ts @@ -1,4 +1,4 @@ -import { Range } from "@cursorless/common"; +import type { Range } from "@cursorless/common"; import type { EditorEdit, EditorState, SelectionOffsets } from "./types"; export type JetbrainsNamespace = "user"; diff --git a/packages/cursorless-jetbrains/tsconfig.json b/packages/cursorless-jetbrains/tsconfig.json index 9b4b0c1914..3782b54e28 100644 --- a/packages/cursorless-jetbrains/tsconfig.json +++ b/packages/cursorless-jetbrains/tsconfig.json @@ -1,9 +1,7 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "target": "ES2020", - "rootDir": "src", - "outDir": "out" + "target": "ES2020" }, "references": [ { @@ -12,9 +10,6 @@ { "path": "../cursorless-engine" }, - { - "path": "../node-common" - }, { "path": "../test-case-recorder" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 79d1e33e10..ece52e246a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -396,18 +396,6 @@ importers: '@types/chai': specifier: ^5.0.0 version: 5.0.0 - '@types/js-yaml': - specifier: ^4.0.9 - version: 4.0.9 - '@types/lodash': - specifier: 4.17.10 - version: 4.17.10 - '@types/uuid': - specifier: ^10.0.0 - version: 10.0.0 - lodash: - specifier: ^4.17.21 - version: 4.17.21 packages/cursorless-neovim: dependencies: diff --git a/tsconfig.json b/tsconfig.json index 20ea84c510..29f9d90f93 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -26,6 +26,9 @@ { "path": "./packages/cursorless-everywhere-talon-e2e" }, + { + "path": "./packages/cursorless-jetbrains" + }, { "path": "./packages/cursorless-neovim" },