Skip to content

Commit

Permalink
use project names instead of full paths to make the picker easier to …
Browse files Browse the repository at this point in the history
…read
  • Loading branch information
baronfel committed Aug 10, 2024
1 parent 615c19b commit 7dffd32
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Components/Debugger.fs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ module LaunchJsonVersion2 =
}

module Debugger =
open Node.Api
let outputChannel = window.createOutputChannel "Ionide: Debugger"

let private logger =
Expand Down Expand Up @@ -149,7 +150,10 @@ module Debugger =
| projects ->
let picks =
projects
|> List.map (fun p -> createObj [ "data" ==> p; "label" ==> p.Project ])
|> List.map (fun p -> path.basename p.Project, p)
|> List.sortBy fst
|> List.map (fun (projectName, project) ->
createObj [ "data" ==> project; "label" ==> projectName ])
|> ResizeArray

let! proj = window.showQuickPick (unbox<U2<ResizeArray<QuickPickItem>, _>> picks)
Expand Down

0 comments on commit 7dffd32

Please sign in to comment.