Surface polish: batched Minor findings from the native-surfaces final review (#71) #75
@@ -145,7 +145,13 @@ export class DiffViewController implements vscode.Disposable {
|
|||||||
pin(document: vscode.TextDocument): void {
|
pin(document: vscode.TextDocument): void {
|
||||||
if (!this.isDiffable(document)) return;
|
if (!this.isDiffable(document)) return;
|
||||||
const key = this.uriKey(document);
|
const key = this.uriKey(document);
|
||||||
if (this.modes.get(key) !== "snapshot") {
|
const mode = this.modes.get(key);
|
||||||
|
if (mode === undefined) {
|
||||||
|
// never established — the document is not being coedited (#71 item 1)
|
||||||
|
void vscode.window.showWarningMessage("Run ✦ Coedit this Document with Claude first.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (mode !== "snapshot") {
|
||||||
void vscode.window.showWarningMessage(
|
void vscode.window.showWarningMessage(
|
||||||
"Cowriting: this document is git-tracked — commit to advance the baseline.",
|
"Cowriting: this document is git-tracked — commit to advance the baseline.",
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user