Archived
1
0
Commit Graph

561 Commits

Author SHA1 Message Date
Asher
c581bca29d
Force minimist update 2020-07-29 18:48:08 -05:00
Asher
554b6d6fcf
Remove apply portion of update endpoint
It can still be used to check for updates but will not apply them.

For now also remove the update check loop in VS Code since it's
currently unused (update check is hardcoded off right now) and won't
work anyway since it also applies the update which now won't work. In
the future we should integrate the check into the browser update
service.
2020-07-29 18:48:02 -05:00
Asher
2819fd51e2
Remove unused endpoints
- dashboard
- app api
2020-07-27 12:00:42 -05:00
Anmol Sethi
638ab7c557
Fix CI 2020-07-22 18:31:24 -04:00
Asher
de8e9804ad
Update to VS Code 1.47.2 2020-07-21 13:16:44 -05:00
Asher
81d25dd048
Add missing bootstrap-node.js to final build
Fixes #1884.
2020-07-21 11:31:27 -05:00
Asher
641b36be6a
Update VS Code to 1.47.0 2020-07-09 17:04:11 -05:00
Asher
a06522f254
Update VS Code to 1.46.1 2020-07-07 17:01:23 -05:00
Asher
ebef18d626
Fix connections sticking around indefinitely
For some reason it only affects the extension host socket (something to
do with passing it via IPC?) but I changed both just to be sure.

Fixes #1795.
2020-06-30 16:41:47 -05:00
Asher
1b7d4b5a18
Initialize config and use correct settings path
Fixes #1829.
2020-06-24 11:40:17 -05:00
Anmol Sethi
609c7ef4ec
Fix bad $PATH when building MacOS
The previous release mistakenly distributed the wrong version
of node...

Very sad.

See https://github.com/cdr/code-server/issues/1710#issuecomment-646472716
2020-06-22 00:57:40 -04:00
Anmol Sethi
022a2e0860
Merge branch 'docs' 2020-06-04 16:47:36 -04:00
Anmol Sethi
bd2e55dcf3
Make README more clear 2020-06-04 16:47:27 -04:00
Anmol Sethi
48f7c27248
v3.4.1 2020-06-04 06:24:24 -04:00
Anmol Sethi
4cf81d88a7
Always create globalStorageHome
Closes #1693
2020-06-04 05:33:27 -04:00
Anmol Sethi
c00f931500
Remove zip library dependency 2020-06-03 18:24:59 -04:00
Anmol Sethi
fd5c5960c2
Fixes for release 2020-06-03 16:22:59 -04:00
Anmol Sethi
ab081cd522
Add warning when using outdated code-server script 2020-06-03 15:45:17 -04:00
Anmol Sethi
e2789608b2
Fix autoupdates for Darwin 2020-06-03 15:45:17 -04:00
Anmol Sethi
cb9c5b2d49
Fix typos 2020-06-03 15:45:16 -04:00
Anmol Sethi
d4ef7c1412
Remove colons from image filenames 2020-06-03 15:45:16 -04:00
Anmol Sethi
5815b4a0c0
Rename dev/container -> dev/image 2020-06-03 15:45:16 -04:00
Anmol Sethi
bdb670e852
Rename container and release-container to images and release-image 2020-06-03 15:45:16 -04:00
Anmol Sethi
11d7932968
Stop bundling libraries in release
- Instead we now use CentOS 7 for the static build to guarantee
  that we only depend on libc v2.17

- For macOS we now pull in a static node binary and bundle that instead.
2020-06-03 15:45:16 -04:00
Anmol Sethi
02a77b528b
Support recursive symlinks in release script
See
https://github.com/cdr/code-server/issues/1746#issuecomment-637830396
2020-06-03 15:45:16 -04:00
Anmol Sethi
7ab47b3d83
Trim LD_LIBRARY_PATH on startup 2020-06-03 15:45:16 -04:00
Anmol Sethi
c7cad402b4
Cleanup FAQ
Prominently explain how code-server is different from VS Code

Closes #1718
2020-05-27 21:39:19 -04:00
Anmol Sethi
90caca3336
Minor fixes 2020-05-27 20:38:29 -04:00
Anmol Sethi
69ad52907e
v3.4.0 2020-05-27 19:21:15 -04:00
Anmol Sethi
f71d8875d0
Rename binary release to standalone 2020-05-27 16:39:17 -04:00
Anmol Sethi
fa45fd0e31
Rename static releases to binary releases
More clear as discussed in PR.
2020-05-27 15:57:18 -04:00
Anmol Sethi
665ca017a1
Fixes from @code-asher's godly review 2020-05-27 15:48:22 -04:00
Anmol Sethi
33bca2d141
Adjust nfpm config for bindir removal
See https://github.com/goreleaser/nfpm/pull/142#issuecomment-634427333
2020-05-27 15:48:22 -04:00
Anmol Sethi
7ef82d8422
Improved install.sh flags 2020-05-27 15:48:22 -04:00
Anmol Sethi
7dcfde7329
Documentation fixes 2020-05-27 15:48:22 -04:00
Anmol Sethi
e55d3e49e1
Bundle in libicu on macOS
Closes #1710

