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

Method saveTab

renderer/components/App.jsx:500–502  ·  view source on GitHub ↗

* Save tab handler --> Writes to filesystem of whichever path is being changed

()

Source from the content-addressed store, hash-verified

498 * Save tab handler --> Writes to filesystem of whichever path is being changed
499 */
500 saveTab() {
501 fs.writeFileSync(this.state.previousPaths[this.state.previousPaths.length - 1], this.state.openTabs[this.state.previousPaths[this.state.previousPaths.length - 1]].editorValue, { encoding: 'utf8' });
502 }
503 /**
504 * Sets active tab to change highlighting, and to determine which Monaco model is open
505 * @param {String} path Path of the tab being set to Active

Callers 2

componentDidMountMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected