From 510bb724315f6477e62a644935c555433de66f5d Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Sat, 15 Feb 2025 15:31:45 -0800 Subject: [PATCH] Disable markdown selectors --- src/core/webview/ClineProvider.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 8a6d528b40..74d30edbfe 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -943,6 +943,10 @@ export class ClineProvider implements vscode.WebviewViewProvider { const details: McpDownloadResponse = await response.json() if (details.readmeContent) { + // Disable markdown preview markers + const config = vscode.workspace.getConfiguration("markdown") + await config.update("preview.markEditorSelection", false, true) + // Create URI with base64 encoded markdown content const uri = vscode.Uri.parse( `${DIFF_VIEW_URI_SCHEME}:${details.name} README?${Buffer.from(details.readmeContent).toString("base64")}`,