Also reported in #1640
2020-05-27 15:48:22 -04:00
Anmol Sethi
ac9b57c07e
Properly bundle in libstdc++ 2020-05-27 15:48:22 -04:00
Anmol Sethi
e0172d0953
Minor fixes for install.sh and bundle in libstdc++
Closes #1706
2020-05-27 15:48:22 -04:00
Anmol Sethi
510d84898c
install.sh: Add our own flag parser
Fully supports long opts!
2020-05-27 15:48:22 -04:00
Anmol Sethi
3b11733bd8
Add auto install script 2020-05-27 15:48:22 -04:00
Anmol Sethi
521ac7d91f
Merge pull request #1697 from cdr/aur-docs
Update AUR docs
2020-05-20 11:45:57 -04:00
Anmol Sethi
3ddf242c65
Make automatic updates on v3.2.0 work again
Only for linux amd64 users which is the majority of our userbase.
2020-05-20 10:37:31 -04:00
Anmol Sethi
0d207f4f9a
Update AUR docs
Closes #1634
2020-05-20 09:21:22 -04:00
Sandro Jäckel
5ec8a6efbd
Fix typos 2020-05-19 12:19:09 +02:00
Anmol Sethi
aa87270148
Fixes for CI 2020-05-18 22:43:31 -04:00
Anmol Sethi
6f1309795e
Rebuild all node_modules on npm install
Stuff like ripgrep needs to be refetched so we cannot bundle
node_modules at all.
2020-05-18 21:37:16 -04:00
Anmol Sethi
ce9d14d55e
Pin to vscode 1.45.1
1.46 isn't released yet and has bugs.

Closes #1667
2020-05-18 17:34:22 -04:00
Asher
f7f11ad6c2
Fix paths from Windows client to non-Windows server
Fixes #1659
Fixes #1642
2020-05-18 15:06:11 -05:00
Anmol Sethi
e4ddffd0e2
Workaround for GH Actions stripping permissions
Closes #1665
2020-05-18 13:56:53 -04:00
Anmol Sethi
47d50c9163
Downgrade CI to Debian 8 for glibc 2.19
Closes #1656
2020-05-18 00:38:55 -04:00
Anmol Sethi
b9f43c3542
Fix grammar in FAQ 2020-05-17 20:29:00 -04:00
Anmol Sethi
ec1c74c146
Add release-images to clean.sh 2020-05-17 19:52:59 -04:00
Anmol Sethi
3a1e3bc596
Final revisions for the docs before release
🚀
2020-05-17 17:55:28 -04:00
Anmol Sethi
e0dbd8f74a
Rename self contained release to static release 2020-05-17 16:59:09 -04:00
Anmol Sethi
6a25b3bfa0
Document structure better
Closes #1648
2020-05-17 16:53:08 -04:00
Anmol Sethi
aee2599904
Push docker manifest in CI for multi arch image 2020-05-16 16:59:26 -04:00
Anmol Sethi
d56381666a
Use .tar.gz for macOS releases
No good reason to use .zip, was just confusion on my part.
2020-05-16 10:01:26 -04:00
Anmol Sethi
89c5a4dfea
Set --frozen-lockfile with yarn when necessary 2020-05-14 22:33:12 -04:00
Anmol Sethi
d4b3d21dce
Require minimum node 12 2020-05-14 22:33:12 -04:00
Anmol Sethi
40778b15ca
Add code-server version into VS Code about
Closes #1506
2020-05-14 22:33:12 -04:00
Anmol Sethi
10b06cae10
Minor typo fixes 2020-05-14 20:08:08 -04:00
Anmol Sethi
0bd2602774
3.3.0 2020-05-14 18:43:01 -04:00
Anmol Sethi
f475767c2b
Rename darwin releases to macos 2020-05-14 05:59:20 -04:00
Anmol Sethi
a0a77e379e
Add doc/guide.md 2020-05-14 05:24:23 -04:00
Anmol Sethi
f4a78587b0
Make npm-postinstall.sh more robust 2020-05-13 22:44:43 -04:00
Anmol Sethi
b3ae4d67d3
Hide bundled node_modules to prevent them from being ignored 2020-05-13 04:17:34 -04:00
Anmol Sethi
1739b21600
Bundle VS Code node_modules to avoid yarn dependency
Many random bizarre issues otherwise.

