Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
submit() {
if (!this.state.submitButtonEnabled) {
return;
}
this.state.executing = true;
this.opts.callback && this.opts.callback(this.project);
etch.update(this);
}
async update (props, children) {
if (props.scale != null) this.scale = props.scale
if (props.kind != null) this.kind = props.kind
if (props.mini != null) this.mini = props.mini
this.children = children
await etch.update(this)
this.forceChildrenUpdate()
}
didBlur () {
this._hasFocus = false
etch.update(this)
}
await searchPromise;
const resultsPaneView1 = atom.views.getView(getExistingResultsPane());
const pane1 = atom.workspace.getCenter().getActivePane();
const resultsView1 = pane1.getItems()[0].refs.resultsView
pane1.splitRight({copyActiveItem: true});
const pane2 = atom.workspace.getCenter().getActivePane();
const resultsView2 = pane2.getItems()[0].refs.resultsView
const resultsPaneView2 = atom.views.getView(pane2.itemForURI(ResultsPaneView.URI));
expect(pane1).not.toBe(pane2);
expect(resultsPaneView1).not.toBe(resultsPaneView2);
simulateResizeEvent(resultsView2.element);
await etch.update(resultsView1);
await etch.update(resultsView2);
await waitForSearchResults();
const resultCount = resultsPaneView1.querySelectorAll('.match-row').length;
expect(resultCount).toBeGreaterThan(0);
expect(resultsPaneView2.querySelectorAll('.match-row')).toHaveLength(resultCount);
expect(resultsPaneView2.querySelector('.preview-count').innerHTML).toEqual(resultsPaneView1.querySelector('.preview-count').innerHTML);
});
decrementTrailingContextLines() {
this.refs.resultsView.decrementTrailingContextLines();
etch.update(this);
}
update(props) {
this.props = props;
etch.update(this);
}
togglePatchSelectionMode() {
this.selection.toggleMode();
return etch.update(this);
}
update(props, children) {
this.state.columns = props.columns;
this.state.rows = props.rows;
return etch.update(this);
}
update() {
return etch.update(this);
}
async LoginDetails() {
const session = await Appc.getCurrentSession();
const orgName = await Appc.session().org_name;
if (session) {
this.loginDetails = `${session.firstname} ${session.lastname} \n${orgName}`;
} else {
this.loginDetails = 'No user logged in';
}
etch.update(this);
}