F8: out-of-workspace authoring — hybrid sidecar persistence (#25) #26
+2
-2
@@ -8,12 +8,12 @@
|
|||||||
*/
|
*/
|
||||||
import * as vscode from "vscode";
|
import * as vscode from "vscode";
|
||||||
import { SCHEMA_VERSION, isNewerMajor } from "./model";
|
import { SCHEMA_VERSION, isNewerMajor } from "./model";
|
||||||
import type { CoauthorStore } from "./store";
|
import type { SidecarStore } from "./sidecarStore";
|
||||||
|
|
||||||
export class VersionGuard {
|
export class VersionGuard {
|
||||||
private readonly warned = new Set<string>();
|
private readonly warned = new Set<string>();
|
||||||
|
|
||||||
constructor(private readonly store: CoauthorStore) {}
|
constructor(private readonly store: SidecarStore) {}
|
||||||
|
|
||||||
/** True → skip the write path (and warn once per doc). */
|
/** True → skip the write path (and warn once per doc). */
|
||||||
isReadOnly(docPath: string): boolean {
|
isReadOnly(docPath: string): boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user