Also includes misc improvements to docs and scripts.
2020-05-13 02:35:11 -04:00
Anmol Sethi
502c262c82
Mention update of versions in README install examples 2020-05-12 21:26:37 -04:00
Anmol Sethi
4aae5eaeca
CI fixes
- Splits up test into fmt, lint and test
- Fixes bug in build-packages.sh
- Minor README.md fixes
2020-05-12 21:26:36 -04:00
Anmol Sethi
41d625abb6
Revamp README.md with new installation options 2020-05-12 21:26:36 -04:00
Anmol Sethi
dc632ac176
Remove .yarnrc from lib/vscode 2020-05-13 01:11:53 +00:00
Anmol Sethi
524b0205e9
Workaround for GH Actions ruining file permissions 2020-05-12 19:59:55 -04:00
Anmol Sethi
28edf4af2e
Add systemd user service to .deb and .rpm 2020-05-12 19:59:54 -04:00
Asher
95ac0ddfb7
Fix paths for Windows
- Fix vscode-remote-resource, #1397.
- Fix double slash on webview, was causing images not to load.
- Fix client-side tar paths.
2020-05-12 13:49:37 -05:00
Anmol Sethi
169f8c67fe
Automate draft release 2020-05-11 20:59:56 -04:00
Anmol Sethi
7c7f62d3f3
Fixes for CI from @code-asher's review 2020-05-08 16:45:59 -04:00
Anmol Sethi
231e31656a
Automate release process 2020-05-08 03:26:19 -04:00
Anmol Sethi
e9fe4c0466
Document release process 2020-05-08 01:43:31 -04:00
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
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
Anmol Sethi
b1760c8d29
Fix clean.sh 2020-02-25 21:30:58 -05:00
Asher
c870398c86
Switch to loose files
For #1306.
2020-02-25 18:23:35 -06:00
Asher
f76c809f7d
Fix workspace storage creation
Fixes #1308.
2020-02-25 12:47:22 -06:00
Anmol Sethi
815dc06118
Use npm rebuild instead of yarn --no-scripts in vscode.sh 2020-02-20 19:11:01 -05:00
Anmol Sethi
3a2644a2bc
Fix vscode.sh 2020-02-20 18:36:38 -05:00
Asher
288e794c99
Update locale file location
Should make language packs work again.
2020-02-20 12:52:23 -06:00
Asher
e5b68a8f4c
Switch to new extensions API 2020-02-19 14:36:48 -06:00
Asher
51a5c77cb8
Add binary extraction
I temporarily removed this during the refactor so it needed to be added
back. This time I bundled it with the nbin loader code since it's all
related (will also make it easier to remove).
2020-02-19 14:15:01 -06:00
Anmol Sethi
9f3240346c
Doc fixes 2020-02-19 00:27:02 -05:00
Anmol Sethi
a065c12e83
CI Fixes 2020-02-18 23:31:40 -05:00
Anmol Sethi
76831f11fc
Merge branch 'fix-ci' into restructure 2020-02-18 19:07:34 -05:00
Anmol Sethi
5681c87e33
Fix bugs in CI 2020-02-18 19:06:35 -05:00
Asher
46d6e17508
Prepare for release
- Add VS Code icon
- Trim dashboard to just display dedicated VS Code section
- Version was getting unset during build
- Add back nbin shim which I temporarily took out earlier
- Update tests for log level env var changes
2020-02-18 17:31:23 -06:00
Anmol Sethi
1aaa53622d
Pass through travis tag in run.sh 2020-02-18 16:34:28 -05:00
Asher
f6b092b12d
Merge branch 'restructure' 2020-02-18 13:30:37 -06:00
Anmol Sethi
1a91588c42
Add docker image pushing 2020-02-18 13:28:13 -05:00
Anmol Sethi
eb3cf303ad
Add back travis since github actions is trash 2020-02-18 11:32:57 -05:00
Anmol Sethi
0d31a51eeb
Add github release creation 2020-02-15 16:20:41 -05:00
Anmol Sethi
61d1af0413
Add macOS release step 2020-02-14 21:16:23 -05:00
Anmol Sethi
4aa15401c3
Format and lint 2020-02-14 20:00:19 -05:00
Anmol Sethi
80b1b1b672
Shake CI and docs up 2020-02-14 19:46:17 -05:00