MCPcopy Index your code
hub / github.com/reactide/reactide / handleEditorValueChange

Method handleEditorValueChange

renderer/components/App.jsx:582–588  ·  view source on GitHub ↗

* Auto save on change of the editor * @param {String} value Contents of the Monaco editor instance

(value)

Source from the content-addressed store, hash-verified

580 * @param {String} value Contents of the Monaco editor instance
581 */
582 handleEditorValueChange(value) {
583 const copyOpenTabs = Object.assign({}, this.state.openTabs)
584 const copyTabObject = Object.assign({}, this.state.openTabs[this.state.previousPaths[this.state.previousPaths.length - 1]]);
585 copyTabObject.editorValue = value;
586 copyOpenTabs[this.state.previousPaths[this.state.previousPaths.length - 1]] = copyTabObject;
587 this.setState({ openTabs: copyOpenTabs }, () => this.saveTab());
588 }
589 closeSim() {
590 this.setState({ simulator: false });
591 ipcRenderer.send('closeSim', this.state.liveServerPID);

Callers

nothing calls this directly

Calls 1

saveTabMethod · 0.95

Tested by

no test coverage detected