소스 검색

fix: vscode extension cursor placement

adamdotdevin 6 달 전
부모
커밋
3530885f48
2개의 변경된 파일8개의 추가작업 그리고 7개의 파일을 삭제
  1. 4 4
      packages/tui/internal/components/commands/commands.go
  2. 4 3
      packages/tui/internal/util/ide.go

+ 4 - 4
packages/tui/internal/components/commands/commands.go

@@ -83,10 +83,10 @@ func (c *commandsComponent) View() string {
 		}
 		}
 		commandsToShow = append(commandsToShow,
 		commandsToShow = append(commandsToShow,
 			// empty line
 			// empty line
-			commands.Command{
-				Name:        "",
-				Description: "",
-			},
+			// commands.Command{
+			// 	Name:        "",
+			// 	Description: "",
+			// },
 			commands.Command{
 			commands.Command{
 				Name:        commands.CommandName(util.Ide()),
 				Name:        commands.CommandName(util.Ide()),
 				Description: "open opencode",
 				Description: "open opencode",

+ 4 - 3
packages/tui/internal/util/ide.go

@@ -6,11 +6,11 @@ import (
 )
 )
 
 
 var SUPPORTED_IDES = []struct {
 var SUPPORTED_IDES = []struct {
-	Search string
+	Search    string
 	ShortName string
 	ShortName string
 }{
 }{
 	{"Windsurf", "Windsurf"},
 	{"Windsurf", "Windsurf"},
-	{"Visual Studio Code", "VS Code"},
+	{"Visual Studio Code", "vscode"},
 	{"Cursor", "Cursor"},
 	{"Cursor", "Cursor"},
 	{"VSCodium", "VSCodium"},
 	{"VSCodium", "VSCodium"},
 }
 }
@@ -27,4 +27,5 @@ func Ide() string {
 	}
 	}
 
 
 	return "unknown"
 	return "unknown"
-}
+}
+