Asher
58bd7008b4
Make dispose async
2020-07-29 18:48:04 -05:00
Asher
e8f6d30055
Make providers endpoint-agnostic
...
A provider can now be registered on multiple endpoints (or potentially
moved if needed).
2020-07-27 12:00:48 -05:00
Anmol Sethi
00d164b67f
Add default config file and improve config/data directory detection
2020-05-12 19:59:54 -04: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
Asher
28e91ba70c
Fix domain issues when setting the cookie
...
Fixes #1507 .
2020-04-13 16:14:40 -05:00
Asher
a288351ad4
Respond when proxy errors
...
Otherwise the request will just hang.
2020-04-08 11:54:18 -05:00
Asher
a5d1d3b90e
Move proxy logic into main HTTP server
...
This makes the code much more internally consistent (providers just
return payloads, include the proxy provider).
2020-04-02 13:40:29 -05:00
Asher
411c61fb02
Create helper for determining if route is the root
2020-04-02 13:40:26 -05:00
Asher
e7e7b0ffb7
Fix redirects through subpath proxy
2020-04-02 13:40:25 -05:00
Asher
c0dd29c591
Fix domains with ports & localhost subdomains
2020-04-02 13:40:20 -05:00
Asher
8aa5675ba2
Implement the actual proxy
2020-04-02 13:40:19 -05:00
Asher
2086648c87
Only handle exact domain matches
...
This simplifies the logic a bit.
2020-04-02 13:40:18 -05:00
Asher
3a98d856a5
Handle authentication with proxy
...
The cookie will be set for the proxy domain so it'll work for all of its
subdomains.
2020-04-02 13:40:17 -05:00
Asher
90fd1f7dd1
Add proxy provider
...
It'll be able to handle /proxy requests as well as subdomains.
2020-04-02 13:40:16 -05:00
Asher
77ad73d579
Set domain on cookie
...
This allows it to be used in subdomains.
2020-04-02 13:40:15 -05:00
Asher
13534fa0c0
Add proxy-domain flag
...
This will be used for proxying ports.
2020-04-02 13:40:14 -05:00
Will O'Beirne
3463d56114
SSH server & endpoint
2020-03-16 15:14:53 -05:00
Asher
d192726e80
Simplify dashboard
2020-03-16 15:14:50 -05:00
Asher
d832f61d5b
Make client-side extensions work at any base
2020-03-16 12:04:09 -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
253cf1c438
Remove unnecessary return types
2020-03-11 16:06:32 -05:00
Asher
e0e019fbd5
Fix mime type for compressed client-side extensions
...
In Firefox using the gzip mime type will (probably correctly) cause it
not to decompress while in Chromium it still will (incorrectly).
2020-03-02 18:24:35 -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
21cfeb9da0
Add the ability to kill running VS Code instance
2020-02-27 12:04:23 -06:00
Asher
4c6e4bedeb
Fix port being randomized
...
Also make it a number.
2020-02-24 16:49:10 -06:00
Anmol Sethi
bd7583a254
Obey process.env.PORT
2020-02-21 14:49:58 -05:00
Asher
319cd3f7ab
Make updating work for both binary and loose releases
2020-02-20 18:48:16 -06:00
Asher
c567a06ff5
Fix HTTPS redirects and TLS sockets
...
It still won't work behind a base path, but if you're using a reverse
proxy you can just redirect to HTTPS yourself. And should probably
handle TLS termination there too.
For sockets I just needed to add back the proxy call.
2020-02-19 17:59:12 -06:00
Anmol Sethi
1a54f6b7ef
Merge remote-tracking branch 'origin/restructure' into anmol-restructure
2020-02-18 12:52:29 -05:00
Anmol Sethi
4aa15401c3
Format and lint
2020-02-14 20:00:19 -05:00
Asher
db54f78e8e
Implement automatic updates
2020-02-14 15:58:39 -06:00
Asher
b8fa7da972
Simplify frontend
...
Just a login form and a list of applications. No modals or anything like
that.
2020-02-13 20:10:14 -06:00
Asher
bf1be16d11
Fix base path
...
Now it should work whether you have a trailing slash or not.
2020-02-13 12:41:58 -06:00
Asher
6cebfa469d
Generalize initial app logic
2020-02-05 18:47:00 -06:00
Asher
4cc181cedc
Make routing base path agnostic
2020-02-05 17:38:21 -06:00
Asher
6e809b6a31
Handle when VS Code fails to load
...
This is mostly for development where VS Code might not have finished
compiling yet.
2020-02-05 14:23:42 -06:00
Asher
8cc11d1688
Improve routing
2020-02-05 13:07:07 -06:00
Asher
dbc5c065f8
Improve HTTP provider registration
2020-02-04 16:55:27 -06:00
Asher
b29346ecdf
Implement new structure
2020-02-04 14:31:44 -06:00