diff --git a/CHANGELOG.md b/CHANGELOG.md index f4b628cfc36..a87cda8a8a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,10 @@ when there are breaking changes. ### Configuration ### Editors - - Fixed an issue where the VSCode extension duplicates text when using VSCode git utilities [#4338] + + - Fix an issue where the VSCode extension duplicates text when using VSCode git utilities [#4338] + - Remove code assists from being added to the code actions when apply fixes; + - ### Formatter - Fix an issue where formatting of JSX string literals property values were using incorrect quotes [#4054](https://github.com/rome/tools/issues/4054) diff --git a/crates/rome_lsp/tests/server.rs b/crates/rome_lsp/tests/server.rs index 09fc60be8fc..5fae4ee1d7d 100644 --- a/crates/rome_lsp/tests/server.rs +++ b/crates/rome_lsp/tests/server.rs @@ -928,7 +928,7 @@ async fn pull_refactors() -> Result<()> { ], ); - let expected_action = lsp::CodeActionOrCommand::CodeAction(lsp::CodeAction { + let _expected_action = lsp::CodeActionOrCommand::CodeAction(lsp::CodeAction { title: String::from("Inline variable"), kind: Some(lsp::CodeActionKind::new( "refactor.inline.rome.correctness.inlineVariable", @@ -945,7 +945,7 @@ async fn pull_refactors() -> Result<()> { data: None, }); - assert_eq!(res, vec![expected_action]); + assert_eq!(res, vec![]); server.close_document().await?; diff --git a/crates/rome_service/src/file_handlers/javascript.rs b/crates/rome_service/src/file_handlers/javascript.rs index 8d03c3a815d..bbe9117680a 100644 --- a/crates/rome_service/src/file_handlers/javascript.rs +++ b/crates/rome_service/src/file_handlers/javascript.rs @@ -343,7 +343,7 @@ fn code_actions( _ => AnalysisFilter::default(), }; - filter.categories = RuleCategories::default(); + filter.categories = RuleCategories::SYNTAX | RuleCategories::LINT; filter.range = Some(range); let analyzer_options = compute_analyzer_options(&settings, PathBuf::from(path.as_path()));