Commit Graph

83 Commits

Author SHA1 Message Date
Anmol Sethi 6282cd7e7b
Simplify packaging and improve scripts
Much better test now as well.
2020-05-08 01:04:24 -04:00
Anmol Sethi bc453b5f0d
Switch to a single job to build the npm package
The architecture specific jobs pull it in and then build releases.

Much faster!
2020-05-08 00:09:24 -04:00
Anmol Sethi 0ec1c69c06
Switch fully to GH Actions 2020-05-07 23:13:28 -04:00
Anmol Sethi 1a375a44e0
Disable ARM64 releases as ARM on Travis is very unreliable 2020-05-06 20:32:11 -04:00
Anmol Sethi be032cf735
Add NPM package, debs, rpms and refactor CI/build process
Closes many issues that I'll prune after adding more docs
for users.
2020-05-06 20:25:52 -04:00
Asher 4875f6aa87
Update VS Code to fix infinite refresh
Fixes #1581.
2020-05-05 12:33:09 -05:00
Asher 81411b2af9
Fix highlighted scmviewlet items in Firefox
Fixes #1549.
2020-05-01 12:54:48 -05:00
Asher 1ff35f177d
Remove transformer file
Also remove some unused imports that were causing build errors (they
were left over from the fix that allowed installing any extension kind).
2020-04-29 12:13:44 -05:00
Asher f3edb1cc5f
Update node to latest lts (12.16.3) and update deps 2020-04-29 11:43:13 -05:00
Asher 86dc38e69f
Allow extensions of any kind
This enables vscode-icons among others.
2020-04-28 17:57:56 -05:00
Anmol Sethi 2dd27b4cb8
gitignore release-upload 2020-04-28 14:19:25 -04:00
Anmol Sethi af28885ea6
Deprecate --host and --port in favour of --bind-addr 2020-04-28 14:19:24 -04:00
Asher 6074ca275b
Fill out some missing browser environment values
Pass the user data dir to the browser environment service then derive
all the paths we can based off that path like the global storage path
which the vim extension uses to store history (otherwise it gets stored
in the working directory from when code-server was spawned).

Arguably the better solution is to use the userdata scheme but that
won't work because the vim extension ignores the VS Code API.

Fixes #1551.
2020-04-27 17:15:37 -05:00
Anmol Sethi 401f08db63
Fix code-server.sh script on macOS 2020-04-22 17:49:02 -04:00
Asher caa299b60d
Update VS Code to 1.44.2 2020-04-21 14:25:27 -05:00
Asher 27ba64c7e4
Improve request error handling
See #1532 for more context.

- Errored JSON requests will get back the error in JSON instead of using
  the status text. This seems better to me because it seems more correct
  to utilize the response body over hijacking the status text. The
  caller is expecting JSON anyway. Worst of all I never actually set the
  status text like I thought I did so it wasn't working to begin with.
- Allow the update error to propagate for JSON update requests. It was
  caught to show the error inline instead of an error page when using
  the update page but for JSON requests it meant there was no error and
  no error code so it looked like it succeeded.
- Make errors for failed requests to GitHub less incomprehensible.
  Previously they would just be the code which is no context at all.
