Open read files in editor instead of code accordian

This commit is contained in:
Saoud Rizwan
2024-09-11 16:38:33 -04:00
parent dd01fc7fc4
commit 0522a26fd9
7 changed files with 103 additions and 26 deletions

View File

@@ -10,7 +10,7 @@ import fs from "fs/promises"
import { HistoryItem } from "../shared/HistoryItem"
import axios from "axios"
import { getTheme } from "../utils/getTheme"
import { openImage } from "../utils/open-image"
import { openFile, openImage } from "../utils/open-file"
/*
https://github.com/microsoft/vscode-webview-ui-toolkit-samples/blob/main/default/weather-webview/src/providers/WeatherViewProvider.ts
@@ -402,6 +402,9 @@ export class ClaudeDevProvider implements vscode.WebviewViewProvider {
case "openImage":
openImage(message.text!)
break
case "openFile":
openFile(message.text!)
break
// Add more switch case statements here as more webview message commands
// are created within the webview context (i.e. inside media/main.js)
}