这是indexloc提供的服务,不要输入任何密码
Skip to content

关于设备断开vscode不会清理 #30

@huaqqdu

Description

@huaqqdu

https://github.com/SuperMonster003/AutoJs6-VSCode-Extension/blob/master/src/extension.ts#L581的位置改一下

            vscode.window.showInformationMessage(`${device.host}AutoJs6 设备断开: ${device}`);
            const chn = deviceChannel[device.deviceId];
            if (chn) {
                chn.dispose();
                delete deviceChannel[device.deviceId];
                const firstValue = Object.values(deviceChannel)[0];
                if (firstValue) {
                    firstValue.show(true);
                }
            }
            connectedServerAdb.delete(device.adbDeviceId);
            connectedServerLan.delete(device.host);

这样多设备连接,其中某个断了vscode的链接列表能自动移除

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions