Skip to content

Commit 57dfd6a

Browse files
committed
chore: Fix editor list. (#1006)
Right now it says "VSCode, None, Zed", which is odd. We should list editors at the top, and "None" at the bottom.
1 parent 1795b30 commit 57dfd6a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

packages/cli/src/utils/editor.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,7 @@ export async function selectEditor({
184184
};
185185
const selectedEditor = await prompts.select({
186186
message: 'Which editor are you using?',
187-
options:
188-
editorOptions.length > 0
189-
? [editorOptions[0], noneOption, ...editorOptions.slice(1)]
190-
: [noneOption],
187+
options: [...editorOptions, noneOption],
191188
initialValue: 'vscode',
192189
});
193190

0 commit comments

Comments
 (0)