prettify, sorry for the big ass commit

This commit is contained in:
Olivier Gagnon
2021-09-04 19:09:30 -04:00
parent 3d7cdb4ef9
commit a18bdd6afc
554 changed files with 91615 additions and 66138 deletions
+20 -20
View File
@@ -1,29 +1,29 @@
export type Position = {
row: number;
column: number;
row: number;
column: number;
};
export class PositionTracker {
positions: Map<string, Position>;
positions: Map<string, Position>;
constructor() {
this.positions = new Map<string, Position>();
}
constructor() {
this.positions = new Map<string, Position>();
}
saveCursor(filename: string, pos: Position): void {
this.positions.set(filename, pos);
}
saveCursor(filename: string, pos: Position): void {
this.positions.set(filename, pos);
}
getCursor(filename: string): Position {
const position = this.positions.get(filename);
if (!position) {
return {
row: -1,
column: -1,
};
}
return position;
}
getCursor(filename: string): Position {
const position = this.positions.get(filename);
if (!position) {
return {
row: -1,
column: -1,
};
}
return position;
}
}
export const CursorPositions: PositionTracker = new PositionTracker();
export const CursorPositions: PositionTracker = new PositionTracker();