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

Start workspaces by shelling out to CLI#400

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 6 commits intocoder:mainfromaaronlehmann:start-with-cli
Dec 6, 2024

Conversation

aaronlehmann
Copy link
Contributor

Replace the REST-API-based start flow with one that shells out to the coder CLI.

Replace the REST-API-based start flow with one that shells out to thecoder CLI.Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
Copy link
Member

@code-ashercode-asher left a comment

Choose a reason for hiding this comment

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

Thank you for putting this together! Just to test, I hard-coded--global-config and it worked great, so that is the only thing we really need to figure out.

@aaronlehmann
Copy link
ContributorAuthor

Thanks for reviewing! I'm traveling right now but will come back to this in early December.

code-asher reacted with thumbs up emoji

Copy link
Member

@code-ashercode-asher left a comment
edited
Loading

Choose a reason for hiding this comment

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

Looks and works great! The only thing is that it asked me to log in again, which I think is just because of the missingawait, the next line checked forsession but it had not been renamed yet. Subsequent runs are working wonderfully.

Comment on lines 511 to 513
await fs.stat(oldTokenPath)
const newTokenPath = this.getSessionTokenPath(label)
await fs.rename(oldTokenPath, newTokenPath)
Copy link
Member

Choose a reason for hiding this comment

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

Not a blocker at all, just wanted to mention thatstat is often an anti-pattern; becauserename can also throwENOENT and there is technically no guarantee the file still exists between thestat andrename, it is always necessary to check the error ofrename anyway, so might as well do it with one call.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Right, that makes sense. Removed thestat.

Copy link
Member

@code-ashercode-asher left a comment

Choose a reason for hiding this comment

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

Thank you! After merging I will cut a new release.

@code-ashercode-asher merged commitf4eeb36 intocoder:mainDec 6, 2024
2 checks passed
aaronlehmann added a commit to aaronlehmann/jetbrains-coder that referenced this pull requestDec 24, 2024
Replace the REST-API-based start flow with one that shells out to thecoder CLI.This is the JetBrains extension equivalent tocoder/vscode-coder#400.
code-asher pushed a commit to coder/jetbrains-coder that referenced this pull requestJan 3, 2025
Replace the REST-API-based start flow with one that shells out to thecoder CLI.This is the JetBrains extension equivalent tocoder/vscode-coder#400.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@code-ashercode-ashercode-asher approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@aaronlehmann@code-asher

[8]ページ先頭

©2009-2025 Movatter.jp