Danny Tuppeny
Danny Tuppeny
Fixed by https://github.com/dart-lang/sdk/commit/8a62f4ac1ae2d63017c4ebf8436000f99205f6df, but ships in an SDK release.
Oops, I missed some of the extra things noted above, I need to check if the fix covered them too.
@incendial do you have a complete code sample to trigger the bad preview on the named constructor of an extension type? I can reproduce the issue for unnamed constructors: ...
Perfect - thanks! I didn't realise we could put the name there like that 😄
With my [new fix](https://dart-review.googlesource.com/c/sdk/+/354900), that shows up too:  The issue is basically the "primary constructor" of an extension type, which has a small "codeRange". My change expands this to...
Fixe dby https://github.com/dart-lang/sdk/commit/c22f054a40e01a5ef4ffc2272d449c6010ffbbed. The change is in the Dart SDK so will ship in a future SDK release (rather than a Dart-Code release).
> not sure if anyone has a workspace folder with non-workspace projects inside or something I also don't know how common this is, but if it was supported (for ex....
I recently enabled using the VS Code test runner (which goes through `dart test`) in the SDK which now sometimes triggers this issue. ``` PathAccessException: Cannot rename file to '..\..\.dart_tool/pub\bin\test\test.dart-3.8.0-edge.82282b6287104d125e82172199a8d6b070102354.snapshot',...
> `"suggestion": "Run `pub upgrade foo`" ` It might be good if we could structure this in a way that the server can provide it as a Code Action rather...
As a workaround for this in Dart-Code (since a fix hitting stable is going to be at least a quarter away and the prompts are annoying), I'm going to `touch`...