Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private _handleClick(): void {
const menu = this._menu;
if (this._popup) {
this._popup.dispose();
}
menu.aboutToClose.connect(this._menuClosed, this);
this._popup = showPopup({
body: menu,
anchor: this,
align: 'right'
});
}
.forEach(spec => {
if (spec.mode.indexOf('brainf') === 0) {
return;
}
let args: JSONObject = {
insertSpaces: true,
name: spec.name!
};
modeMenu.addItem({
command,
args
});
});
this._popup = showPopup({
body: modeMenu,
anchor: this,
align: 'left'
});
};
handleClick = () => {
if (this._popup) {
this._popup.dispose();
}
this._popup = showPopup({
body: new LSPPopup(this.model),
anchor: this,
align: 'left'
});
};
}