Skip to content

Commit

Permalink
chore: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
xhayper committed Oct 23, 2022
1 parent d2dbddb commit 0b88f7d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
22 changes: 10 additions & 12 deletions src/activity.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down

0 comments on commit 0b88f7d

Please sign in to comment.