Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: validate ssh properties before launching workspaces#96

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
kylecarbs merged 1 commit intomainfromsshoption
May 4, 2023

Conversation

@kylecarbs
Copy link
Member

This was reported by a member in Discord, and displayed a poor error by VS Code when it failed before.

Users cannot override our config options otherwise connections may fail or have unexpected behavior.

@kylecarbskylecarbs requested a review frommafredriMay 4, 2023 17:17
@kylecarbskylecarbs self-assigned thisMay 4, 2023
Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

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

Looks good, we should probably handle the= case for config options, but LGTM otherwise! 👍🏻

src/remote.ts Outdated
{
useCustom:true,
modal:true,
detail:`Your SSH config is overriding the "${key}=${computedProperties[key]}" option for the "${hostName}" host. Please remove it and try again!`,
Copy link
Member

Choose a reason for hiding this comment

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

We could add "overriding the key=correct with key=wrong ..." to help trace the issue?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Good point!

if(line===""){
return
}
const[key, ...valueParts]=line.split(/\s+/)
Copy link
Member

Choose a reason for hiding this comment

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

Separator could be= or space.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Ahh, great point! I'll add a test case.

@kylecarbs
Copy link
MemberAuthor

@mafredri
image

mafredri reacted with heart emoji

This was reported by a member in Discord, and displayed a poor error by VS Codewhen it failed before.Users cannot override our config options otherwise connectionsmay fail or have unexpected behavior.
@kylecarbskylecarbs merged commit4c37680 intomainMay 4, 2023
@kylecarbskylecarbs deleted the sshoption branchMay 4, 2023 17:41
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@mafredrimafredrimafredri approved these changes

Assignees

@kylecarbskylecarbs

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@kylecarbs@mafredri

[8]ページ先頭

©2009-2025 Movatter.jp