Skip to content
This repository was archived by the owner on Jul 25, 2022. It is now read-only.
This repository was archived by the owner on Jul 25, 2022. It is now read-only.

Completions don't (always) delete their prefix #79

Open
@Jasper-M

Description

@Jasper-M

ide-scala version: 0.9.0
metals version: 0.5.2
scala versions: 2.11.12, 2.12.8
operating systems: OSX, Windows

Steps to reproduce

  1. open a metals project
  2. create file src/main/scala/Foo.scala
  3. type
class Foo {
  java.time.Loc
}
  1. a popup has automatically appeared by now suggesting LocalDate, LocalTime, LocalDateTime, Clock.
  2. select LocalDateTime with arrows keys and accept
  3. text changes to
class Foo {
  java.time.LocLocalDateTime
}

If you now undo and retry the completion the Loc prefix gets deleted. If you select the completion with the cursor the Loc prefix gets deleted. If in the above scenario you select Clock the Loc prefix gets deleted.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions