Fix checks
This commit is contained in:
parent
a52875c83c
commit
7bdb6d15d9
2 changed files with 4 additions and 9 deletions
|
|
@ -1,14 +1,9 @@
|
||||||
import type { Stat, Vault, Workspace } from "obsidian";
|
import type { Stat, Vault, Workspace } from "obsidian";
|
||||||
import { MarkdownView, normalizePath } from "obsidian";
|
import { MarkdownView, normalizePath } from "obsidian";
|
||||||
import type {
|
import type { FileSystemOperations, RelativePath } from "sync-client";
|
||||||
CursorPosition,
|
|
||||||
FileSystemOperations,
|
|
||||||
RelativePath,
|
|
||||||
TextWithCursors
|
|
||||||
} from "sync-client";
|
|
||||||
import { lineAndColumnToPosition } from "./utils/line-and-column-to-position";
|
|
||||||
import { positionToLineAndColumn } from "./utils/position-to-line-and-column";
|
import { positionToLineAndColumn } from "./utils/position-to-line-and-column";
|
||||||
import { getSelectionsFromEditor } from "./views/cursors/get-selections-from-editor";
|
import { getSelectionsFromEditor } from "./views/cursors/get-selections-from-editor";
|
||||||
|
import type { TextWithCursors, CursorPosition } from "reconcile-text";
|
||||||
|
|
||||||
export class ObsidianFileSystemOperations implements FileSystemOperations {
|
export class ObsidianFileSystemOperations implements FileSystemOperations {
|
||||||
public constructor(
|
public constructor(
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import type { StoredDatabase, TextWithCursors } from "sync-client";
|
import type { StoredDatabase } from "sync-client";
|
||||||
import { assert } from "../utils/assert";
|
import { assert } from "../utils/assert";
|
||||||
import {
|
import {
|
||||||
type RelativePath,
|
type RelativePath,
|
||||||
|
|
@ -6,7 +6,7 @@ import {
|
||||||
type SyncSettings,
|
type SyncSettings,
|
||||||
SyncClient
|
SyncClient
|
||||||
} from "sync-client";
|
} from "sync-client";
|
||||||
|
import type { TextWithCursors } from "reconcile-text";
|
||||||
export class MockClient implements FileSystemOperations {
|
export class MockClient implements FileSystemOperations {
|
||||||
protected readonly localFiles = new Map<string, Uint8Array>();
|
protected readonly localFiles = new Map<string, Uint8Array>();
|
||||||
protected client!: SyncClient;
|
protected client!: SyncClient;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue