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

Programmatically controlling code-server #7221

Answered by code-asher
kdy1 asked this question in Q&A
Discussion options

I want to control vscode programmatically, and I think code-server would be better to use than client-side vscode.

Is there a programmatic client for code-server? Or is there an alternative way like CLI?

(I searched for Programmatically, api, but had no luck)

You must be logged in to vote

It could be implemented in an extension though, I think.

Replies: 1 comment 3 replies

Comment options

Not really, you can open files and folders from a local-only API or the cli (code-server -r file) but not anything else.

You must be logged in to vote
3 replies
Comment options

It could be implemented in an extension though, I think.

Answer selected by kdy1
Comment options

I managed to achieve what I wanted using a custom extension. Thank you anyway!

Comment options

@kdy1 can you show me how you implemented this? I'm trying to do it for my students but can't get it to work yet. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /