Commit Graph

217 Commits

Author SHA1 Message Date
Asher
da7d8b04a8
Update VS Code 2019-09-03 17:24:14 -05:00
Asher
12bc26b6b4
Implement status bar API 2019-09-03 16:38:53 -05:00
Asher
976a326f47
Update nbin 2019-08-30 17:45:11 -05:00
Asher
b901043bfc
Target a recent commit for VS Code
This is so we can try out the web worker extension host.
2019-08-29 19:11:11 -05:00
Asher
d33b2d2af9
Fix web view sometimes not loading correctly
Fixes #929.
2019-08-27 14:03:27 -05:00
Asher
830ccfe245
Fix toggling and hiding the menu bar 2019-08-23 14:54:39 -05:00
Asher
c4fd725875
Fix built-in Typescript when bundled
Fixes #641.
2019-08-22 16:30:22 -05:00
Asher
4800ec6392
Fix playground when behind a proxy with a sub-path
It gets the web URL for the file yet uses the file service to load it,
so having a sub-path causes it not to be found on disk (the sub-path
obviously only means anything for the web server and isn't on disk).
2019-08-22 12:15:23 -05:00
Asher
3e2d12a224
Fix scrolling on Firefox 2019-08-22 11:33:58 -05:00
Asher
950dad9489
Simplify getting the absolute path during build 2019-08-21 14:13:26 -05:00
Asher
c19223b7fe
Fix error when building without first running yarn 2019-08-21 12:45:10 -05:00
Asher
80050d0d9d
Detect target automatically
This removes the potential for a bad build because the native Node
modules currently can only be built on the target system, so specifying
a target for something other than the system your are building on will
not work.
2019-08-21 12:45:09 -05:00
Asher
c2be0ec71b
Fix Firefox when using extensions that insert styles 2019-08-21 10:29:37 -05:00
Asher
ccc4f87ada
Don't package for release if we don't need to 2019-08-20 19:46:39 -05:00
Asher
534600c1ff
Don't error when scanning nonexistent extension dir 2019-08-20 19:16:44 -05:00
Asher
b9fc40409a
Forward minify environment variable to Docker build 2019-08-19 17:17:38 -05:00
Asher
e53d6bce68
Forward GitHub token to docker build if it exists 2019-08-19 17:02:02 -05:00
Asher
ce3b7dfb1e
Use readlink -f if realpath isn't available 2019-08-19 16:59:36 -05:00
Asher
b4e1a62cb4
Fix tasks
Fixes #898.
2019-08-16 15:06:59 -05:00
Asher
6737384d27
Handle existing query when opening folder 2019-08-15 17:28:02 -05:00
Asher
d1662d7658
Ensure service workers are supported before use
Fixes #909.
2019-08-15 15:41:04 -05:00
Asher
72fe124e30
Fix loading resources in webviews
Fixes #901.
2019-08-15 15:40:02 -05:00
Asher
07ec4ca63e
Fix PHP syntax highlighting 2019-08-14 16:20:17 -05:00
Asher
83f86a45b6
Load language bundles on the client 2019-08-14 10:25:31 -05:00
Asher
c11d5fe9e6
Fix error when passing empty extra extension dir flag 2019-08-12 14:27:11 -05:00
Asher
5539519691
Remove extra slash when opening folder 2019-08-12 11:36:47 -05:00
Asher
b566b66590
Fix service worker scope when there is a base path 2019-08-12 11:24:05 -05:00
Asher
7389d9e2cb
Use current URL for webview 2019-08-12 10:23:08 -05:00
Asher
1d61cbe536
Make release directory 2019-08-09 19:27:30 -05:00
Asher
ba7285192c
Update VS Code to 1.37.0 2019-08-09 19:23:41 -05:00
Asher
b257c60636
Fix websocket defaulting to port 80 when authority has no port 2019-08-08 11:59:07 -05:00
Asher
f5a6f14ade
Implement update service 2019-08-07 16:18:17 -05:00
Asher
01a9ab332e
Set commit based on code-server instead of VS Code
This ensures it'll be different for each build, otherwise it would also
be the same as long as the VS Code version is the same.
2019-08-07 15:13:39 -05:00
Asher
7e794bd134
Fix favicon not being included in final build 2019-08-05 13:34:32 -05:00
Asher
dc333d4321
Fix extensions not being bundled into prebuilt 2019-08-05 13:05:09 -05:00
Asher
590f699687
Allow specifying the target
You still must build on the target system though because of the native
Node modules.
2019-08-05 11:03:47 -05:00
Asher
950bfce420
Add commit, date, and checksums to product.json 2019-08-02 20:29:48 -05:00
Asher
712274d912
Groundwork for language support
- Implement the localization service.
- Use the proper build process which generates the require JSON files.
- Implement getting the locale and language configuration.
2019-08-02 19:29:00 -05:00
Asher
62719ab544
Clean up client API
- Don't use "any" for the API type.
- Remove everything from the Coder API that can eventually be done
  through the VS Code API.
- Move the event emission to our own client to minimize patching.
2019-07-31 17:22:15 -05:00
Asher
0315b004a7
Add comment for the nbin shim 2019-07-31 17:22:14 -05:00
Asher
87be3ac235
Add comment explaining use of merge 2019-07-31 17:22:11 -05:00
Asher
8ded89e8d4
Firefox fixes 2019-07-26 17:33:26 -05:00
Asher
4c4a179bce
TLS socket still doesn't work 2019-07-26 17:26:45 -05:00
Asher
a4f21fb0d4
Install git during build 2019-07-24 11:23:00 -05:00
Asher
329acbb251
Combine main and webview servers 2019-07-23 19:22:10 -05:00
Asher
92daabc75c
Open folder at base URL 2019-07-23 14:55:48 -05:00
Asher
068e07bd5d
Clean up the patch 2019-07-23 13:27:30 -05:00
Asher
09cd1e8540
Make sub-paths work 2019-07-22 18:01:03 -05:00
Asher
9fdfacb314
Quality check 2019-07-19 17:43:54 -05:00
Asher
e8cb6ffaa0
Implement file uploads 2019-07-19 15:45:12 -05:00
Asher
2be452d83e
Fix rg extraction in Docker build 2019-07-18 18:09:24 -05:00
Asher
45d348b03d
Expose API on the client 2019-07-18 18:09:22 -05:00
Asher
4b0cceb91a
Extract ripgrep when inside binary 2019-07-18 18:09:21 -05:00
Asher
b6fdb7d0e7
Telemetry 2019-07-18 18:09:20 -05:00
Asher
83819cb3f9
Fix vscode-ripgrep rebuild error 2019-07-18 18:09:18 -05:00
Asher
9446cc8245
Update Dockerfile 2019-07-18 18:09:15 -05:00
Asher
68c62087dc
Fix opening snippets 2019-07-18 18:09:14 -05:00
Asher
e22791ec88
Fix interactive playground 2019-07-18 18:09:12 -05:00
Asher
286f9a8978
Implement multiple extension directories 2019-07-18 18:09:12 -05:00
Asher
2b2aa9a211
Add https server 2019-07-18 18:09:09 -05:00
Asher
81862d4fa1
Add back (most of) our old arguments
Also remove VS Code ones that don't work.
2019-07-18 18:08:38 -05:00
Asher
2fdf09e6e7
Include version when building 2019-07-18 18:08:37 -05:00
Asher
54ffd1d351
Make extension sidebar work 2019-07-18 18:08:36 -05:00
Asher
a20fa4a97a
Implement extensions channel 2019-07-18 18:08:32 -05:00
Asher
f51751ad21
Replace jq with some JavaScript 2019-07-18 18:08:31 -05:00
Asher
3ca90a5f89
Use nbin in forked processes 2019-07-18 18:08:30 -05:00
Asher
f8f4bfd76f
Customize JSON files with code-server name 2019-07-18 18:08:28 -05:00
Asher
5677ff2edf
Add build scripts 2019-07-18 18:08:27 -05:00
Asher
310bfe509e
Delete all the things 2019-07-18 18:08:11 -05:00
Dean Sheather
72d71664b3
Merge pull request #823 from FrankPetrilli/patch-1
Add `use-credentials` to fetch manifest with cookies
2019-07-10 09:46:17 +00:00
Dean Sheather
79e08c74ed
Merge pull request #834 from cdr/fix-sw-path
Fix service worker path
2019-07-08 22:36:27 +00:00
Dean Sheather
9b5a43e4bd
use local workbox to simplify csp
Co-Authored-By: Ian Reinhart Geiser <geiseri@geekcentral.pub>
2019-07-07 15:13:16 +10:00
Frank Petrilli
11784e55b2
Change quote style to match existing work 2019-07-01 14:10:32 -07:00
Frank Petrilli
a72e8a698d
Add use-credentials to fetch manifest with cookies
I run code-server behind an authenticating Kubernetes Ingress which sets a cookie after a successful login is performed. Since this cookie is not set when fetching the manifest, the fetch fails and gets redirected to the authentication page, breaking code-server completely.

See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link
2019-07-01 14:05:35 -07:00
Anmol Sethi
02f62882b8 Propagate full env to browser (#756)
* Propogate full env to browser

* Add support for setting $ITEM_URL

* Add serviceURL getter
2019-06-11 11:54:49 -05:00
Asher
04adf14146
Move OSX package task into build script
This is to match how the other binaries are built. Also made some
changes to make the Docker containers clean up for when you are running
this locally.
2019-06-06 13:43:37 -05:00
Asher
db39eacfa1
Set NODE_ENV and VERSION when building (#700)
* Set NODE_ENV and VERSION when building

Should fix the version flag not reporting correctly as well as enable
the service worker and prevent the 404 hmr requests again.

* Log env vars

To help make sure it's built correctly when looking at the Travis logs.
2019-05-20 11:02:36 -05:00
Asher
c020cd2f2c
Don't try to create builtin extensions directory
Since this will be a path in the binary that we don't want to create on
the user's system. I also removed the option to override it; it doesn't
seem like a great idea since you'd always want those builtin extensions.
This way we also don't have to check if the option was passed and only
create it if that was the case.
2019-05-19 19:49:05 -05:00
Asher
81bbfa7fbe
Suppress "disconnected" notification on extension host
This isn't a real error event; we artificially emit it just in case
something waiting to start is listening to the error event in order to
clean up and/or restart.
2019-05-19 19:21:25 -05:00
Asher
aa1474b675
Extra extensions directories (#694)
* Allow setting paths for builtin exts and extra dirs

The extra directories aren't used yet, just available from the
environment service and to the shared process.

* Utilize extra builtin extensions path

* Utilize extra extensions directory

* Fix cached mtimes for extra extension dirs

* Simplify extension cache equality check
2019-05-19 17:58:47 -05:00
Kyle Carberry
a2e0638c6a
Add support for musl and centos 2019-04-26 09:56:14 -04:00
Asher
0de7247868
Fix protocol fs test 2019-04-24 18:15:56 -05:00
John McCambridge
30b8565e2d Fix markdown preview focus (#546)
* Fix hash

* Remove whitespace
2019-04-23 19:14:52 -05:00
Kyle Carberry
b055a26dc3
Remove log statement from copy 2019-04-23 11:33:42 -04:00
Kyle Carberry
2bc6e1a457
Fix clipboard pasting 2019-04-22 20:20:48 -04:00
Kyle Carberry
166efcb17e Hide titlebar controls and fix menubar toggle (#550) 2019-04-19 19:54:50 -05:00
Kyle Carberry
206e107a9a
Merge branch 'master' of github.com:codercom/code-server 2019-04-19 20:03:54 -04:00
Kyle Carberry
12c8b5d337
Closes #466 2019-04-19 20:03:52 -04:00
Asher
4aa20fd864
Fix require.toUrl on the Node side
- Fixes #542
2019-04-19 13:32:10 -05:00
Asher
309d15cefd
Use file/folder open commands for all operating systems
Mac was using its own thing.

- Fixes #535
- Fixes #501
2019-04-18 10:50:23 -05:00
Kyle Carberry
4d576ab4d4
Trigger configuration update when loaded 2019-04-17 21:01:23 -04:00
Asher
cc8c7e2cee Make assets unique (#518)
* Make all assets unique

All CSS and JavaScript files have unique names now. I also moved the
login to the /login path in order to ensure the HTML for each page is
also unique.

* Explicitly include assets to cache
2019-04-17 17:18:20 -05:00
Asher
630ccfcacc Add flag to install an extension from the command line (#504) 2019-04-17 16:30:50 -05:00
Luca Casonato
e907dbe7e6 fixe password signin with service-worker (#511) 2019-04-17 10:27:24 -05:00
Luca Casonato
22b485acd9 Added serviceworker and web-manifest (#154)
* Added serviceworker and manifest.json

* added deps in package.json

* fixed image link

* actually fixed images i think

* added assets to individual module folders

* added caching

* Serviceworker now properly loads

* Changed single to double quotes

* Update lock

* moved the service worker back into prod only

* removed sw from general

* changed background color of splash screen

* added logo to server

* centralized logo into single assets folder
2019-04-16 15:44:57 -05:00
Asher
b8f222acf2
Ensure all environment paths are created
This normally happens in electron-main/main.ts but we don't run anything
from there.

Fixes #499.
2019-04-16 10:58:13 -05:00
Asher
aabb2ecda7
Update node to 10.15.1 (#472)
* Update Node to 10.15.1

* Remove string replace that was used for oclif

* Update nbin

* Package node-pty and spdlog with nbin

* Label stderr/stdout from shared process

* Remove fork override

* Prevent "already disposed" errors when trying to kill disposed proxies

* Include spdlog dependencies

* Shim /node_modules

* Add node_modules to Docker ignore

It keeps using my already-built .node files which results in a
mismatching GLIBC version error.

* Update nbin
2019-04-15 19:48:12 -05:00
Asher
742dd6f597
Upgrade VS Code to 1.33.1 2019-04-12 16:10:45 -05:00
majik
4b217fba00 Feature/relative url (#307)
* resrouce relative url

* add url pathname for require.toUrl (fix webview url)

* rest resrouce relative url

* fix resource url

* ignore .vscode
2019-04-10 20:07:53 -05:00
Asher
6361635b55
Move backup service init to the shared process
Since this is where it attempts to read it, this should solve the JSON
errors for good.
2019-04-08 11:03:33 -05:00