Skip to content

Commit 0a3504a

Browse files
committed
disable webview and excessive log
1 parent a4e57a6 commit 0a3504a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/utils/cpUtils.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export async function executeCommand(command: string, args: string[], options: c
1818
childProc.stdout?.on("data", (data: string | Buffer) => {
1919
data = data.toString();
2020
result = result.concat(data);
21-
leetCodeChannel.append(data);
21+
if (!/\[\s*\d{1,4}\s*\].*?%\)/.test(data)) {
22+
leetCodeChannel.append(data);
23+
}
2224
});
2325

2426
childProc.stderr?.on("data", (data: string | Buffer) => leetCodeChannel.append(data.toString()));

src/webview/leetCodeSubmissionProvider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class LeetCodeSubmissionProvider extends LeetCodeWebview {
1313

1414
public show(resultString: string): void {
1515
this.result = this.parseResult(resultString);
16-
this.showWebviewInternal();
16+
// this.showWebviewInternal(); // disable webview
1717
this.showKeybindingsHint();
1818
}
1919

0 commit comments

Comments
 (0)