File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed
packages/core/src/login/webview Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -124,8 +124,6 @@ export class CommonAuthViewProvider implements WebviewViewProvider {
124124 }
125125
126126 this . onDidChangeVisibility ?. fire ( webviewView . visible )
127- // force webview to reload
128- await vscode . commands . executeCommand ( 'workbench.action.webview.reloadWebviewAction' )
129127 } )
130128
131129 const dist = Uri . joinPath ( this . extensionContext . extensionUri , 'dist' )
Original file line number Diff line number Diff line change @@ -61,27 +61,18 @@ export abstract class CommonAuthWebview extends VueWebview {
6161 return globals . regionProvider . getRegions ( ) . reverse ( )
6262 }
6363
64- private didCall : { login : boolean ; reauth : boolean } = { login : false , reauth : false }
6564 /**
6665 * Called when the UI load process is completed, regardless of success or failure
6766 *
6867 * @param errorMessage IF an error is caught on the frontend, this is the message. It will result in a failure metric.
6968 * Otherwise we assume success.
7069 */
7170 public setUiReady ( state : 'login' | 'reauth' , errorMessage ?: string ) {
72- // Only emit once to prevent telemetry spam, since showing/hiding chat triggers this each time.
73- // TODO: Research how to not trigger this on every show/hide
74- if ( this . didCall [ state ] ) {
75- return
76- }
77-
7871 if ( errorMessage ) {
7972 this . setLoadFailure ( state , errorMessage )
8073 } else {
8174 this . setDidLoad ( state )
8275 }
83-
84- this . didCall [ state ] = true
8576 }
8677
8778 /**
You can’t perform that action at this time.
0 commit comments