Skip to content

Commit b3830b9

Browse files
authored
Merge pull request #4 from cdr/main
update
2 parents ce4cf06 + 9fe459a commit b3830b9

53 files changed

Lines changed: 1612 additions & 1393 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.eslintrc.yaml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ extends:
1515
- plugin:import/recommended
1616
- plugin:import/typescript
1717
- plugin:prettier/recommended
18-
# Recommended by jest-playwright
19-
# https://github.com/playwright-community/jest-playwright#globals
20-
- plugin:jest-playwright/recommended
2118
# Prettier should always be last
2219
# Removes eslint rules that conflict with prettier.
2320
- prettier

‎.github/ISSUE_TEMPLATE/bug-report.md‎

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ assignees: ""
1010
1111
Hi there! 👋
1212
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.
14-
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.
13+
Thanks for reporting a bug.
14+
15+
Please search for existing issues before filing, as they may contain additional
16+
information about the problem and descriptions of workarounds. Provide as much
17+
information as you can, so that we can reproduce the issue. Otherwise, we may
18+
not be able to help diagnose the problem, and may close the issue as
19+
unreproducible or incomplete. For visual defects, please include screenshots to
20+
help us understand the issue.
1621
-->
1722

1823
## OS/Web Information
@@ -37,9 +42,29 @@ Please search for existing issues before filing, as they may contain additional
3742

3843
<!-- What actually happens? -->
3944

45+
## Logs
46+
47+
<!--
48+
First run code-server with at least debug logging (or trace to be really
49+
thorough) by setting the --log flag or the LOG_LEVEL environment variable. -vvv
50+
and --verbose are aliases for --log trace. For example:
51+
52+
code-server --log debug
53+
54+
Once this is done, replicate the issue you're having then collect logging
55+
information from the following places:
56+
57+
1. The most recent files from ~/.local/share/code-server/coder-logs.
58+
2. The browser console.
59+
3. The browser network tab.
60+
61+
Additionally, collecting core dumps (you may need to enable them first) if
62+
code-server crashes can be helpful.
63+
-->
64+
4065
## Screenshot
4166

42-
<!-- Ideally provide a screenshot, gif, video or screenrecording -->
67+
<!-- Ideally provide a screenshot, gif, video or screen recording. -->
4368

4469
## Notes
4570

‎.github/codeql-config.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: "code-server CodeQL config"
2+
3+
paths-ignore:
4+
- lib/vscode

‎.github/dependabot.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ updates:
99
# GitHub always delivers the latest versions for each major
1010
# release tag, so handle updates manually
1111
- dependency-name: "actions/*"
12+
- dependency-name: "github/codeql-action/*"
1213

1314
- package-ecosystem: "npm"
1415
directory: "/"
@@ -17,7 +18,7 @@ updates:
1718
time: "11:00"
1819
ignore:
1920
- dependency-name: "@types/node"
20-
versions: ["14.x", "13.x"]
21+
versions: ["15.x", "14.x", "13.x"]
2122
- dependency-name: "xdg-basedir"
2223
# 5.0.0 has breaking changes as they switch to named exports
2324
# and convert the module to ESM

‎.github/ranger.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ labels:
2626
extension-request:
2727
action: close
2828
delay: 5s
29-
message: >
29+
comment: >
3030
Thanks for opening an extension request!
3131
We are currently in the process of switching extension
3232
marketplaces and transitioning over to [Open VSX](https://open-vsx.org/).

‎.github/workflows/ci.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
prebuild:
1919
name: Pre-build checks
2020
runs-on: ubuntu-latest
21+
env:
22+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2123
steps:
2224
- name: Checkout repo
2325
uses: actions/checkout@v2
@@ -57,6 +59,10 @@ jobs:
5759
run: yarn test:unit
5860
if: success()
5961

62+
- name: Upload coverage report to Codecov
63+
run: yarn coverage
64+
if: success()
65+
6066
build:
6167
name: Build
6268
needs: prebuild
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Code Scanning"
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [main]
9+
schedule:
10+
# Runs every Monday morning PST
11+
- cron: "17 15 * * 1"
12+
13+
jobs:
14+
analyze:
15+
name: Analyze
16+
runs-on: ubuntu-20.04
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v2
21+
22+
# Initializes the CodeQL tools for scanning.
23+
- name: Initialize CodeQL
24+
uses: github/codeql-action/init@v1
25+
with:
26+
config-file: ./.github/codeql-config.yml
27+
languages: javascript
28+
29+
- name: Autobuild
30+
uses: github/codeql-action/autobuild@v1
31+
32+
- name: Perform CodeQL Analysis
33+
uses: github/codeql-action/analyze@v1

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# code-server &middot; [!["GitHub Discussions"](https://img.shields.io/badge/%20GitHub-%20Discussions-gray.svg?longCache=true&logo=github&colorB=purple)](https://github.com/cdr/code-server/discussions) [!["Join us on Slack"](https://img.shields.io/badge/join-us%20on%20slack-gray.svg?longCache=true&logo=slack&colorB=brightgreen)](https://cdr.co/join-community) [![Twitter Follow](https://img.shields.io/twitter/follow/CoderHQ?label=%40CoderHQ&style=social)](https://twitter.com/coderhq)
22

3-
![Lines](https://img.shields.io/badge/Coverage-51.47%25-green.svg)
3+
[![codecov](https://codecov.io/gh/cdr/code-server/branch/main/graph/badge.svg?token=5iM9farjnC)](https://codecov.io/gh/cdr/code-server)
44
[![See latest docs](https://img.shields.io/static/v1?label=Docs&message=see%20latest%20&color=blue)](https://github.com/cdr/code-server/tree/v3.9.3/docs)
55

66
Run [VS Code](https://github.com/Microsoft/vscode) on any machine anywhere and access it in the browser.

‎ci/README.md‎

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ Any file or directory in this subdirectory should be documented here.
2424
- It will upload them to the draft release.
2525
6. Run some basic sanity tests on one of the released packages.
2626
- Especially make sure the terminal works fine.
27-
7. Make sure the github release tag is the commit with the artifacts. This is a bug in
28-
`hub` where uploading assets in step 5 will break the tag.
27+
7. Make sure the github release tag is the commit with the artifacts.
2928
8. Publish the release and merge the PR.
3029
1. CI will automatically grab the artifacts and then:
3130
1. Publish the NPM package from `npm-package`.
@@ -37,20 +36,6 @@ Any file or directory in this subdirectory should be documented here.
3736
1. Install [homebrew](https://brew.sh/)
3837
2. Run `brew bump-formula-pr --version=3.8.1 code-server` and update the version accordingly. This will bump the version and open a PR. Note: this will only work once the version is published on npm.
3938

40-
## Updating Code Coverage in README
41-
42-
Currently, we run a command to manually generate the code coverage shield. Follow these steps:
43-
44-
1. Run `yarn test:unit` and make sure all the tests are passing
45-
2. Run `yarn badges`
46-
3. Go into the README and change the color from `red` to `green` in this line:
47-
48-
```
49-
![Lines](https://img.shields.io/badge/Coverage-46.71%25-red.svg)
50-
```
51-
52-
NOTE: we have to manually change the color because the default is red if coverage is less than 80. See code [here](https://github.com/olavoparno/istanbul-badges-readme/blob/develop/src/editor.ts#L24-L33).
53-
5439
## dev
5540

5641
This directory contains scripts used for the development of code-server.
@@ -106,10 +91,10 @@ You can disable minification by setting `MINIFY=`.
10691
- [./ci/build/code-server.service](./build/code-server.service)
10792
- systemd user service packaged into the `.deb` and `.rpm`.
10893
- [./ci/build/release-github-draft.sh](./build/release-github-draft.sh) (`yarn release:github-draft`)
109-
- Uses [hub](https://github.com/github/hub) to create a draft release with a template description.
94+
- Uses [gh](https://github.com/cli/cli) to create a draft release with a template description.
11095
- [./ci/build/release-github-assets.sh](./build/release-github-assets.sh) (`yarn release:github-assets`)
11196
- Downloads the release-package artifacts for the current commit from CI.
112-
- Uses [hub](https://github.com/github/hub) to upload the artifacts to the release
97+
- Uses [gh](https://github.com/cli/cli) to upload the artifacts to the release
11398
specified in `package.json`.
11499
- [./ci/build/npm-postinstall.sh](./build/npm-postinstall.sh)
115100
- Post install script for the npm package.

‎ci/build/build-vscode.sh‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ main() {
1010
cd "$(dirname "${0}")/../.."
1111
cd lib/vscode
1212

13-
yarn gulp compile-build
14-
yarn gulp compile-extensions-build
13+
yarn gulp compile-build compile-extensions-build
1514
yarn gulp optimize --gulpfile ./coder.js
1615
if [[ $MINIFY ]]; then
1716
yarn gulp minify --gulpfile ./coder.js

0 commit comments

Comments
 (0)