Skip to content

Commit

Permalink
popup md preview
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjien committed Sep 4, 2024
1 parent a604de2 commit eb35986
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jenkins-log-reader",
"displayName": "jenkins-log-reader",
"description": "read jenkins log, analyse with local AI.",
"version": "0.3.19",
"version": "0.3.20",
"engines": {
"vscode": "^1.92.0"
},
Expand Down
6 changes: 6 additions & 0 deletions src/panels/JenkinsPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
window,
WebviewPanel,
ViewColumn,
commands,
ProgressLocation,
} from "vscode";
import { getUri } from "../utilities/getUri";
Expand Down Expand Up @@ -320,6 +321,11 @@ export class JenkinsPanel {
2
)
);
fs.writeFileSync(JenkinsPanel.storagePath + "/analysed/" + hash+".md",
"<details>\n<summary>Jenkins Log</summary>\n"+data+"</details>\n\n"
+content )
const uri = Uri.file(JenkinsPanel.storagePath + "/analysed/" + hash+".md");
commands.executeCommand('markdown.showPreview', uri);
webView.postMessage({
command: "analysis",
payload: content,
Expand Down

0 comments on commit eb35986

Please sign in to comment.