Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Apply markdown engine to result provider #232

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
jdneo merged 8 commits into LeetCode-OpenSource:master from Vigilans:webview-md-result
Mar 27, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address comments in LGTM.com
  • Loading branch information
Vigilans committed Mar 23, 2019
commit 983885ea414b6648bf2958d1659b52d12af6df90
5 changes: 2 additions & 3 deletions src/webview/leetCodeResultProvider.ts
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import { Disposable, ExtensionContext, ViewColumn, WebviewPanel, window } from "vscode";
import { leetCodeChannel } from "../leetCodeChannel";
import { IProblem } from "../shared";
import { MarkdownEngine } from "./MarkdownEngine";

class LeetCodeResultProvider implements Disposable {
Expand Down Expand Up @@ -49,7 +48,7 @@ class LeetCodeResultProvider implements Disposable {
[result.status, raw] = raw.split(/ . (.+)([^]+)/).slice(1);
[result.passed, raw] = raw.split(/\n . (.+)([^]+)/).slice(1);
[result.runtime, raw] = raw.split(/\n . (.+)([^]+)/).slice(1);
[result.memory, raw] = raw.split(/\n . (.+)/).slice(1);
[result.memory] = raw.split(/\n . (.+)/).slice(1);
return result;
}
case ×ばつ": {
Expand All @@ -59,7 +58,7 @@ class LeetCodeResultProvider implements Disposable {
[result.testcase, raw] = raw.split(/\n . testcase: '(.+)'([^]+)/).slice(1);
[result.answer, raw] = raw.split(/\n . answer: (.+)([^]+)/).slice(1);
[result.expected, raw] = raw.split(/\n . expected_answer: (.+)([^]+)/).slice(1);
[result.stdout, raw] = raw.split(/\n . stdout: ([^]+?)\n$/).slice(1);
[result.stdout] = raw.split(/\n . stdout: ([^]+?)\n$/).slice(1);
result.testcase = result.testcase.replace("\\n", "\n");
return result;
}
Expand Down

AltStyle によって変換されたページ (->オリジナル) /