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

What is "install code-server" in Chrome browser?#6755

Unanswered
drmrbrewer asked this question inGeneral
Discussion options

I am running code-server in a Docker container and accessing it remotely in my Chrome browser.

In the window showing my code-server workspace, I see the following button to the right of the address bar at the top:

image

What exactly is this?

You must be logged in to vote

Replies: 2 comments 3 replies

Comment options

Oh, that's the PWA install prompt. PWAs are progressive web apps. If you install that, then code-server runs as a separate window. It still runs on Chrome, but it appears to have its own standalone app.

Another PWA example is most ChromeOS apps that are pre-installed. They open as shortcuts on the Browser, but some apps like GitHub can open in separate windows while running on Chrome, that is, when they are actually "installed"(creating a shortcut and opening a separate window for that tab)

Basically this makes it look as though you installed code-server as an app, like VS Code. But still, it runs on Chrome. Youcan try it, but if you don't like that, you can use it on the browser as you would.

You must be logged in to vote
2 replies
@code-asher
Comment options

Yup, and to add to this, in our case nothing is actually installed/downloaded beyond the default browser caching; so it operates the same as usual, just in a separate window without a URL bar.

One good reason to use the PWA instead of a regular browser window is that keyboard shortcuts will work properly.https://github.com/coder/code-server/blob/main/docs/FAQ.md#how-do-i-make-my-keyboard-shortcuts-work

And, it can be useful on mobile/tablet devices since it lets you put an icon on the home screen.

@drmrbrewer
Comment options

Well I never. It does work really nicely as a PWA. Thanks@im-coder-lg and@code-asher :-)

Comment options

it'd be great ifchrome.sockets.tcpServer was used to bind local ports for forwarding them to the instance that runs code-server. this way, the user would be able to use - for example -http://localhost:3000/ instead ofhttps://code-server.example.com/proxy/3000/ to live view the app they're developing.

You must be logged in to vote
1 reply
@barhun
Comment options

why did i write about this here? 'causetcpServer can't be made use of on a webpage, it has to be used inside a web app installed via chrome.

this app was the inspiration for me that made me think, maybe, the same functionality could help the contributors of code-server make this possible.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
4 participants
@drmrbrewer@barhun@code-asher@im-coder-lg

[8]ページ先頭

©2009-2025 Movatter.jp