Commit 05da77e
Fix: Flutter SDK path in settings is not updated (#8827)
The settings page UI for the Flutter SDK path was not updating after
being changed. When a user updated the path, applied the change, and
re-opened settings, the old path would still be displayed.
This was caused by the settings page reading the SDK path from a stale
cache provided by the Dart plugin (FlutterSdk.getFlutterSdk()).
The fix is to use FlutterSdk.getIncomplete() instead, which bypasses the
cache and reads the path directly from the authoritative source: the
project's Library Table configuration. This ensures the UI always
displays the currently configured value.
Fixes: #8641
Thanks for your contribution! Please replace this text with a
description of what this PR is changing or adding and why, list any
relevant issues, and review the contribution guidelines below.
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>1 parent b522f9a commit 05da77e
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
113 | | - | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
188 | | - | |
| 189 | + | |
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| |||
312 | 313 | | |
313 | 314 | | |
314 | 315 | | |
315 | | - | |
| 316 | + | |
316 | 317 | | |
317 | 318 | | |
318 | 319 | | |
| |||
0 commit comments