mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
disable private editable in TEST_CONFIG by default
adjust test_visibility_filter test case
This commit is contained in:
parent
549c810436
commit
534d71a852
3 changed files with 119 additions and 31 deletions
|
@ -65,7 +65,7 @@ pub(crate) const TEST_CONFIG: CompletionConfig = CompletionConfig {
|
|||
enable_postfix_completions: true,
|
||||
enable_imports_on_the_fly: true,
|
||||
enable_self_on_the_fly: true,
|
||||
enable_private_editable: true,
|
||||
enable_private_editable: false,
|
||||
callable: Some(CallableSnippets::FillArguments),
|
||||
snippet_cap: SnippetCap::new(true),
|
||||
insert_use: InsertUseConfig {
|
||||
|
@ -86,6 +86,12 @@ pub(crate) fn completion_list_no_kw(ra_fixture: &str) -> String {
|
|||
completion_list_with_config(TEST_CONFIG, ra_fixture, false, None)
|
||||
}
|
||||
|
||||
pub(crate) fn completion_list_no_kw_with_private_editable(ra_fixture: &str) -> String {
|
||||
let mut config = TEST_CONFIG.clone();
|
||||
config.enable_private_editable = true;
|
||||
completion_list_with_config(config, ra_fixture, false, None)
|
||||
}
|
||||
|
||||
pub(crate) fn completion_list_with_trigger_character(
|
||||
ra_fixture: &str,
|
||||
trigger_character: Option<char>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue