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

Add the ability to disable autostart#366

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
code-asher merged 3 commits intomainfromasher/disable-autostart
Feb 23, 2024

Conversation

code-asher
Copy link
Member

@code-ashercode-asher commentedFeb 23, 2024
edited
Loading

On macOS this is checked by default for 2.5.0 and above.

Closes#365

screenshot

github-actions[bot] reacted with thumbs up emoji
@github-actionsGitHub Actions
Copy link
Contributor

github-actionsbot commentedFeb 23, 2024
edited
Loading

Qodana Community for JVM

47 new problems were found

Inspection nameSeverityProblems
Unused symbol🔶 Warning26
Unstable API Usage🔶 Warning8
Incorrect string capitalization🔶 Warning7
Redundant qualifier name🔶 Warning2
Call to 'equals()' or 'hashCode()' on 'URL' object🔶 Warning2
Redundant semicolon🔶 Warning1
Redundant empty primary constructor◽️ Notice1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

  1. Register atQodana Cloud andconfigure the action
  2. UseGitHub Code Scanning with Qodana
  3. HostQodana report at GitHub Pages
  4. Inspect and useqodana.sarif.json (seethe Qodana SARIF format for details)

To get*.log files or any other Qodana artifacts, run the action withupload-result option set totrue,
so that the action will upload the files as the job artifacts:

      -name:'Qodana Scan'uses:JetBrains/qodana-action@v2023.3.0with:upload-result:true
Contact Qodana team

Contact us atqodana-support@jetbrains.com

On macOS this is checked by default for 2.5.0 and above.
Copy link
Member

@johnstcnjohnstcn left a comment

Choose a reason for hiding this comment

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

Some suggestions, but LGTM apart from that.

Comment on lines 205 to 206
funconfigSsh(workspaceNames:List<String>,version:SemVer? = tryVersion()) {
writeSSHConfig(modifySSHConfig(readSSHConfig(), workspaceNames, version))
Copy link
Member

Choose a reason for hiding this comment

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

Suggestion: refactor toconfigSsh(options: configSSHOptions) where options consists of

  workspaceNames: List<String>  disableAutostart: boolean

This allows you to then simplify the logic in line 235 to

if (opts.disable-autostart) "--disable-autostart" else null

and move the version checking logic outside ofmodifySSHConfig()

Copy link
MemberAuthor

@code-ashercode-asherFeb 23, 2024
edited
Loading

Choose a reason for hiding this comment

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

I was thinking of something like this! But then it felt weird because sometimes we would use the settings (for header command) and sometimes not (for disable autostart). Maybe asupports orfeatures object that has keys for what features are supported then I havesettings.disableAutostart && supports.disableAutostart.

Copy link
Member

Choose a reason for hiding this comment

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

Gotcha, that would definitely make things more confusing. Not a blocker for me in any case.

@code-ashercode-asherforce-pushed theasher/disable-autostart branch 2 times, most recently from38816fb to373329bCompareFebruary 23, 2024 18:54
@code-ashercode-asher merged commit23ebb16 intomainFeb 23, 2024
@code-ashercode-asher deleted the asher/disable-autostart branchFebruary 23, 2024 19:33
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

Assignees

@code-ashercode-asher

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Optionally disable autostart
2 participants
@code-asher@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp