File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
packages/databricks-vscode/src/configuration Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -138,13 +138,17 @@ export class ConnectionManager implements Disposable {
138138 this . updateClusterManager ,
139139 this
140140 ) ,
141- // Don't listen to target change for logging in. Explictly listen for changes in the keys we care about.
141+ // Don't just listen to target change for logging in. Also explictly listen for changes in the keys we care about.
142142 // We don't have to listen to changes in authProfile as it's set by the login method and we don't respect other
143143 // user changes.
144144 // TODO: start listening to changes in authParams
145145 this . configModel . onDidChangeKey ( "host" ) (
146146 this . loginWithSavedAuth ,
147147 this
148+ ) ,
149+ this . configModel . onDidChangeTarget (
150+ this . loginWithSavedAuth ,
151+ this
148152 )
149153 ) ;
150154 }
Original file line number Diff line number Diff line change @@ -224,6 +224,8 @@ export class ConfigModel implements Disposable {
224224 this . onDidChangeTargetEmitter . fire ( ) ;
225225 } ) ;
226226
227+ await this . setAuthProvider ( undefined ) ;
228+
227229 this . vscodeWhenContext . isTargetSet ( this . _target !== undefined ) ;
228230 }
229231
You can’t perform that action at this time.
0 commit comments