Skip to content

Commit

Permalink
Add gitlens readonly scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
zjffun committed Dec 16, 2023
1 parent c270910 commit 0e0d78f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/DrawioEditorProviderText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ export class DrawioEditorProviderText implements CustomTextEditorProvider {
token: CancellationToken
): Promise<void> {
try {
const readonlySchemes = new Set(["git", "conflictResolution"]);
const readonlySchemes = new Set([
"git",
"conflictResolution",
"gitlens",
]);
const isReadOnly = readonlySchemes.has(document.uri.scheme);

const editor =
Expand Down

0 comments on commit 0e0d78f

Please sign in to comment.