88
private readonly _onDidChangeAgentInstructions = this._register(new Emitter<void>({
89
onWillAddFirstListener: () => {
91
>
const agentInstructionsUpdatedEvent = this.fileLocator.createAgentInstructionsUpdatedEvent();
92
>
store.add(agentInstructionsUpdatedEvent);
93
>
store.add(agentInstructionsUpdatedEvent.event(() => this._onDidChangeAgentInstructions.fire()));
94
>
this.agentInstructionsWatcher.value = store;
95
>
},
96
onDidRemoveLastListener: () => {
97
this.agentInstructionsWatcher.clear();