You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot differentiate two devices of the same type in the device selector #4632
i have two same phones. when i connect both to computer, vs code shows their names in "select device to use" and they are same. cannot understand what is what.
it is a name of phone model, so it cannot be fixed manually at the settings. it is a hardware phone name.
vs code does not allow me to choose how, by which name i want to see list of devices
Extension version: 3.66.0
VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:57:04.379Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Is Android Studio just showing the raw ID (A6QUCP2C26403181 and A6QUCP2C05400813)? I think we should be able to include that here fairly easily.
AS shows both hardware name and ID.
yes it may be enough. how to do it?
Yep! The brightest text will be "VNE AN00" (eg. where mine says "Mi A2"), and the ID "A6QUCP2C05400813" will be the first part of the next text (where mine says "33aa844").
Yep! The brightest text will be "VNE AN00" (eg. where mine says "Mi A2"), and the ID "A6QUCP2C05400813" will be the first part of the next text (where mine says "33aa844").
I do not understand, you do not plan to tell me HOW to make it?
I'm not sure what version 38 you're referring to. The current extension version is 3.68.
Anyway, I have published pre-release versions of the extensions. Please click the "Switch to Pre-Release" buttons for Dart + Flutter extensions and then click the "Reload" buttons once they have finished installing:
These include the updates, and you should be able to see the IDs in the device picker. Please let me know if this doesn't work for you.
right for now, it is good enough.
in future, will it be possible to set some name to devices? cannot figure out now which logic do i mean, whether vs code will remember commonly connected devices, or else to set a name every time after connecting
I did not know I can just solve it that easy by writing an issue report )
It's not guaranteed everything raised gets fixed quickly, but things are definitely more likely to be addressed if they have been raised, because otherwise I might not know about the issues :-)
If you find bugs or have suggestions, please do open issues!
Activity
DanTup commentedon Jul 4, 2023
Could you post the output of running
flutter devices --machinein a terminal when both devices are connected? Thanks!vammex commentedon Jul 4, 2023
their ID are different and android studio for example does show me a difference between two devices
DanTup commentedon Jul 4, 2023
Is Android Studio just showing the raw ID (
A6QUCP2C26403181andA6QUCP2C05400813)? I think we should be able to include that here fairly easily.[-]cannot recognize my devide[/-][+]Cannot differentiate two devices of the same type in the device selector[/+]vammex commentedon Jul 4, 2023
DanTup commentedon Jul 4, 2023
I've made a change that will add the ID to the device selector like this.
Before
After
Will this solve the issue for you?
vammex commentedon Jul 4, 2023
if it will look like VNE AN00 - A6QUCP2C05400813
it's good
DanTup commentedon Jul 4, 2023
Yep! The brightest text will be "VNE AN00" (eg. where mine says "Mi A2"), and the ID "A6QUCP2C05400813" will be the first part of the next text (where mine says "33aa844").
vammex commentedon Jul 5, 2023
I do not understand, you do not plan to tell me HOW to make it?
DanTup commentedon Jul 5, 2023
The change is in the Dart extension code. I have made that change, but you will need a new version of the Dart extension to see it.
I will publish a pre-release version later this week, and you can switch to that if you would like to get the update before the next stable release.
vammex commentedon Jul 5, 2023
oh you are the developer? I have not got it.
so please show me a screenshot with your real phone names details?
DanTup commentedon Jul 5, 2023
Yes, I'm a developer on the Dart extension.
The image from above included my test phone - the name is "Mi A2" and the ID is "33aa844". Before the change, the ID was not shown, but now it is:
I will push a pre-release version tomorrow and provide instructions so you can update and test it out.
vammex commentedon Jul 6, 2023
👍
vammex commentedon Jul 6, 2023
version 38 is out. is there smth?
DanTup commentedon Jul 6, 2023
I'm not sure what version 38 you're referring to. The current extension version is 3.68.
Anyway, I have published pre-release versions of the extensions. Please click the "Switch to Pre-Release" buttons for Dart + Flutter extensions and then click the "Reload" buttons once they have finished installing:
These include the updates, and you should be able to see the IDs in the device picker. Please let me know if this doesn't work for you.
Thanks!
vammex commentedon Jul 6, 2023
genius
right for now, it is good enough.
in future, will it be possible to set some name to devices? cannot figure out now which logic do i mean, whether vs code will remember commonly connected devices, or else to set a name every time after connecting
DanTup commentedon Jul 6, 2023
Please file a new issue requesting this. If people add 👍 s and it seems useful to many, we could consider it. Thanks!
vammex commentedon Jul 9, 2023
ok. oh i have been suffered this issue since February and I did not know I can just solve it that easy by writing an issue report )
DanTup commentedon Jul 10, 2023
It's not guaranteed everything raised gets fixed quickly, but things are definitely more likely to be addressed if they have been raised, because otherwise I might not know about the issues :-)
If you find bugs or have suggestions, please do open issues!
Include ID in device picker