SSH remote ui (#15129)
Still TODO: * [x] hide this UI unless you have some ssh projects in settings * [x] add the "open folder" flow with the new open picker * [ ] integrate with recent projects / workspace restoration Release Notes: - N/A
This commit is contained in:
parent
be86852f95
commit
3e31955b7f
23 changed files with 1162 additions and 436 deletions
|
@ -104,6 +104,14 @@ pub struct PathLikeWithPosition<P> {
|
|||
}
|
||||
|
||||
impl<P> PathLikeWithPosition<P> {
|
||||
/// Returns a PathLikeWithPosition from a path.
|
||||
pub fn from_path(path: P) -> Self {
|
||||
Self {
|
||||
path_like: path,
|
||||
row: None,
|
||||
column: None,
|
||||
}
|
||||
}
|
||||
/// Parses a string that possibly has `:row:column` suffix.
|
||||
/// Ignores trailing `:`s, so `test.rs:22:` is parsed as `test.rs:22`.
|
||||
/// If any of the row/column component parsing fails, the whole string is then parsed as a path like.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue