- Notifications
You must be signed in to change notification settings - Fork669
Apply mdEngine to preview webview#257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
await commands.executeCommand("leetcode.showProblem", this.node); | ||
this.dispose(); | ||
return; | ||
await commands.executeCommand("workbench.action.focusSecondEditorGroup"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This line relates to (maybe) a bug in vscode, and I have reported in a issue:
microsoft/vscode#71608, which makes me have to create column 2 first before moving (by callingreveal(ViewColumn.Two)
) the webview panel to it.
I've successfully build the vscode repository locally in the aftertoon, and I'd like to have a try to debug the vscode myself.
Uh oh!
There was an error while loading.Please reload this page.
private parseDescription(descString: string, problem: IProblem): IDescription { | ||
const [ | ||
/* title */, , | ||
url, , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Each comma without variable before it means ignore this line (normally empty line, or something not needed)
Looks cool! 👍 |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
…de-leetcode into webview-md-preview
Uh oh!
There was an error while loading.Please reload this page.
Prerequisities
likes
anddislikes
property to problem description leetcode-tools/leetcode-cli#3submissions
andaccepted
withlikes
anddislikes
in the info tablebefore merging this PR.
Demonstration