Add cursor moving (#19)
This commit is contained in:
parent
29d8779786
commit
1f9728d893
1 changed files with 1104 additions and 140 deletions
|
|
@ -6,7 +6,10 @@ import type {
|
|||
import { FileOperations } from "./file-operations";
|
||||
import { Logger } from "../tracing/logger";
|
||||
import { assertSetContainsExactly } from "../utils/assert-set-contains-exactly";
|
||||
import type { FileSystemOperations } from "./filesystem-operations";
|
||||
import type {
|
||||
FileSystemOperations,
|
||||
TextWithCursors
|
||||
} from "./filesystem-operations";
|
||||
import init, { base64ToBytes } from "sync_lib";
|
||||
import fs from "fs";
|
||||
|
||||
|
|
@ -43,7 +46,7 @@ class FakeFileSystemOperations implements FileSystemOperations {
|
|||
}
|
||||
public async atomicUpdateText(
|
||||
_path: RelativePath,
|
||||
_updater: (currentContent: string) => string
|
||||
_updater: (current: TextWithCursors) => TextWithCursors
|
||||
): Promise<string> {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue