Add a dedicated action to open files (#22625)
Closes #22531 Closes #22250 Closes #15679 Release Notes: - Add `workspace::OpenFiles` action to enable opening individual files on Linux and Windows
This commit is contained in:
parent
36301442dd
commit
bbb473b8df
8 changed files with 95 additions and 38 deletions
|
@ -1418,6 +1418,11 @@ impl AppContext {
|
|||
pub fn get_name(&self) -> &'static str {
|
||||
self.name.as_ref().unwrap()
|
||||
}
|
||||
|
||||
/// Returns `true` if the platform file picker supports selecting a mix of files and directories.
|
||||
pub fn can_select_mixed_files_and_dirs(&self) -> bool {
|
||||
self.platform.can_select_mixed_files_and_dirs()
|
||||
}
|
||||
}
|
||||
|
||||
impl Context for AppContext {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue