Add unit test to ensure changing enable_language_server works

This commit is contained in:
Antonio Scandurra 2022-06-09 10:48:06 +02:00
parent 36a1a7a819
commit 69170fc33a
3 changed files with 131 additions and 5 deletions

View file

@ -9089,7 +9089,6 @@ mod tests {
#[gpui::test]
async fn test_document_format_during_save(cx: &mut gpui::TestAppContext) {
cx.foreground().forbid_parking();
cx.update(|cx| cx.set_global(Settings::test(cx)));
let mut language = Language::new(
LanguageConfig {
@ -9202,7 +9201,6 @@ mod tests {
#[gpui::test]
async fn test_range_format_during_save(cx: &mut gpui::TestAppContext) {
cx.foreground().forbid_parking();
cx.update(|cx| cx.set_global(Settings::test(cx)));
let mut language = Language::new(
LanguageConfig {
@ -9316,8 +9314,6 @@ mod tests {
#[gpui::test]
async fn test_completion(cx: &mut gpui::TestAppContext) {
cx.update(|cx| cx.set_global(Settings::test(cx)));
let mut language = Language::new(
LanguageConfig {
name: "Rust".into(),