Skip to content

Commit

Permalink
feature: read content
Browse files Browse the repository at this point in the history
  • Loading branch information
levivilet committed Sep 11, 2024
1 parent 6cf60ad commit 88ce67d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ const previewId = 1
export const webViewProvider = {
id: 'builtin.markdown-preview',
async create(webView, uri) {
console.log({ uri })
// @ts-ignore
const content = await vscode.readFile(uri)
console.log({ content })
// TODO if can use remote uri, use remote uri, else read file
// @ts-ignore
const remoteUrl = await MediaPreviewWorker.invoke('MediaPreview.getUrl', uri)
Expand Down

0 comments on commit 88ce67d

Please sign in to comment.