fix: clean up 49 unused variables, catch params, and stale imports (#22695)
This commit is contained in:
parent
34213d4446
commit
cce05c1665
37 changed files with 32 additions and 94 deletions
|
|
@ -6,11 +6,11 @@ import * as vscode from "vscode"
|
|||
const TERMINAL_NAME = "opencode"
|
||||
|
||||
export function activate(context: vscode.ExtensionContext) {
|
||||
let openNewTerminalDisposable = vscode.commands.registerCommand("opencode.openNewTerminal", async () => {
|
||||
const openNewTerminalDisposable = vscode.commands.registerCommand("opencode.openNewTerminal", async () => {
|
||||
await openTerminal()
|
||||
})
|
||||
|
||||
let openTerminalDisposable = vscode.commands.registerCommand("opencode.openTerminal", async () => {
|
||||
const openTerminalDisposable = vscode.commands.registerCommand("opencode.openTerminal", async () => {
|
||||
// An opencode terminal already exists => focus it
|
||||
const existingTerminal = vscode.window.terminals.find((t) => t.name === TERMINAL_NAME)
|
||||
if (existingTerminal) {
|
||||
|
|
@ -40,7 +40,7 @@ export function activate(context: vscode.ExtensionContext) {
|
|||
}
|
||||
})
|
||||
|
||||
context.subscriptions.push(openTerminalDisposable, addFilepathDisposable)
|
||||
context.subscriptions.push(openNewTerminalDisposable, openTerminalDisposable, addFilepathDisposable)
|
||||
|
||||
async function openTerminal() {
|
||||
// Create a new terminal in split screen
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue