You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/CONTRIBUTING.md
+19-7
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@
9
9
-[Development workflow](#development-workflow)
10
10
-[Updates to VS Code](#updates-to-vs-code)
11
11
-[Build](#build)
12
+
-[Help](#help)
12
13
-[Test](#test)
13
14
-[Unit tests](#unit-tests)
14
15
-[Script tests](#script-tests)
@@ -77,16 +78,23 @@ we'll guide you.
77
78
78
79
## Development workflow
79
80
80
-
```shell
81
-
yarn
82
-
yarn watch
83
-
# Visit http://localhost:8080 once the build is completed.
84
-
```
81
+
The current development workflow is a bit tricky because we have this repo and we use our `cdr/vscode` fork inside it with [`yarn link`](https://classic.yarnpkg.com/lang/en/docs/cli/link/).
82
+
83
+
Here are these steps you should follow to get your dev environment setup:
85
84
86
-
`yarn watch` will live reload changes to the source.
3.`cd vscode && git checkout code-server-v2` - checkout the branch we use (not the default)
88
+
4.`cd vscode && yarn install` - install the dependencies in the `vscode` repo
89
+
5.`cd code-server && yarn install` - install the dependencies in the `code-server` repo
90
+
6.`cd vscode && yarn link` - use `yarn` to create a symlink to the `vscode` repo (`code-oss-dev` package)
91
+
7.`cd code-server && yarn link code-oss-dev --modules-folder vendor/modules` - links your local `vscode` repo (`code-oss-dev` package) inside your local version of code-server
92
+
8.`cd code-server && yarn watch` - this will spin up code-server on localhost:8080 which you can start developing. It will live reload changes to the source.
87
93
88
94
### Updates to VS Code
89
95
96
+
If changes are made and merged into `code-server-v2` in the `cdr/vscode` repo, then you'll need to update the version in the `code-server` repo by following these steps:
97
+
90
98
1. Update the package tag listed in `vendor/package.json`:
91
99
92
100
```json
@@ -97,7 +105,7 @@ yarn watch
97
105
}
98
106
```
99
107
100
-
2. From the code-server **project root**, run `yarn install`.
108
+
1. From the code-server **project root**, run `yarn install`.
101
109
Then, test code-server locally to make sure everything works.
102
110
1. Check the Node.js version that's used by Electron (which is shipped with VS
103
111
Code. If necessary, update your version of Node.js to match.
@@ -139,6 +147,10 @@ yarn package
139
147
> If you need your builds to support older distros, run the build commands
140
148
> inside a Docker container with all the build requirements installed.
141
149
150
+
### Help
151
+
152
+
If you get stuck or need help, you can always start a new GitHub Discussion [here](https://github.com/cdr/code-server/discussions). One of the maintainers will respond and help you out.
0 commit comments