Skip to content

Commit 071c8e1

Browse files
authored
Merge branch 'main' into jsjoeio/upgrade-vscode-1.54
2 parents 36714da + 6892b0b commit 071c8e1

31 files changed

+232
-390
lines changed

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,43 @@ assignees: ""
77
---
88

99
<!--
10-
Please see https://github.com/cdr/code-server/blob/master/docs/FAQ.md#how-do-i-debug-issues-with-code-server
11-
and include any logging information relevant to the issue.
1210
13-
Please search for existing issues before filing.
11+
Hi there! 👋
1412
15-
If you can reproduce the issue on vanilla VS Code,
16-
please file the issue at the VS Code repository instead.
13+
Thanks for reporting a bug. Please see https://github.com/cdr/code-server/blob/main/docs/FAQ.md#how-do-i-debug-issues-with-code-server and include any logging information relevant to the issue.
1714
18-
Provide screenshots if applicable.
19-
20-
Please fill in the issue template and try to be as detailed
21-
and clear as possible!
15+
Please search for existing issues before filing, as they may contain additional information about the problem and descriptions of workarounds. Provide as much information as you can, so that we can reproduce the issue. Otherwise, we may not be able to help diagnose the problem, and may close the issue as unreproducible or incomplete. For visual defects, please include screenshots to help us understand the issue.
2216
-->
2317

18+
## OS/Web Information
19+
2420
- Web Browser:
2521
- Local OS:
2622
- Remote OS:
2723
- Remote Architecture:
2824
- `code-server --version`:
25+
26+
## Steps to Reproduce
27+
28+
1.
29+
2.
30+
3.
31+
32+
## Expected
33+
34+
<!-- What should happen? -->
35+
36+
## Actual
37+
38+
<!-- What actually happens? -->
39+
40+
## Screenshot
41+
42+
<!-- Ideally provide a screenshot, gif, video or screenrecording -->
43+
44+
## Notes
45+
46+
<!-- If you can reproduce the issue on vanilla VS Code,
47+
please file the issue at the VS Code repository instead. -->
48+
49+
This issue can be reproduced in VS Code: Yes/No

.github/dependabot.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ updates:
55
schedule:
66
interval: "daily"
77
time: "11:00"
8-
assignees:
9-
- "jawnsy"
10-
reviewers:
11-
- "jawnsy"
128
ignore:
139
# GitHub always delivers the latest versions for each major
1410
# release tag, so handle updates manually
@@ -19,7 +15,3 @@ updates:
1915
schedule:
2016
interval: "daily"
2117
time: "11:00"
22-
assignees:
23-
- "jawnsy"
24-
reviewers:
25-
- "jawnsy"

.github/ranger.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Configuration for the repo ranger bot
2+
# See docs: https://www.notion.so/Documentation-8d7627bb1f3c42b7b1820e8d6f157a57#9879d1374fab4d1f9c607c230fd5123d
3+
default:
4+
close:
5+
# Default time to wait before closing the label. Can either be a number in milliseconds
6+
# or a string specified by the `ms` package (https://www.npmjs.com/package/ms)
7+
delay: "3 days"
8+
9+
# Default comment to post when an issue is first marked with a closing label
10+
comment: "⚠️ This issue has been marked $LABEL and will be closed in $DELAY."
11+
12+
labels:
13+
duplicate: close
14+
wontfix: close
15+
"squash when passing": merge
16+
"rebase when passing": merge
17+
"merge when passing": merge
18+
stale:
19+
action: close
20+
delay: 7 days
21+
comment: "⚠️ This issue has been marked stale and will automatically be closed in $DELAY."
22+
"new contributor":
23+
action: comment
24+
delay: 5s
25+
message: "Thanks for making your first contribution! :slightly_smiling_face:"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Consider running code-server with the beta flag `--link` if you don't want to wo
5757

5858
```bash
5959
$ code-server --link
60-
Proxying code-server to Coder Cloud, you can access your IDE at https://valmar-jon.cdr.co
60+
Proxying code-server, you can access your IDE at https://valmar-jon.cdr.co
6161
```
6262

6363
## FAQ

