package upgrades & linter fixes

This commit is contained in:
Jörg Breitbart
2026-05-09 17:42:49 +02:00
parent 6ba731d73b
commit dc1ae4514b
36 changed files with 2804 additions and 2389 deletions
+2 -2
View File
@@ -74,10 +74,10 @@ abstract class TaskQueue implements ITaskQueue {
private _process(deadline: ITaskDeadline): void {
this._idleCallback = undefined;
let taskDuration = 0;
let taskDuration: number;
let longestTask = 0;
let lastDeadlineRemaining = deadline.timeRemaining();
let deadlineRemaining = 0;
let deadlineRemaining: number;
while (this._i < this._tasks.length) {
taskDuration = performance.now();
if (!this._tasks[this._i]()) {
+3 -6
View File
@@ -98,8 +98,7 @@ CHARSETS['4'] = {
* ESC (C or ESC (5
* Reference: http://vt100.net/docs/vt220-rm/table2-7.html
*/
CHARSETS['C'] =
CHARSETS['5'] = {
CHARSETS['C'] = CHARSETS['5'] = {
'[': 'Ä',
'\\': 'Ö',
']': 'Å',
@@ -185,8 +184,7 @@ CHARSETS['Y'] = {
* ESC (E or ESC (6
* Reference: http://vt100.net/docs/vt220-rm/table2-12.html
*/
CHARSETS['E'] =
CHARSETS['6'] = {
CHARSETS['E'] = CHARSETS['6'] = {
'@': 'Ä',
'[': 'Æ',
'\\': 'Ø',
@@ -220,8 +218,7 @@ CHARSETS['Z'] = {
* ESC (H or ESC (7
* Reference: http://vt100.net/docs/vt220-rm/table2-14.html
*/
CHARSETS['H'] =
CHARSETS['7'] = {
CHARSETS['H'] = CHARSETS['7'] = {
'@': 'É',
'[': 'Ä',
'\\': 'Ö',
+1 -1
View File
@@ -148,7 +148,7 @@ export class Utf8ToUtf32 {
let byte2: number;
let byte3: number;
let byte4: number;
let codepoint = 0;
let codepoint;
let startPos = 0;
// handle leftover bytes
+2 -2
View File
@@ -572,8 +572,8 @@ export class EscapeSequenceParser extends Disposable implements IEscapeSequenceP
* ```
*/
public parse(data: Uint32Array, length: number, promiseResult?: boolean): void | Promise<boolean> {
let code = 0;
let transition = 0;
let code: number;
let transition: number;
let start = 0;
let handlerResult: void | boolean | Promise<boolean>;
+4 -4
View File
@@ -72,10 +72,10 @@ export class DecorationService extends Disposable implements IDecorationService
}
public *getDecorationsAtCell(x: number, line: number, layer?: 'bottom' | 'top'): IterableIterator<IInternalDecoration> {
let xmin = 0;
let xmax = 0;
let ymin = 0;
let ymax = 0;
let xmin;
let xmax;
let ymin;
let ymax;
for (const d of this._decorations.values()) {
ymin = d.marker.line;
ymax = ymin + (d.options.height ?? 1);