File tree Expand file tree Collapse file tree
src/vs/workbench/contrib/webview/electron-browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -287,6 +287,8 @@ export class ElectronWebviewBasedWebview extends BaseWebview<WebviewTag> impleme
287287 this . _register ( addDisposableListener ( this . element ! , 'found-in-page' , e => {
288288 this . _hasFindResult . fire ( e . result . matches > 0 ) ;
289289 } ) ) ;
290+
291+ this . styledFindWidget ( ) ;
290292 }
291293 }
292294
@@ -341,10 +343,11 @@ export class ElectronWebviewBasedWebview extends BaseWebview<WebviewTag> impleme
341343
342344 protected style ( ) : void {
343345 super . style ( ) ;
346+ this . styledFindWidget ( ) ;
347+ }
344348
345- if ( this . _webviewFindWidget ) {
346- this . _webviewFindWidget . updateTheme ( this . _webviewThemeDataProvider . getTheme ( ) ) ;
347- }
349+ private styledFindWidget ( ) {
350+ this . _webviewFindWidget ?. updateTheme ( this . _webviewThemeDataProvider . getTheme ( ) ) ;
348351 }
349352
350353 private readonly _hasFindResult = this . _register ( new Emitter < boolean > ( ) ) ;
You can’t perform that action at this time.
0 commit comments