From 975b838c4e0beb9b0bfc4ccc6096b63fe8c61f07 Mon Sep 17 00:00:00 2001 From: xhayper Date: Sun, 23 Oct 2022 11:24:13 +0700 Subject: [PATCH] chore: code cleanup --- src/activity.ts | 22 ++++++++++------------ src/data.ts | 1 + 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/activity.ts b/src/activity.ts index 49862d3d..853c3f62 100644 --- a/src/activity.ts +++ b/src/activity.ts @@ -1,14 +1,3 @@ -import { - type Selection, - type TextDocument, - debug, - DiagnosticSeverity, - env, - languages, - workspace, - NotebookDocument, - NotebookRange -} from "vscode"; import { resolveLangName, toLower, toTitle, toUpper } from "./helpers/resolveLangName"; import { type SetActivity } from "@xhayper/discord-rpc"; import { CONFIG_KEYS, FAKE_EMPTY } from "./constants"; @@ -18,7 +7,16 @@ import { isObject } from "./helpers/isObject"; import { getConfig } from "./config"; import { dataClass } from "./data"; import { sep } from "node:path"; -import { logInfo } from "./logger"; +import { + type Selection, + type TextDocument, + type NotebookDocument, + debug, + DiagnosticSeverity, + env, + languages, + workspace +} from "vscode"; // TODO: move this to data class export let totalProblems = 0; diff --git a/src/data.ts b/src/data.ts index da4e94bf..38c89fdc 100644 --- a/src/data.ts +++ b/src/data.ts @@ -7,6 +7,7 @@ import { logInfo } from "./logger"; import { type WorkspaceFolder, type TextEditor, + type NotebookEditor, type Disposable, type Extension, EventEmitter,