File tree Expand file tree Collapse file tree 4 files changed +8
-237
lines changed Expand file tree Collapse file tree 4 files changed +8
-237
lines changed Original file line number Diff line number Diff line change 14
14
"url" : " https://github.com/gitpod-io/gitpod/issues"
15
15
},
16
16
"engines" : {
17
- "vscode" : " ^1.75 .0"
17
+ "vscode" : " ^1.83 .0"
18
18
},
19
19
"enabledApiProposals" : [
20
20
" resolvers" ,
624
624
"@parcel/watcher" : " ^2.1.0" ,
625
625
"@tsconfig/svelte" : " ^2.0.0" ,
626
626
"@types/js-yaml" : " ^4.0.5" ,
627
- "@types/keytar" : " ^4.4.2" ,
628
627
"@types/node" : " 16.x" ,
629
628
"@types/node-fetch" : " ^2.5.12" ,
630
629
"@types/uuid" : " 8.0.0" ,
Original file line number Diff line number Diff line change 3
3
*--------------------------------------------------------------------------------------------*/
4
4
5
5
import * as vscode from 'vscode' ;
6
- import type * as keytarType from 'keytar' ;
7
6
import fetch from 'node-fetch' ;
8
7
import { Disposable , GitpodExtensionContext } from 'gitpod-shared' ;
9
8
import Keychain from './util/keychain' ;
10
9
11
- type Keytar = {
12
- getPassword : typeof keytarType [ 'getPassword' ] ;
13
- setPassword : typeof keytarType [ 'setPassword' ] ;
14
- deletePassword : typeof keytarType [ 'deletePassword' ] ;
15
- } ;
16
-
17
10
interface SessionData {
18
11
id : string ;
19
12
account ?: {
@@ -65,15 +58,7 @@ export class GitpodAuthenticationProvider extends Disposable implements vscode.A
65
58
this . context . logger . info ( 'Reading sessions from keychain...' ) ;
66
59
let storedSessions = await this . _keychain . getToken ( ) ;
67
60
if ( ! storedSessions ) {
68
- // Fallback to old behavior
69
- this . context . logger . warn ( 'Falling back to deprecated keytar logic' ) ;
70
-
71
- const keytar : Keytar = require ( 'keytar' ) ;
72
- storedSessions = await keytar . getPassword ( `gitpod-code-gitpod.login` , 'account' ) ;
73
- if ( ! storedSessions ) {
74
- return [ ]
75
- }
76
- await keytar . deletePassword ( `gitpod-code-gitpod.login` , 'account' ) ;
61
+ return [ ] ;
77
62
}
78
63
this . context . logger . info ( 'Got stored sessions!' ) ;
79
64
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ const config = {
20
20
vscode : "commonjs vscode" ,
21
21
bufferutil : "bufferutil" ,
22
22
"utf-8-validate" : "utf-8-validate" ,
23
- "keytar" : "commonjs keytar"
24
23
} ,
25
24
resolve : {
26
25
extensions : [ '.ts' , '.js' ]
You can’t perform that action at this time.
0 commit comments