Skip to content

Commit

Permalink
chore: improve naming devices
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobrosenberg committed May 24, 2022
1 parent b86525d commit e3d6c76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class Commands {
main: async (config) => {
const result = await vscode.window.showQuickPick(
[
{ label: "name", description: config.name },
{ label: "name", description: device.customName || device.name },
{ label: "autoConnect", description: config.autoConnect },
// todo are we adding telnet?
// { label: "username", description: config.username || "" },
Expand All @@ -299,7 +299,7 @@ class Commands {
return result?.label || "_DONE_";
},
name: async () => {
const name = await vscode.window.showInputBox({ placeHolder: device.name });
const name = await vscode.window.showInputBox({ placeHolder: device.name, value: device.customName });

const namesMap = serializedEntriesToObj(this.pymakr.config.get().get("devices.names"));

Expand Down

0 comments on commit e3d6c76

Please sign in to comment.