MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / onNewSource

Method onNewSource

static/panes/editor.ts:314–318  ·  view source on GitHub ↗
(editorId: number, newSource: string)

Source from the content-addressed store, hash-verified

312 }
313
314 onNewSource(editorId: number, newSource: string): void {
315 if (this.id === editorId) {
316 this.setSource(newSource);
317 }
318 }
319
320 getSource(): string | undefined {
321 return this.editor.getModel()?.getValue();

Callers

nothing calls this directly

Calls 1

setSourceMethod · 0.95

Tested by

no test coverage detected