ci/build/build-packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ release_gcp() {
4040
# Generates deb and rpm packages.
4141
release_nfpm() {
4242
local nfpm_config
43-
nfpm_config="$(envsubst < ./ci/build/nfpm.yaml)"
43+
nfpm_config="$(envsubst <./ci/build/nfpm.yaml)"
4444

4545
# The underscores are convention for .deb.
4646
nfpm pkg -f <(echo "$nfpm_config") --target "release-packages/code-server_${VERSION}_$ARCH.deb"

ci/build/build-release.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ bundle_code_server() {
4949

5050
# Adds the commit to package.json
5151
jq --slurp '.[0] * .[1]' package.json <(
52-
cat << EOF
52+
cat <<EOF
5353
{
5454
"commit": "$(git rev-parse HEAD)",
5555
"scripts": {
5656
"postinstall": "./postinstall.sh"
5757
}
5858
}
5959
EOF
60-
) > "$RELEASE_PATH/package.json"
60+
) >"$RELEASE_PATH/package.json"
6161
rsync yarn.lock "$RELEASE_PATH"
6262
rsync ci/build/npm-postinstall.sh "$RELEASE_PATH/postinstall.sh"
6363

@@ -89,18 +89,18 @@ bundle_vscode() {
8989

9090
# Adds the commit and date to product.json
9191
jq --slurp '.[0] * .[1]' "$VSCODE_SRC_PATH/product.json" <(
92-
cat << EOF
92+
cat <<EOF
9393
{
9494
"commit": "$(git rev-parse HEAD)",
9595
"date": $(jq -n 'now | todate')
9696
}
9797
EOF
98-
) > "$VSCODE_OUT_PATH/product.json"
98+
) >"$VSCODE_OUT_PATH/product.json"
9999

100100
# We remove the scripts field so that later on we can run
101101
# yarn to fetch node_modules if necessary without build scripts running.
102102
# We cannot use --no-scripts because we still want dependent package scripts to run.
103-
jq 'del(.scripts)' < "$VSCODE_SRC_PATH/package.json" > "$VSCODE_OUT_PATH/package.json"
103+
jq 'del(.scripts)' <"$VSCODE_SRC_PATH/package.json" >"$VSCODE_OUT_PATH/package.json"
104104

105105
pushd "$VSCODE_OUT_PATH"
106106
symlink_asar

ci/build/build-standalone-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ main() {
1212
# we use the same version it's using so we instead run a script with yarn that
1313
# will print the path to node.
1414
local node_path
15-
node_path="$(yarn -s node <<< 'console.info(process.execPath)')"
15+
node_path="$(yarn -s node <<<'console.info(process.execPath)')"
1616

1717
mkdir -p "$RELEASE_PATH/bin"
1818
rsync ./ci/build/code-server.sh "$RELEASE_PATH/bin/code-server"

ci/build/code-server.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ _realpath() {
1111
cd "$(dirname "$script")"
1212

1313
while [ -L "$(basename "$script")" ]; do
14-
if [ -L "./node" ] && [ -L "./code-server" ] &&
15-
[ -f "package.json" ] &&
16-
cat package.json | grep -q '^ "name": "code-server",$'; then
14+
if [ -L "./node" ] && [ -L "./code-server" ] \
15+
&& [ -f "package.json" ] \
16+
&& cat package.json | grep -q '^ "name": "code-server",$'; then
1717
echo "***** Please use the script in bin/code-server instead!" >&2
1818
echo "***** This script will soon be removed!" >&2
1919
echo "***** See the release notes at https://github.com/cdr/code-server/releases/tag/v3.4.0" >&2

ci/build/release-github-draft.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ main() {
1010
hub release create \
1111
--file - \
1212
-t "$(git rev-parse HEAD)" \
13-
--draft "v$VERSION" << EOF
13+
--draft "v$VERSION" <<EOF
1414
v$VERSION
1515
1616
VS Code v$(vscode_version)

ci/dev/fmt.sh

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ set -euo pipefail
44
main() {
55
cd "$(dirname "$0")/../.."
66

7-
shfmt -i 2 -w -sr $(git ls-files "*.sh" | grep -v "lib/vscode")
8-
97
local prettierExts
108
prettierExts=(
119
"*.js"
@@ -18,18 +16,19 @@ main() {
1816
"*.toml"
1917
"*.yaml"
2018
"*.yml"
19+
"*.sh"
2120
)
2221
prettier --write --loglevel=warn $(
2322
git ls-files "${prettierExts[@]}" | grep -v "lib/vscode" | grep -v 'helm-chart'
2423
)
2524

26-
doctoc --title '# FAQ' docs/FAQ.md > /dev/null
27-
doctoc --title '# Setup Guide' docs/guide.md > /dev/null
28-
doctoc --title '# Install' docs/install.md > /dev/null
29-
doctoc --title '# npm Install Requirements' docs/npm.md > /dev/null
30-
doctoc --title '# Contributing' docs/CONTRIBUTING.md > /dev/null
31-
doctoc --title '# Contributor Covenant Code of Conduct' docs/CODE_OF_CONDUCT.md > /dev/null
32-
doctoc --title '# iPad' docs/ipad.md > /dev/null
25+
doctoc --title '# FAQ' docs/FAQ.md >/dev/null
26+
doctoc --title '# Setup Guide' docs/guide.md >/dev/null
27+
doctoc --title '# Install' docs/install.md >/dev/null
28+
doctoc --title '# npm Install Requirements' docs/npm.md >/dev/null
29+
doctoc --title '# Contributing' docs/CONTRIBUTING.md >/dev/null
30+
doctoc --title '# Contributor Covenant Code of Conduct' docs/CODE_OF_CONDUCT.md >/dev/null
31+
doctoc --title '# iPad' docs/ipad.md >/dev/null
3332

3433
if [[ ${CI-} && $(git ls-files --other --modified --exclude-standard) ]]; then
3534
echo "Files need generation or are formatted incorrectly:"

0 commit comments

Comments
 (0)