Skip to content

'Accept replacement' doesn't work when "rust_region_style" set to "none" #485

Open

Description

@AndrejMitrovic

Sublime Text Version

E.g Sublime Text 4 (Build 4113)

Rust Enhanced Version

v2.25.0

Operating system

OS Name Microsoft Windows 10 Pro

Expected behavior

Clicking Accept Replacement should have worked.

Actual behavior

Clicking it does nothing.

Steps to reproduce

  1. Set rust_region_style to none in preferences.
{
    "rust_region_style": "none",
}
  1. Write a simple Rust file:
mod print;

fn main() {
    println("foobar");
}
  1. Save the file.
  2. Error suggests to use ! when calling println. But clicking Accept replacement: does nothing.
  3. If rust_region_style is set to any other value, then the Accept replacement: button does work.

Activity

  1. vim-zz commented on Jan 6, 2024

    @vim-zz

    This saved me. I was baffled for a year as to why it didn't work for me... I just had to change "rust_region_style": "none" to "rust_region_style": "outline"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-suggestionsArea: diagnostic suggestions

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions