mirror of
https://github.com/nushell/nushell.git
synced 2025-08-18 08:29:46 +02:00
fix(completion): dotnu_completion for nested folders/scripts (#14978)
# Description Fixes #14213 and some of #14956 <img width="314" alt="image" src="https://github.com/user-attachments/assets/e79d0882-da90-4592-8af5-7ab0c1d2f96a" /> # User-Facing Changes # Tests + Formatting # After Submitting
This commit is contained in:
@@ -668,6 +668,7 @@ impl LanguageServer {
|
||||
.map(|kind| match kind {
|
||||
SuggestionKind::Type(t) => t.to_string(),
|
||||
SuggestionKind::Command(cmd) => cmd.to_string(),
|
||||
SuggestionKind::Module => "".to_string(),
|
||||
})
|
||||
.map(|s| CompletionItemLabelDetails {
|
||||
detail: None,
|
||||
@@ -715,6 +716,7 @@ impl LanguageServer {
|
||||
nu_protocol::engine::CommandType::Builtin => Some(CompletionItemKind::FUNCTION),
|
||||
_ => None,
|
||||
},
|
||||
SuggestionKind::Module => Some(CompletionItemKind::MODULE),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user