Skip to content

Commit 022a2e0

Browse files
committedJun 4, 2020
Merge branch 'docs'
2 parents d3773c1 + bd2e55d commit 022a2e0

File tree

6 files changed

+36
-13
lines changed

6 files changed

+36
-13
lines changed
 

‎README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Run [VS Code](https://github.com/Microsoft/vscode) on any machine anywhere and a
1818

1919
For a full setup and walkthrough, please see [./doc/guide.md](./doc/guide.md).
2020

21+
### Quick Install
22+
2123
We have a [script](./install.sh) to install code-server for Linux and macOS.
2224

2325
It tries to use the system package manager if possible.
@@ -36,14 +38,10 @@ curl -fsSL https://code-server.dev/install.sh | sh
3638

3739
The install script will print out how to run and start using code-server.
3840

39-
If you believe an install script used with `curl | sh` is insecure, please give
40-
[this wonderful blogpost](https://sandstorm.io/news/2015-09-24-is-curl-bash-insecure-pgp-verified-install) by
41-
[sandstorm.io](https://sandstorm.io) a read.
41+
### Manual Install
4242

4343
Docs on the install script, manual installation and docker image are at [./doc/install.md](./doc/install.md).
4444

45-
We also highly recommend reading the [FAQ](./doc/FAQ.md) on the [Differences compared to VS Code](./doc/FAQ.md#differences-compared-to-vs-code).
46-
4745
## FAQ
4846

4947
See [./doc/FAQ.md](./doc/FAQ.md).

‎ci/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ Make sure you have `$GITHUB_TOKEN` set and [hub](https://github.com/github/hub)
2222
the updated version.
2323
1. Summarize the major changes in the release notes and link to the relevant issues.
2424
4. Wait for the artifacts in step 2 to build.
25-
5. Run `yarn release:github-assets` to download the `release-packages` artifact and then
25+
5. Run `yarn release:github-assets` to download the `release-packages` artifact and
2626
upload them to the draft release.
2727
6. Run some basic sanity tests on one of the released packages.
28-
7. Make sure the github release tag is the commit with the artifacts.
28+
7. Make sure the github release tag is the commit with the artifacts. This is a bug in
29+
`hub` where uploading assets in step 5 will break the tag.
2930
8. Publish the release and merge the PR.
3031
1. CI will automatically grab the artifacts and then:
3132
1. Publish the NPM package from `npm-package`.

‎ci/build/release-github-assets.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ main() {
1111
source ./ci/lib.sh
1212

1313
download_artifact release-packages ./release-packages
14-
local assets=(./release-packages/code-server*"$VERSION"*{.tar.gz,.deb,.rpm})
14+
local assets=(./release-packages/code-server*"$VERSION"*{.tar.gz,.zip,.deb,.rpm})
1515
for i in "${!assets[@]}"; do
1616
assets[$i]="--attach=${assets[$i]}"
1717
done

‎doc/FAQ.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- [How can I reuse my VS Code configuration?](#how-can-i-reuse-my-vs-code-configuration)
77
- [Differences compared to VS Code?](#differences-compared-to-vs-code)
88
- [How can I request a missing extension?](#how-can-i-request-a-missing-extension)
9+
- [How do I configure the marketplace URL?](#how-do-i-configure-the-marketplace-url)
910
- [Where are extensions stored?](#where-are-extensions-stored)
1011
- [How is this different from VS Code Codespaces?](#how-is-this-different-from-vs-code-codespaces)
1112
- [How should I expose code-server to the internet?](#how-should-i-expose-code-server-to-the-internet)
@@ -22,6 +23,7 @@
2223
- [Blank screen on iPad?](#blank-screen-on-ipad)
2324
- [Isn't an install script piped into sh insecure?](#isnt-an-install-script-piped-into-sh-insecure)
2425
- [How do I make my keyboard shortcuts work?](#how-do-i-make-my-keyboard-shortcuts-work)
26+
- [Differences compared to Theia?](#differences-compared-to-theia)
2527
- [Enterprise](#enterprise)
2628

2729
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
@@ -78,8 +80,15 @@ point to the .vsix file.
7880

7981
See below for installing an extension from the cli.
8082

81-
If you have your own custom marketplace, it is possible to point code-server to it by setting
82-
`$SERVICE_URL` and `$ITEM_URL` to point to it.
83+
## How do I configure the marketplace URL?
84+
85+
If you have your own marketplace that implements the VS Code Extension Gallery API, it is possible to
86+
point code-server to it by setting `$SERVICE_URL` and `$ITEM_URL`. These correspond directly
87+
to `serviceUrl` and `itemUrl` in VS Code's `product.json`.
88+
89+
While you can technically use Microsoft's marketplace with these, please do not do so as it
90+
is against their terms of use. See [above](#differences-compared-to-vs-code). These variables
91+
are most valuable to our enterprise customers for whom we have a self hosted marketplace product.
8392

8493
## Where are extensions stored?
8594

@@ -272,6 +281,19 @@ This will install a Chrome PWA and now all keybindings will work!
272281

273282
For other browsers you'll have to remap keybindings unfortunately.
274283

284+
## Differences compared to Theia?
285+
286+
[Theia](https://github.com/eclipse-theia/theia) is a browser IDE loosely based on VS Code. It uses the same
287+
text editor library named [Monaco](https://github.com/Microsoft/monaco-editor) and the same
288+
extension API but everything else is very different. It also uses [open-vsx.org](https://open-vsx.org)
289+
for extensions which has an order of magnitude less extensions than our marketplace.
290+
See [#1473](https://github.com/cdr/code-server/issues/1473).
291+
292+
You can't just use your VS Code config in Theia like you can with code-server.
293+
294+
To summarize, code-server is a patched fork of VS Code to run in the browser whereas
295+
Theia takes some parts of VS Code but is an entirely different editor.
296+
275297
## Enterprise
276298

277299
Visit [our enterprise page](https://coder.com) for more information about our

‎doc/guide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Further docs are at:
2525
- [FAQ](./FAQ.md) for common questions.
2626
- [CONTRIBUTING](../doc/CONTRIBUTING.md) for development docs
2727

28+
We highly recommend reading the [FAQ](./doc/FAQ.md) on the [Differences compared to VS Code](./doc/FAQ.md#differences-compared-to-vs-code) before beginning.
29+
2830
We'll walk you through acquiring a remote machine to run `code-server` on
2931
and then exposing `code-server` so you can securely access it.
3032

‎doc/install.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
- [install.sh](#installsh)
66
- [Flags](#flags)
7-
- [Detect Reference](#detect-reference)
7+
- [Detection Reference](#detection-reference)
88
- [Debian, Ubuntu](#debian-ubuntu)
99
- [Fedora, CentOS, RHEL, SUSE](#fedora-centos-rhel-suse)
1010
- [Arch Linux](#arch-linux)
@@ -42,7 +42,7 @@ If you believe an install script used with `curl | sh` is insecure, please give
4242
[this wonderful blogpost](https://sandstorm.io/news/2015-09-24-is-curl-bash-insecure-pgp-verified-install) by
4343
[sandstorm.io](https://sandstorm.io) a read.
4444

45-
If you'd still prefer manual installation despite the below [detect reference](#detect-reference) and `--dry-run`
45+
If you'd still prefer manual installation despite the below [detection reference](#detection-reference) and `--dry-run`
4646
then continue on for docs on manual installation. The [`install.sh`](../install.sh) script runs the _exact_ same
4747
commands presented in the rest of this document.
4848

@@ -56,7 +56,7 @@ commands presented in the rest of this document.
5656
- `--version=X.X.X` to install version `X.X.X` instead of latest.
5757
- `--help` to see full usage docs.
5858

59-
### Detect Reference
59+
### Detection Reference
6060

6161
- For Debian, Ubuntu and Raspbian it will install the latest deb package.
6262
- For Fedora, CentOS, RHEL and openSUSE it will install the latest rpm package.

0 commit comments

Comments
 (0)
Please sign in to comment.