Commit Graph

71 Commits

Author SHA1 Message Date
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
Asher
308a84e6ec
Fix centos image for arm64 2020-03-04 13:12:03 -06:00
Asher
32f8f481b6
Use Centos 7 for building
This will bring the libc requirements back down.
2020-03-03 16:19:51 -06:00
Asher
ee4b939efa
Fix zip step for Darwin 2020-03-03 15:07:58 -06:00
Asher
538e8d8085
Store gcs key in Travis settings
Instead of encrypted in the repository.
2020-03-03 15:06:36 -06:00
Asher
8d934be6dc
Elaborate what won't work over an insecure domain
Closes #997.
2020-03-03 13:10:32 -06:00
Asher
77af2a5b0e
Fix worker require paths when behind proxy 2020-03-02 18:04:27 -06:00
Asher
ecac0dd751
Handle unexpected string errors
Looks like sometimes VS Code throws strings. For example if ifconfig is
missing.
2020-03-02 17:22:23 -06:00
Asher
ccd01c49b9
Integrate update notifications into VS Code 2020-03-02 15:01:24 -06:00
Asher
069c5230cd
Move VS Code to the root 2020-03-02 12:55:34 -06:00
Asher
88cab27165
Compress when sending client-side extension tars 2020-02-28 14:25:28 -06:00
Asher
963ebaca5b
Register a service worker
To make installing as a PWA possible. Fixes #1181.
2020-02-27 16:37:00 -06:00
Asher
75ca5b2b0b
Add gcs upload to CI 2020-02-26 14:25:14 -06:00