Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
"release": "npm run lint && bumpp"
},
"devDependencies": {
"@antfu/eslint-config": "^2.24.0",
"@antfu/eslint-config": "^3.3.2",
"@swc/core": "^1.7.3",
"@types/node": "^20.14.13",
"@types/vscode": "^1.91.0",
Expand Down
572 changes: 218 additions & 354 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/ai/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { OpenAI } from './openai.js'
import type { BaseAIConfiguration } from '../types/index.js'
import type { BaseAI } from './base_ai.js'
import { OpenAI } from './openai.js'

export const ai: Record<string, typeof BaseAI<BaseAIConfiguration>> = {
openai: OpenAI,
Expand Down
2 changes: 1 addition & 1 deletion src/ai/openai.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { OpenAIConfiguration } from '../types/index.js'
import { BaseAI } from './base_ai.js'
import type { OpenAIConfiguration } from '../types/index.js'

export class OpenAI extends BaseAI<OpenAIConfiguration> {
static name = 'OpenAI'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/base_command.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ExtensionContext } from 'vscode'
import { Base } from '../core/Base.js'
import { Logger } from '../core/Logger.js'
import type { Awaitable } from '../types/index.js'
import { Base } from '../core/Base.js'

export abstract class BaseCommand extends Base {
protected readonly logger: Logger
Expand Down
2 changes: 1 addition & 1 deletion src/commands/check_config_command.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { AI, Action, Prompt, QuickAction } from '../types/index.js'
import { BaseCommand } from './base_command.js'
import type { Action, AI, Prompt, QuickAction } from '../types/index.js'

export class CheckConfigCommand extends BaseCommand {
protected async run(): Promise<void> {
Expand Down
6 changes: 3 additions & 3 deletions src/commands/run_action_command.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { extensions, ProgressLocation, Range, window, workspace } from 'vscode'
import type { Selection, TextEditor } from 'vscode'
import { ProgressLocation, Range, extensions, window, workspace } from 'vscode'
import type { AI, Action, Prompt } from '../types/index.js'
import { ai as aiIndex } from '../ai/index.js'
import type { BaseAI } from '../ai/base_ai.js'
import { ActionTreeItem } from '../providers/actions_tree_data_provider.js'
import { BaseCommand } from './base_command.js'
import type { BaseAI } from '../ai/base_ai.js'
import type { Action, AI, Prompt } from '../types/index.js'

export class RunActionCommand extends BaseCommand {
protected async run(actionName?: string | ActionTreeItem): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/run_quick_action_command.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { workspace } from 'vscode'
import type { Action, QuickAction } from '../types/index.js'
import { BaseCommand } from './base_command.js'
import { RunActionCommand } from './run_action_command.js'
import type { Action, QuickAction } from '../types/index.js'

export class RunQuickActionCommand extends BaseCommand {
action: Action | undefined
Expand Down
4 changes: 2 additions & 2 deletions src/core/Base.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AssertionError } from 'node:assert'
import type { WorkspaceConfiguration } from 'vscode'
import { window, workspace } from 'vscode'
import type { AI, Action, Prompt } from '../types/index.js'
import type { WorkspaceConfiguration } from 'vscode'
import type { Action, AI, Prompt } from '../types/index.js'

export class Base {
/**
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { ExtensionContext } from 'vscode'
import { commands as vsCommands, window, workspace } from 'vscode'
import { Logger } from './core/Logger.js'
import type { ExtensionContext } from 'vscode'
import { commands } from './commands/index.js'
import type { QuickAction } from './types/index.js'
import { Logger } from './core/Logger.js'
import { ActionsTreeDataProvider } from './providers/actions_tree_data_provider.js'
import type { QuickAction } from './types/index.js'

export function activate(context: ExtensionContext): void {
Logger.createChannel()
Expand Down
2 changes: 1 addition & 1 deletion src/providers/actions_tree_data_provider.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type TreeDataProvider, TreeItem, TreeItemCollapsibleState } from 'vscode'
import type { AI, Action } from '../types/index.js'
import { Base } from '../core/Base.js'
import type { Action, AI } from '../types/index.js'

type Element = ActionTreeItem | GitTreeItem | TextTreeItem

Expand Down