-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Closed
Copy link
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become availableSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
Milestone
Description
Describe the bug
Use imported library with prefix quick fix puts the prefix at the wrong position.
To Reproduce
- Create new project
- Insert
import 'dart:ffi' as ffi; - Type
@Native - Get the quickfix
Use imported library 'dart:ffi' with prefix 'ffi' - The prefix
ffi.is placed before the@, resulting in a syntax error
Expected behavior
5. Should be placed after the @
Please complete the following information:
Dart Code extension: 3.77.20231111
Flutter extension: 3.76.0 (activated)
App: Visual Studio Code
App Host: desktop
Version: linux 1.82.2
Workspace type: Dart (LSP)
Dart (3.3.0-edge.de9494ae0703ba877e967cf8c6f1083b0b3d5d60): /home/mosum/dart-sdk/sdk/out/ReleaseX64/dart-sdk
Metadata
Metadata
Assignees
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become availableSomething that requires changes in the Dart/Flutter SDK to ship before it will become available