Skip to content

Commit 0b88f7d

Browse files
committed
chore: code cleanup
1 parent d2dbddb commit 0b88f7d

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

src/activity.ts

+10-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
import {
2-
type Selection,
3-
type TextDocument,
4-
debug,
5-
DiagnosticSeverity,
6-
env,
7-
languages,
8-
workspace,
9-
NotebookDocument,
10-
NotebookRange
11-
} from "vscode";
121
import { resolveLangName, toLower, toTitle, toUpper } from "./helpers/resolveLangName";
132
import { type SetActivity } from "@xhayper/discord-rpc";
143
import { CONFIG_KEYS, FAKE_EMPTY } from "./constants";
@@ -18,7 +7,16 @@ import { isObject } from "./helpers/isObject";
187
import { getConfig } from "./config";
198
import { dataClass } from "./data";
209
import { sep } from "node:path";
21-
import { logInfo } from "./logger";
10+
import {
11+
type Selection,
12+
type TextDocument,
13+
type NotebookDocument,
14+
debug,
15+
DiagnosticSeverity,
16+
env,
17+
languages,
18+
workspace
19+
} from "vscode";
2220

2321
// TODO: move this to data class
2422
export let totalProblems = 0;

src/data.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import { logInfo } from "./logger";
77
import {
88
type WorkspaceFolder,
99
type TextEditor,
10+
type NotebookEditor,
1011
type Disposable,
1112
type Extension,
1213
EventEmitter,
1314
extensions,
1415
window,
15-
workspace,
16-
NotebookEditor
16+
workspace
1717
} from "vscode";
1818

1919
const ALLOWED_SCHEME = ["file", "vscode-remote"];

0 commit comments

Comments
 (0)