Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AndrejMitrovic opened this issue Apr 29, 2022 · 1 comment
Labels
A-suggestions Area: diagnostic suggestions

Comments

@AndrejMitrovic
Copy link

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.
@ehuss ehuss added the A-suggestions Area: diagnostic suggestions label Jun 11, 2022
@vim-zz
Copy link

vim-zz commented Jan 6, 2024

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
Labels
A-suggestions Area: diagnostic suggestions
Projects
None yet
Development

No branches or pull requests

3 participants