Skip to content

Use imported library with prefix quick fix puts the prefix at the wrong position #4836

@mosuem

Description

@mosuem

Describe the bug
Use imported library with prefix quick fix puts the prefix at the wrong position.

To Reproduce

  1. Create new project
  2. Insert import 'dart:ffi' as ffi;
  3. Type @Native
  4. Get the quickfix Use imported library 'dart:ffi' with prefix 'ffi'
  5. 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

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/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 available

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions