File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ export abstract class GlApp<
38
38
private _focused ?: boolean ;
39
39
private _inputFocused ?: boolean ;
40
40
private _sendWebviewFocusChangedCommandDebounced ! : Deferrable < ( params : WebviewFocusChangedParams ) => void > ;
41
+ private _stateProvider ! : Disposable ;
42
+
43
+ protected abstract createStateProvider ( state : State , ipc : HostIpc ) : Disposable ;
41
44
42
45
override connectedCallback ( ) {
43
46
super . connectedCallback ( ) ;
@@ -53,6 +56,7 @@ export abstract class GlApp<
53
56
54
57
this . _ipc = new HostIpc ( this . name ) ;
55
58
this . disposables . push (
59
+ ( this . _stateProvider = this . createStateProvider ( this . state , this . _ipc ) ) ,
56
60
this . _ipc . onReceiveMessage ( msg => {
57
61
switch ( true ) {
58
62
case DidChangeWebviewFocusNotification . is ( msg ) :
You can’t perform that action at this time.
0 commit comments