-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work ondevexp-refactoringIssues with analysis server refactoringsIssues with analysis server refactoringslegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.
Description
I am not sure if this is specific to VSCode, I'd imagine it's an LSP/Analysis server thing.
Workspace Environment
Dart Code extension: 3.86.0
App: Visual Studio Code
App Host: desktop
Version: mac 1.88.1
Workspace type: Dart (LSP)
Dart (3.3.1): /opt/homebrew/Caskroom/flutter/3.19.3/flutter/bin/cache/dart-sdk
Flutter (3.19.3): /opt/homebrew/Caskroom/flutter/3.19.3/flutter (No device)
extension type Foo(int v) {
Foo.bar() : this(0);
Foo get baz => Foo(0);
}Imagine I want to rename this from Foo to Bar, so I right-click Foo and hit "rename symbol".
It works sometimes, but not other times - here is what I see:
-
✅ Right-click
Fooinextension type Foo(int v) { ... }: -
❌ Select
Foofirst, and then right-click/rename:Note that
foois selected, unlike in (1) where I've highlighted/selected nothing:vis accidentally selected as what I intended to rename, instead ofFoo: -
❌ Right-click
FooinFoo.bar() : this(0):baris accidentally selected as what I intended to rename, instead ofFoo:
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work ondevexp-refactoringIssues with analysis server refactoringsIssues with analysis server refactoringslegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.




