From 0b88f7d39c8b1d6b65dcccbc1c98c9f89772ef3c 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 | 4 ++-- 2 files changed, 12 insertions(+), 14 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 364754d2..2a1224a7 100644 --- a/src/data.ts +++ b/src/data.ts @@ -7,13 +7,13 @@ import { logInfo } from "./logger"; import { type WorkspaceFolder, type TextEditor, + type NotebookEditor, type Disposable, type Extension, EventEmitter, extensions, window, - workspace, - NotebookEditor + workspace } from "vscode"; const ALLOWED_SCHEME = ["file", "vscode-remote"];