MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / setContent

Method setContent

extension-api/ExtensionAPI.d.ts:49–49  ·  view source on GitHub ↗

* Sets the content of the resource. If a `callback` is provided, it is * invoked when the content is set and the method returns `void`. If no * `callback` is provided, the method returns a `Promise`. * * @param content The new content of the resource. * @param comm

(content: string, commit: boolean)

Source from the content-addressed store, hash-verified

47 * is provided, otherwise void. Rejects with an error object on failure.
48 */
49 setContent(content: string, commit: boolean): Promise<void>;
50 setContent(content: string, commit: boolean, callback: (error?: object) => unknown): void;
51 /**
52 * Augments this resource's scopes information based on the list of {@link NamedFunctionRange}s

Callers 11

setContentMethod · 0.65
createBase64ViewMethod · 0.65
createUtf8ViewMethod · 0.65
fileCallbackMethod · 0.65
onMouseMoveMethod · 0.65
setContentMethod · 0.65
addFileMethod · 0.65
createUISourceCodeFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected