Fix: Com name

master
Raylin51 2020-04-07 14:32:58 +08:00
parent ad9003500c
commit c41c6efa73
1 changed files with 2 additions and 2 deletions

View File

@ -13,10 +13,10 @@ export const pickDevice = (devicesService: Devices): vscode.Disposable => {
quickPick.items = devices.map((portInfo): vscode.QuickPickItem => {
return {
// label: portInfo.manufacturer ? `${portInfo.comName}: ${portInfo.manufacturer}` : portInfo.comName,
label: portInfo.comName,
label: portInfo.path,
description: portInfo.serialNumber || portInfo.productId,
detail: portInfo.pnpId,
picked: portInfo.comName === devicesService.device,
picked: portInfo.path === devicesService.device,
}
})
if (quickPick.items.length === 0) {