Skip to content

Commit 2f4d54a

Browse files
committed
Merge branch 'patch-2' of https://github.com/arHSM/code-server into patch-2
2 parents 6172acd + c4e1fb3 commit 2f4d54a

File tree

23 files changed

+338
-325
lines changed

23 files changed

+338
-325
lines changed

.github/ISSUE_TEMPLATE/extension-request.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/ranger.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@ labels:
1919
action: comment
2020
delay: 5s
2121
message: "Thanks for making your first contribution! :slightly_smiling_face:"
22-
extension-request:
23-
action: close
24-
delay: 5s
25-
comment: >
26-
Thanks for opening an extension request!
27-
We are currently in the process of switching extension
28-
marketplaces and transitioning over to [Open VSX](https://open-vsx.org/).
29-
Once https://github.com/eclipse/openvsx/issues/249 is implemented, we
30-
can fully make this transition. Therefore, we are no longer accepting
31-
new requests for extension requests. We suggest installing the VSIX
32-
file and then installing into code-server as a temporary workaround.
33-
See [docs](https://github.com/cdr/code-server/blob/main/docs/FAQ.md#installing-vsix-extensions-via-the-command-line) for more info.
3422
"upstream:vscode":
3523
action: close
3624
delay: 5s

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ jobs:
142142
path: |
143143
vendor/modules/code-oss-dev/.build
144144
vendor/modules/code-oss-dev/out-build
145-
vendor/modules/code-oss-dev/out-vscode-server
146-
vendor/modules/code-oss-dev/out-vscode-server-min
147-
key: vscode-server-build-${{ steps.vscode-rev.outputs.rev }}
145+
vendor/modules/code-oss-dev/out-vscode-reh-web
146+
vendor/modules/code-oss-dev/out-vscode-reh-web-min
147+
key: vscode-reh-build-${{ steps.vscode-rev.outputs.rev }}
148148

149149
- name: Build vscode
150150
if: steps.cache-vscode.outputs.cache-hit != 'true'

ci/build/build-release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ EOF
6767
bundle_vscode() {
6868
mkdir -p "$VSCODE_OUT_PATH"
6969
rsync "$VSCODE_SRC_PATH/yarn.lock" "$VSCODE_OUT_PATH"
70-
rsync "$VSCODE_SRC_PATH/out-vscode-server${MINIFY:+-min}/" "$VSCODE_OUT_PATH/out"
70+
rsync "$VSCODE_SRC_PATH/out-vscode-reh-web${MINIFY:+-min}/" "$VSCODE_OUT_PATH/out"
7171

7272
rsync "$VSCODE_SRC_PATH/.build/extensions/" "$VSCODE_OUT_PATH/extensions"
7373
if [ "$KEEP_MODULES" = 0 ]; then
@@ -88,7 +88,7 @@ bundle_vscode() {
8888
cat << EOF
8989
{
9090
"enableTelemetry": true,
91-
"commit": "$(git rev-parse HEAD)",
91+
"commit": "$(cd "$VSCODE_SRC_PATH" && git rev-parse HEAD)",
9292
"quality": "stable",
9393
"date": $(jq -n 'now | todate')
9494
}

ci/build/build-vscode.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ main() {
1111

1212
cd vendor/modules/code-oss-dev
1313

14-
# extensions-ci compiles extensions and includes their media.
15-
# compile-web compiles web extensions. TODO: Unsure if used.
16-
yarn gulp extensions-ci compile-web "vscode-server${MINIFY:+-min}"
14+
# Any platform works since we have our own packaging step (for now).
15+
yarn gulp "vscode-reh-web-linux-x64${MINIFY:+-min}"
1716
}
1817

1918
main "$@"

docs/FAQ.md

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,11 @@ Service](https://cdn.vsassets.io/v/M146_20190123.39/_content/Microsoft-Visual-St
101101
> Visual Studio Products and Services.
102102

103103
Because of this, we can't offer any extensions on Microsoft's marketplace.
104-
Instead, we've created a marketplace offering open-source extensions. The
105-
marketplace works by scraping GitHub for VS Code extensions and building them.
104+
Instead, we use the [Open-VSX extension gallery](https://open-vsx.org), which is also used by various other forks.
105+
It isn't perfect, but its getting better by the day with more and more extensions.
106+
107+
We also offer our own marketplace for open source extensions, but plan to
108+
deprecate it at a future date and completely migrate to Open-VSX.
106109

107110
These are the closed-source extensions that are presently unavailable:
108111

@@ -118,15 +121,8 @@ For more about the closed source portions of VS Code, see [vscodium/vscodium](ht
118121

119122
## How can I request an extension that's missing from the marketplace?
120123

121-
We are in the process of transitioning to [Open VSX](https://open-vsx.org/).
122-
Once we've [implemented Open
123-
VSX](https://github.com/eclipse/openvsx/issues/249), we can finalize this
124-
transition. As such, we are not currently accepting new extension requests.
125-
126-
In the meantime, we suggest:
127-
128-
- [Switching to Open VSX](#how-do-i-configure-the-marketplace-url) now
129-
- Downloading and [installing the extension manually](#installing-an-extension-manually)
124+
To add an extension to Open-VSX, please see [open-vsx/publish-extensions](https://github.com/open-vsx/publish-extensions).
125+
We no longer plan to add new extensions to our legacy extension gallery.
130126

131127
## How do I install an extension?
132128

@@ -159,20 +155,19 @@ You can also download extensions using the command line. For instance,
159155
downloading from OpenVSX can be done like this:
160156

161157
```shell
162-
SERVICE_URL=https://open-vsx.org/vscode/gallery ITEM_URL=https://open-vsx.org/vscode/item code-server --install-extension <extension id>
158+
code-server --install-extension <extension id>
163159
```
164160

165161
## How do I use my own extensions marketplace?
166162

167163
If you own a marketplace that implements the VS Code Extension Gallery API, you
168-
can point code-server to it by setting `$SERVICE_URL` and `$ITEM_URL`. These correspond directly
169-
to `serviceUrl` and `itemUrl` in VS Code's `product.json`.
164+
can point code-server to it by setting `$EXTENSIONS_GALLERY`.
165+
This corresponds directly with the `extensionsGallery` entry in in VS Code's `product.json`.
170166

171-
For example, to use [open-vsx.org](https://open-vsx.org), run:
167+
For example, to use the legacy Coder extensions marketplace:
172168

173169
```bash
174-
export SERVICE_URL=https://open-vsx.org/vscode/gallery
175-
export ITEM_URL=https://open-vsx.org/vscode/item
170+
export EXTENSIONS_GALLERY='{"serviceUrl": "https://extensions.coder.com/api"}'
176171
```
177172

178173
Though you can technically use Microsoft's marketplace in this manner, we

docs/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ access it in the browser.
1414
- Preserve battery life when you're on the go; all intensive tasks run on your
1515
server
1616

17+
| 🔔 code-server is a free browser-based IDE while [Coder](https://coder.com/), is our enterprise developer workspace platform. For more information, visit [Coder.com](https://coder.com/docs/comparison)
18+
| ---
19+
1720
## Requirements
1821

1922
See [requirements](requirements.md) for minimum specs, as well as instructions

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"lint": "./ci/dev/lint.sh",
2929
"test": "echo 'Run yarn test:unit or yarn test:e2e' && exit 1",
3030
"ci": "./ci/dev/ci.sh",
31-
"watch": "VSCODE_IPC_HOOK_CLI= NODE_OPTIONS='--max_old_space_size=32384 --trace-warnings' ts-node ./ci/dev/watch.ts",
31+
"watch": "VSCODE_DEV=1 VSCODE_IPC_HOOK_CLI= NODE_OPTIONS='--max_old_space_size=32384 --trace-warnings' ts-node ./ci/dev/watch.ts",
3232
"icons": "./ci/dev/gen_icons.sh",
3333
"coverage": "codecov"
3434
},

0 commit comments

Comments
 (0)