Skip to content

fix(decorations): fix decorations.device returning always nil - #536

Merged
sidlatau merged 1 commit into
nvim-flutter:mainfrom
NorinB:fix/statusline-device-decoration
Sep 25, 2026
Merged

sidlatau merged 1 commit into
nvim-flutter:mainfrom
NorinB:fix/statusline-device-decoration

Conversation

@NorinB

@NorinB NorinB commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

I noticed, that the flutter-tools' device decoration never returned a device name.

I fixed that by adding device resolution even before the first flutter run is dispatched. In that case the device is picked, that flutter would use, if flutter run is invoked without picking a device via the -d flag. If FlutterRun, FlutterDevices or FlutterEmulators is used to run the Flutter app, the decorations value is updated with the device, that the app is actually running on.

@sidlatau
sidlatau merged commit 0049439 into nvim-flutter:main Sep 25, 2026
@sidlatau

Copy link
Copy Markdown
Collaborator

Thanks, @NorinB !

@NorinB
NorinB deleted the fix/statusline-device-decoration branch September 25, 2026 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants