MCPcopy Create free account
hub / github.com/microsoft/vscode-cpptools / emit

Function emit

Extension/src/Utility/Eventing/emitter.ts:39–43  ·  view source on GitHub ↗
(event: string, tOrD: any, data?: ArbitraryObject)

Source from the content-addressed store, hash-verified

37 protected async emit(event: string, data: ArbitraryObject): Promise<EventStatus>;
38 protected async emit(event: string, text: string, data: ArbitraryObject): Promise<EventStatus>;
39 protected async emit(event: string, tOrD: any, data?: ArbitraryObject): Promise<EventStatus> {
40 return data ?
41 emit(event, this.descriptors, this, tOrD, data) :
42 emit(event, this.descriptors, this, tOrD);
43 }
44
45 /** immediately dispatches an event */
46 protected async emitNow(event: string, text: string): Promise<EventStatus>;

Callers

nothing calls this directly

Calls 1

emitFunction · 0.90

Tested by

no test coverage detected