Skip to content

Commit bfe99f6

Browse files
committed
Add Gitpod to Settings sync
refactor `createOauth2URL` Add lock changes Rewrite `getSessions` and `removeSession` functions Don't bore the user with expired error Docs Add todo Add get and set functions for stored auth sessions Change oauth2 creation function and update clientID to be up to date Have popup preference stored in the global context Handle ws errors Max WS retries
1 parent 530281e commit bfe99f6

File tree

5 files changed

+552
-3
lines changed

5 files changed

+552
-3
lines changed

extensions/gitpod/package.json

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,40 @@
2929
],
3030
"activationEvents": [
3131
"*",
32-
"onCommand:gitpod.api.autoTunnel"
32+
"onCommand:gitpod.api.autoTunnel",
33+
"onCommand:gitpod.api.auth",
34+
"onAuthenticationRequest:gitpod"
3335
],
36+
"contributes": {
37+
"authentication": [
38+
{
39+
"label": "Gitpod",
40+
"id": "gitpod"
41+
}
42+
],
43+
"configuration": {
44+
"title": "Settings sync",
45+
"properties": {
46+
"configurationSync.store": {
47+
"type": "object"
48+
}
49+
}
50+
},
51+
"commands": [
52+
{
53+
"command": "gitpod.auth.remove",
54+
"category": "Gitpod",
55+
"enablement": "gitpod.addedSyncProvider",
56+
"title": "Turn off Settings Sync"
57+
},
58+
{
59+
"command": "gitpod.auth.add",
60+
"category": "Gitpod",
61+
"enablement": "!gitpod.addedSyncProvider",
62+
"title": "Turn on Settings Sync"
63+
}
64+
]
65+
},
3466
"main": "./out/extension.js",
3567
"scripts": {
3668
"compile": "gulp compile-extension:gitpod",
@@ -43,9 +75,11 @@
4375
"@types/tmp": "^0.2.1"
4476
},
4577
"dependencies": {
78+
"@gitpod/gitpod-protocol": "main",
4679
"@gitpod/local-app-api-grpcweb": "main",
4780
"@improbable-eng/grpc-web-node-http-transport": "^0.14.0",
4881
"node-fetch": "^2.6.1",
82+
"pkce": "^1.0.0-beta2",
4983
"tmp": "^0.2.1",
5084
"vscode-nls": "^5.0.0"
5185
},

0 commit comments

Comments
 (0)