Skip to content

Commit db15ada

Browse files
committed
Sort imports
1 parent 027c60c commit db15ada

15 files changed

+5028
-5046
lines changed

biome.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
22
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
33
"files": {
4-
"includes": [
5-
"src/**/*",
6-
"test/**/*"
7-
]
4+
"includes": ["src/**/*", "test/**/*"]
85
},
96
"assist": { "actions": { "source": { "organizeImports": "on" } } },
107
"linter": {

src/git/blame.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import { type FSWatcher, promises, watch } from "node:fs";
2-
3-
import type { LineAttachedCommit } from "./util/stream-parsing.js";
4-
52
import { type Disposable, workspace } from "vscode";
63
import { Logger } from "../util/logger.js";
74
import { getProperty } from "../util/property.js";
85
import { type Blame, File } from "./file.js";
96
import { Queue } from "./queue.js";
107
import { getGitFolder } from "./util/git-command.js";
8+
import type { LineAttachedCommit } from "./util/stream-parsing.js";
119

1210
export class Blamer {
1311
private readonly metadata = new WeakMap<

src/git/extension.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
import { dirname } from "node:path";
22
import {
3+
commands,
34
Disposable,
5+
env,
46
type MessageItem,
57
type TextEditor,
68
ThemeIcon,
7-
commands,
8-
env,
99
window,
1010
workspace,
1111
} from "vscode";
12-
13-
import type { LineAttachedCommit } from "./util/stream-parsing.js";
14-
1512
import {
16-
NO_FILE_OR_PLACE,
1713
getActiveTextEditor,
1814
getFilePosition,
15+
NO_FILE_OR_PLACE,
1916
} from "../util/get-active.js";
2017
import { errorMessage, infoMessage } from "../util/message.js";
2118
import { getProperty } from "../util/property.js";
@@ -28,8 +25,8 @@ import { StatusBarView } from "../view.js";
2825
import { Blamer } from "./blame.js";
2926
import { HeadWatch } from "./head-watch.js";
3027
import { getToolUrl } from "./util/get-tool-url.js";
31-
import { isUncommitted } from "./util/is-hash.js";
32-
import { isHash } from "./util/is-hash.js";
28+
import { isHash, isUncommitted } from "./util/is-hash.js";
29+
import type { LineAttachedCommit } from "./util/stream-parsing.js";
3330

3431
type ActionableMessageItem = MessageItem & {
3532
action: () => void;

src/git/util/get-tool-url.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import { URL } from "node:url";
22
import { Uri } from "vscode";
3-
4-
import type { LineAttachedCommit } from "./stream-parsing.js";
5-
63
import { isUrl } from "../../util/is-url.js";
74
import { errorMessage } from "../../util/message.js";
85
import { getProperty } from "../../util/property.js";
@@ -17,6 +14,7 @@ import {
1714
import { isUncommitted } from "./is-hash.js";
1815
import { originUrlToToolUrl } from "./origin-url-to-tool-url.js";
1916
import { projectNameFromOrigin } from "./project-name-from-origin.js";
17+
import type { LineAttachedCommit } from "./stream-parsing.js";
2018
import { stripGitRemoteUrl, stripGitSuffix } from "./strip-git-remote-url.js";
2119

2220
export type ToolUrlTokens = {

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type Disposable, type ExtensionContext, commands } from "vscode";
1+
import { commands, type Disposable, type ExtensionContext } from "vscode";
22

33
import { Extension } from "./git/extension.js";
44
import { Logger } from "./util/logger.js";

src/util/text-decorator.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
import type { Commit, CommitAuthor } from "../git/util/stream-parsing.js";
12
import { between } from "./ago.js";
23
import { getProperty } from "./property.js";
34

4-
import type { Commit, CommitAuthor } from "../git/util/stream-parsing.js";
5-
65
type InfoTokenFunctionWithParameter = (value?: string) => string;
76
type InfoTokenFunction = InfoTokenFunctionWithParameter | string;
87

src/view.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ import {
99
window,
1010
workspace,
1111
} from "vscode";
12-
13-
import type { Commit } from "./git/util/stream-parsing.js";
14-
1512
import { isUncommitted } from "./git/util/is-hash.js";
13+
import type { Commit } from "./git/util/stream-parsing.js";
1614
import { getActiveTextEditor } from "./util/get-active.js";
1715
import { Logger } from "./util/logger.js";
1816
import { getProperty } from "./util/property.js";

0 commit comments

Comments
 (0)