Make diff view editable

This commit is contained in:
Saoud Rizwan
2024-08-31 05:56:38 -04:00
parent d355660c2e
commit 9d5090397f
5 changed files with 142 additions and 81 deletions

View File

@@ -94,7 +94,7 @@ export function activate(context: vscode.ExtensionContext) {
)
/*
We use the text document content provider API to show a diff view for new files/edits by creating a virtual document for the new content.
We use the text document content provider API to show an empty text doc for diff view for new files by creating a virtual document for the new content.
- This API allows you to create readonly documents in VSCode from arbitrary sources, and works by claiming an uri-scheme for which your provider then returns text contents. The scheme must be provided when registering a provider and cannot change afterwards.
- Note how the provider doesn't create uris for virtual documents - its role is to provide contents given such an uri. In return, content providers are wired into the open document logic so that providers are always considered.