Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
bindListeners() {
this.addSubscription(new Disposable(ipc.answerMain('split', this.split)))
this.addSubscription(new Disposable(ipc.answerMain('close', this.state.tab.kill)))
this.addSubscription(new Disposable(ipc.answerMain('setting-changed', this.handleSettingChanged)))
this.addSubscription(new Disposable(ipc.answerMain('active-profile-changed', this.resetCssSettings)))
}
}
bindListeners() {
this.addSubscription(new Disposable(ipc.answerMain('setting-changed', this.resetStyles)))
this.addSubscription(new Disposable(ipc.answerMain('active-profile-changed', this.resetStyles)))
}
}
bindListeners() {
if (this.props.currentProfile) {
this.addSubscription(new Disposable(
ipc.answerMain('setting-changed', ({property, value}) => {
if (property === 'tabColor') {
this.setState({backgroundColor: value})
}
})
))
this.addSubscription(new Disposable(
ipc.answerMain('active-profile-changed', () => {
this.setState({backgroundColor: this.backgroundColor})
})
))
}
}
}
bindListeners() {
if (!is.macos) {
this.addSubscription(new Disposable(
ipc.answerMain('setting-changed', ({property, value}) => {
if (property === 'tabColor') {
this.setState({backgroundColor: value})
}
})
))
this.addSubscription(new Disposable(
ipc.answerMain('active-profile-changed', () => {
this.setState({backgroundColor: this.backgroundColor})
})
))
}
}
}
bindListeners() {
this.addSubscription(
new Disposable(darkMode.onChange(this.handleDarkModeChange.bind(this)))
)
ipc.on('close-via-menu', window.close)
this.addSubscription(
new Disposable(() => ipc.removeListener('close-via-menu', window.close))
)
ipc.answerMain('close', () => {
return new Promise(resolve => {
this.cleanup()
resolve()
})
})
}
}
constructor(props, context) {
super(props, context);
this.subTarget = new Disposable();
this.subCommand = new Disposable();
}
constructor(props) {
super(props);
autobind(this, 'observeEditor', 'forceUpdate');
this.state = {
gutter: null,
};
this.sub = new Disposable();
}
constructor(props) {
super(props);
autobind(this, 'didChangeTarget');
this.sub = new Disposable();
this.state = {keybinding: null};
}
constructor(props) {
super(props);
autobind(this, 'renderQueryResult');
this.sub = new Disposable();
}
constructor(props) {
super(props);
this.sub = new Disposable();
}