diff options
| author | adamdotdevin <[email protected]> | 2025-08-12 08:48:32 -0500 |
|---|---|---|
| committer | adamdotdevin <[email protected]> | 2025-08-12 08:48:42 -0500 |
| commit | 3530885f48df779e78d713246a5a003a8d286e3d (patch) | |
| tree | c2f920c7eb712a97edeb5c18fff613e6fa368842 | |
| parent | a071a2b7f4acc6eee0ed0fc43b2022f0373eab6d (diff) | |
| download | opencode-3530885f48df779e78d713246a5a003a8d286e3d.tar.gz opencode-3530885f48df779e78d713246a5a003a8d286e3d.zip | |
fix: vscode extension cursor placement
| -rw-r--r-- | packages/tui/internal/components/commands/commands.go | 8 | ||||
| -rw-r--r-- | packages/tui/internal/util/ide.go | 7 |
2 files changed, 8 insertions, 7 deletions
diff --git a/packages/tui/internal/components/commands/commands.go b/packages/tui/internal/components/commands/commands.go index b8e7871ce..fd578a41b 100644 --- a/packages/tui/internal/components/commands/commands.go +++ b/packages/tui/internal/components/commands/commands.go @@ -83,10 +83,10 @@ func (c *commandsComponent) View() string { } commandsToShow = append(commandsToShow, // empty line - commands.Command{ - Name: "", - Description: "", - }, + // commands.Command{ + // Name: "", + // Description: "", + // }, commands.Command{ Name: commands.CommandName(util.Ide()), Description: "open opencode", diff --git a/packages/tui/internal/util/ide.go b/packages/tui/internal/util/ide.go index 5d0402b4b..7b3832f9b 100644 --- a/packages/tui/internal/util/ide.go +++ b/packages/tui/internal/util/ide.go @@ -6,11 +6,11 @@ import ( ) var SUPPORTED_IDES = []struct { - Search string + Search string ShortName string }{ {"Windsurf", "Windsurf"}, - {"Visual Studio Code", "VS Code"}, + {"Visual Studio Code", "vscode"}, {"Cursor", "Cursor"}, {"VSCodium", "VSCodium"}, } @@ -27,4 +27,5 @@ func Ide() string { } return "unknown" -}
\ No newline at end of file +} + |
