@@ -14,6 +14,7 @@ import type {
14
14
import { DidChangeWebviewFocusNotification , WebviewFocusChangedCommand , WebviewReadyCommand } from '../../protocol' ;
15
15
import { ipcContext } from './contexts/ipc' ;
16
16
import { loggerContext , LoggerContext } from './contexts/logger' ;
17
+ import { PromosContext , promosContext } from './contexts/promos' ;
17
18
import { telemetryContext , TelemetryContext } from './contexts/telemetry' ;
18
19
import { DOM } from './dom' ;
19
20
import type { Disposable } from './events' ;
@@ -32,6 +33,7 @@ export abstract class App<
32
33
private readonly _api : HostIpcApi ;
33
34
private readonly _hostIpc : HostIpc ;
34
35
private readonly _logger : LoggerContext ;
36
+ private readonly _promos : PromosContext ;
35
37
protected readonly _telemetry : TelemetryContext ;
36
38
37
39
protected state : State ;
@@ -58,6 +60,9 @@ export abstract class App<
58
60
this . _hostIpc = new HostIpc ( this . appName ) ;
59
61
disposables . push ( this . _hostIpc ) ;
60
62
63
+ this . _promos = new PromosContext ( this . _hostIpc ) ;
64
+ disposables . push ( this . _promos ) ;
65
+
61
66
this . _telemetry = new TelemetryContext ( this . _hostIpc ) ;
62
67
disposables . push ( this . _telemetry ) ;
63
68
@@ -66,6 +71,10 @@ export abstract class App<
66
71
context : loggerContext ,
67
72
initialValue : this . _logger ,
68
73
} ) ;
74
+ new ContextProvider ( document . body , {
75
+ context : promosContext ,
76
+ initialValue : this . _promos ,
77
+ } ) ;
69
78
new ContextProvider ( document . body , {
70
79
context : telemetryContext ,
71
80
initialValue : this . _telemetry ,
0 commit comments