We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67c0dc4 commit e6beb31Copy full SHA for e6beb31
src/leetCodeExecutor.ts
@@ -6,7 +6,7 @@ import * as fse from "fs-extra";
6
import * as path from "path";
7
import * as requireFromString from "require-from-string";
8
import * as vscode from "vscode";
9
-import { Endpoint, IProblem } from "./shared";
+import { Endpoint, IProblem,supportedPlugins } from "./shared";
10
import { executeCommand, executeCommandWithProgress } from "./utils/cpUtils";
11
import { genFileName } from "./utils/problemUtils";
12
import { DialogOptions, openUrl } from "./utils/uiUtils";
@@ -48,7 +48,7 @@ class LeetCodeExecutor {
48
}
49
return false;
50
51
- for (const plugin of ["company","solution.discuss","leetcode.cn"]) {
+ for (const plugin of supportedPlugins) {
52
try { // Check plugin
53
await this.executeCommandEx("node", [await this.getLeetCodeBinaryPath(), "plugin", "-e", plugin]);
54
} catch (error) { // Download plugin and activate
src/shared.ts
@@ -91,3 +91,9 @@ export enum Category {
91
Company = "Company",
92
Favorite = "Favorite",
93
94
+
95
+export const supportedPlugins: string[] = [
96
+ "company",
97
+ "solution.discuss",
98
+ "leetcode.cn",
99
+];
tslint.json
@@ -5,6 +5,7 @@
5
],
"jsRules": {},
"rules": {
+ "forin": false,
"object-literal-sort-keys": false,
"indent": [
true,
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments