Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node Explorer: accept subdirectories of ~ for root directory #230

Merged
merged 2 commits into from
Sep 21, 2023

Conversation

tendstofortytwo
Copy link
Contributor

Fixes #200.

Signed-off-by: Naman Sood <mail@nsood.in>
Copy link
Contributor

@tylersmalley tylersmalley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this resolves the issue of displaying the directory, but results in new files/folders not being able to be created.

I think you can resolve this by expanding the tilde after we capture homeDir with this.fsProvider.getHomeDirectory. SFTP doesn't work with a tilde, so we have to expand it when we create the root of the tree and use that going forward.

Signed-off-by: Naman Sood <mail@nsood.in>
Copy link
Contributor

@tylersmalley tylersmalley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! - tested

@tendstofortytwo tendstofortytwo merged commit 51b4042 into main Sep 21, 2023
2 checks passed
@tendstofortytwo tendstofortytwo deleted the naman/tilde-expansion-root-directory branch September 21, 2023 15:27
tylersmalley pushed a commit that referenced this pull request Sep 28, 2023
Fixes #200.

---------

Signed-off-by: Naman Sood <mail@nsood.in>
tylersmalley added a commit that referenced this pull request Sep 28, 2023
```
% git log --pretty=oneline v0.6.2..release-branch/v0.6
(HEAD -> release-branch/v0.6) chore(deps): update dependency @vscode/vsce to ^2.21.0 (#223)
chore(deps): update dependency @types/vscode-webview to ^1.57.2 (#218)
chore(deps): update dependency concurrently to ^8.2.1 (#219)
chore(deps): update dependency lint-staged to ^13.3.0 (#196)
tsrelay: update for 1.50 (#239)
Node Explorer: prompt to add nodes to SSH config file for VSCode remotes list (#233)
Node Explorer: accept subdirectories of ~ for root directory (#230)
File Explorer: add configuration option to hide dotfiles (#221)
package.json: Remove from testing category (#226)
chore(deps): update dependency swr to ^2.2.2 (#195)
chore(deps): update dependency @types/react to ^18.2.21 (#194)
chore(deps): update eslint (#137)
package.json: Updates the description (#215)
README.md: Use lowercase "internet" (#216)
```

---------

Signed-off-by: Tyler Smalley <tyler@tailscale.com>
Co-authored-by: Naman Sood <mail@nsood.in>
tylersmalley added a commit that referenced this pull request Sep 28, 2023
```
% git log --pretty=oneline v0.6.2..release-branch/v0.6
(HEAD -> release-branch/v0.6) chore(deps): update dependency @vscode/vsce to ^2.21.0 (#223)
chore(deps): update dependency @types/vscode-webview to ^1.57.2 (#218)
chore(deps): update dependency concurrently to ^8.2.1 (#219)
chore(deps): update dependency lint-staged to ^13.3.0 (#196)
tsrelay: update for 1.50 (#239)
Node Explorer: prompt to add nodes to SSH config file for VSCode remotes list (#233)
Node Explorer: accept subdirectories of ~ for root directory (#230)
File Explorer: add configuration option to hide dotfiles (#221)
package.json: Remove from testing category (#226)
chore(deps): update dependency swr to ^2.2.2 (#195)
chore(deps): update dependency @types/react to ^18.2.21 (#194)
chore(deps): update eslint (#137)
package.json: Updates the description (#215)
README.md: Use lowercase "internet" (#216)
```

---------

Signed-off-by: Tyler Smalley <tyler@tailscale.com>
Co-authored-by: Naman Sood <mail@nsood.in>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Node Explorer: ~ not expanded in "Change root directory" dialog
2 participants