2020-04-17 15:16:10 -05:00
Charles Moog 29b6115c77
Adds dev container and docs (#1499) 2020-04-14 17:22:52 -05:00
Asher 3b39482420
Document workspace and folder behavior
Also fixed a type issue.
2020-04-07 17:49:50 -05:00
Asher a5c35af81b
Fix encoding issues with folder and workspace params
The raw value is now passed back to VS Code so it can do the parsing
with its own URI class rather than trying to parse using Node's url
module first since that has no guarantee of working the same way. It
also lets us keep the vscode-remote bit internal to VS Code.

Removed the logic that keeps trying paths until it finds a valid one
because it seems confusing to open a path and silently get some other
path instead of an error for the one you tried to open. Now it'll just
use exactly what you specified or fail trying.

Fixes #1488. The problem here was that url.parse was encoding the spaces
then the validation failed looking for a literal %20.
2020-04-07 15:18:19 -05:00
cmoog aefef5b0e8
Send report issues to code-server repo 2020-04-06 22:23:14 +00:00
Asher 9c6581273e
Show proper error when an update fails 2020-04-02 17:20:25 -05:00
Asher 5fc00acc39
Fix incorrect reporting that an update failed 2020-04-02 14:48:15 -05:00
Asher e480f6527e
Update VS Code to 1.43.2 2020-04-01 15:27:28 -05:00
Asher 26584f2060
Strip protocol from remote authority
In Google cloud shell the host header is 127.0.0.1:8080 instead of the
actual URL. This is what we write out to the HTML so VS Code can pick it
up. However cloud shell rewrites this string when found in the HTML
before serving it so it becomes https://8080-[...].appspot.com,
resulting in an extra unexpected https:// in the
URI (vscode-remote://https://8080[...]). The resulting malformed URI
causes the extension host to exit.

- Fixes #1471
- Fixes #1468
- Fixes #1440 (most likely).
2020-04-01 13:41:05 -05:00
Michael Gallagher 12c3ccd6c7
Peg yarn version to ensure deterministic builds
"Yarn is fully deterministic as long as all your teammates are using the same Yarn version." (https://classic.yarnpkg.com/blog/2017/05/31/determinism/)
2020-03-28 14:29:04 -07:00
Asher 7954656610
Set background color using VS Code theme 2020-03-27 16:58:50 -05:00
Asher 4a65b58772
Fix arm builds 2020-03-27 12:02:56 -05:00
Asher 11fdb8854b
Skip unused dependencies 2020-03-26 15:12:17 -05:00
Asher 0a92bb1607
Fix node version mismatch 2020-03-26 13:54:41 -05:00
Asher 5bac2cbdb8
Add build test 2020-03-26 13:54:40 -05:00
Asher 511c3e95b2
Remove npm rebuild 2020-03-25 17:07:26 -05:00
Asher 89d78a5921
Encode query params from open dialog
Fixes #1424.
2020-03-16 15:19:06 -05:00
Asher 99dd2db97c
Remove open in desktop button 2020-03-16 15:14:55 -05:00
Asher db4a4f0f50
Don't ignore scripts for code-server prod yarn 2020-03-16 15:14:51 -05:00
Asher d832f61d5b
Make client-side extensions work at any base 2020-03-16 12:04:09 -05:00
Asher 88f4b986c5
Remove our env vars from the shell
This enables developing code-server in code-server.
2020-03-16 11:01:46 -05:00
Asher aeb6261189
Update VS Code to 1.43.0 2020-03-13 17:42:10 -05:00
Asher 6cb228037b
Add base path to update endpoint from VS Code
This will make it work regardless of what the current URL happens to be.

Also move the telemetry setting into the options since we might as well
make use of it seeing as how we have to parse it for the base path
anyway.
2020-03-13 16:44:56 -05:00
Asher 2342443368
Set telemetry setting based on disable-telemetry flag
By design the disable-telemetry flag does not affect extension
telemetry, only the setting does, so disabling the setting when the flag
is set should cause extensions to also stop sending telemetry.

Fixes #1116.
2020-03-13 12:36:57 -05:00
Asher 26647c54c9
Restore old folder query parameter behavior
Fixes #1351.
2020-03-11 16:06:32 -05:00
Sandro Jäckel 9b07078b47
Combine two RUNs 2020-03-07 00:06:42 +01:00
Sandro Jäckel 8433a3d081
Combine all apt-get commands to really delete the cache from all layers 2020-03-07 00:00:58 +01:00
Asher c8269fb54d
Add exec to startup script
Removes an extra process. See #1388.
2020-03-06 10:31:16 -06:00
Asher 0b9a478289
Add connection type to websocket query parameters
This allows external services to distinguish between them.
2020-03-05 15:49:37 -06:00
Asher c7e6e58387
Output newlines in CI immediately
Perhaps this is causing the output buffering issue with the arm builds.
2020-03-05 11:39:08 -06:00
Asher 8c47ba255a
Preserve current working directory
Fixes #1388.
2020-03-05 10:26:14 -06:00
Asher 4e6f6bc2cc
Fix .zip uploading to gcs as .tar.gz 2020-03-04 16:52:28 -06:00
Asher 1f43a673df
Always build extensions on CI 2020-03-04 16:07:26 -06:00
Asher 744327ffd4
Update release dockerfile to use a symlink 2020-03-04 16:02:25 -06:00
Asher a442d3e3f9
Make symlinking the entry script work 2020-03-04 15:22:32 -06:00