From 0e0d78fbdabf7b4faed4a414292d46ff96a71662 Mon Sep 17 00:00:00 2001 From: JuFeng Zhang Date: Sat, 16 Dec 2023 02:47:56 +0000 Subject: [PATCH] Add gitlens readonly scheme --- src/DrawioEditorProviderText.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/DrawioEditorProviderText.ts b/src/DrawioEditorProviderText.ts index 389929f..b952fe7 100644 --- a/src/DrawioEditorProviderText.ts +++ b/src/DrawioEditorProviderText.ts @@ -20,7 +20,11 @@ export class DrawioEditorProviderText implements CustomTextEditorProvider { token: CancellationToken ): Promise { try { - const readonlySchemes = new Set(["git", "conflictResolution"]); + const readonlySchemes = new Set([ + "git", + "conflictResolution", + "gitlens", + ]); const isReadOnly = readonlySchemes.has(document.uri.scheme); const editor =