Add multiline-comment-style lint rule and fix violations
Enable multiline-comment-style with starred-block to require JSDoc-style block comments with content on separate lines from the opening delimiter. Auto-fix existing violations across the codebase. Fixes #5899 Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
This commit is contained in:
co-authored by
Daniel Imms
parent
1a67b6f4b3
commit
4ec85e67ba
@@ -165,16 +165,18 @@ export class AddonImageWindow extends BaseWindow implements IControlWindow {
|
||||
this._terminal.element!.addEventListener('click', (ev: MouseEvent) => {
|
||||
if (!ev.ctrlKey || !imageAddon) return;
|
||||
|
||||
// TODO...
|
||||
// if (ev.altKey) {
|
||||
// const sel = term.getSelectionPosition();
|
||||
// if (sel) {
|
||||
// addons.image.instance
|
||||
// .extractCanvasAtBufferRange(term.getSelectionPosition())
|
||||
// ?.toBlob(data => window.open(URL.createObjectURL(data), '_blank'));
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
/*
|
||||
* TODO...
|
||||
* if (ev.altKey) {
|
||||
* const sel = term.getSelectionPosition();
|
||||
* if (sel) {
|
||||
* addons.image.instance
|
||||
* .extractCanvasAtBufferRange(term.getSelectionPosition())
|
||||
* ?.toBlob(data => window.open(URL.createObjectURL(data), '_blank'));
|
||||
* return;
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
|
||||
const pos = (this._terminal as any)._core._mouseService!.getCoords(ev, (this._terminal as any)._core.screenElement!, this._terminal.cols, this._terminal.rows);
|
||||
const x = pos[0] - 1;
|
||||
|
||||
Reference in New Issue
Block a user