Movatterモバイル変換


[0]ホーム

URL:


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

Commitbc61447

Browse files
authored
Use internal build cli (LeetCode-OpenSource#179)
1 parentd3d522a commitbc61447

File tree

6 files changed

+28
-24
lines changed

6 files changed

+28
-24
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
|---|---|---|
121121
|`leetcode.hideSolved`| Specify to hide the solved problems or not|`false`|
122122
|`leetcode.showLocked`| Specify to show the locked problems or not. Only Premium users could open the locked problems|`false`|
123-
|`leetcode.defaultLanguage`| Specify the default language used to solve the problem. Supported languages are:`bash`,`c`,`cpp`,`csharp`,`golang`,`java`,`javascript`,`kotlin`,`mysql`,`python`,`python3`,`ruby`,`scala`,`swift`|`N/A`|
123+
|`leetcode.defaultLanguage`| Specify the default language used to solve the problem. Supported languages are:`bash`,`c`,`cpp`,`csharp`,`golang`,`java`,`javascript`,`kotlin`,`mysql`,`php`,`python`,`python3`,`ruby`,`rust`,`scala`,`swift`|`N/A`|
124124
|`leetcode.useWsl`| Specify whether to use WSL or not|`false`|
125125
|`leetcode.endpoint`| Specify the active endpoint. Supported endpoints are:`leetcode`,`leetcode-cn`|`leetcode`|
126126
|`leetcode.outputFolder`| Specify the relative path to save the problem files. Besides using customized path, there are also several reserved words which can be used here: <ul><li>`${tag}`: Categorize the problem according to their tags.<li>`${language}`: Categorize the problem according to their language.</li><li>`${difficulty}`: Categorize the problem according to their difficulty.</li></ul>| N/A|

‎docs/README_zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
|---|---|---|
121121
|`leetcode.hideSolved`| 指定是否要隐藏已解决的问题|`false`|
122122
|`leetcode.showLocked`| 指定是否显示付费题目,只有付费账户才可以打开付费题目|`false`|
123-
|`leetcode.defaultLanguage`| 指定答题时使用的默认语言,可选语言有:`bash`,`c`,`cpp`,`csharp`,`golang`,`java`,`javascript`,`kotlin`,`mysql`,`python`,`python3`,`ruby`,`scala`,`swift`|`N/A`|
123+
|`leetcode.defaultLanguage`| 指定答题时使用的默认语言,可选语言有:`bash`,`c`,`cpp`,`csharp`,`golang`,`java`,`javascript`,`kotlin`,`mysql`,`php`,`python`,`python3`,`ruby`,`rust`,`scala`,`swift`|`N/A`|
124124
|`leetcode.useWsl`| 指定是否启用 WSL|`false`|
125125
|`leetcode.endpoint`| 指定使用的终端,可用终端有:`leetcode`,`leetcode-cn`|`leetcode`|
126126
|`leetcode.outputFolder`| 指定保存文件时所用的相对文件夹路径。除了用户自定义路径外,也可以使用保留项,包括:<ul><li>`${tag}`: 根据题目的类别进行分类。<li>`${language}`: 根据题目的语言进行分类。</li><li>`${difficulty}`: 根据题目的难度进行分类。</li></ul>| N/A|

‎package-lock.json

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@
283283
},
284284
"dependencies": {
285285
"fs-extra":"^6.0.1",
286-
"leetcode-cli":"2.6.1",
286+
"vsc-leetcode-cli":"2.6.2",
287287
"lodash.kebabcase":"^4.1.1",
288288
"require-from-string":"^2.0.2"
289289
}

‎src/leetCodeExecutor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class LeetCodeExecutor {
1717
privateleetCodeRootPathInWsl:string;
1818

1919
constructor(){
20-
this.leetCodeRootPath=path.join(__dirname,"..","..","node_modules","leetcode-cli");
20+
this.leetCodeRootPath=path.join(__dirname,"..","..","node_modules","vsc-leetcode-cli");
2121
this.leetCodeRootPathInWsl="";
2222
}
2323

‎src/shared.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ export const languages: string[] = [
2222
"javascript",
2323
"kotlin",
2424
"mysql",
25+
"php",
2526
"python",
2627
"python3",
2728
"ruby",
29+
"rust",
2830
"scala",
2931
"swift",
3032
];
@@ -39,9 +41,11 @@ export const langExt: Map<string, string> = new Map([
3941
["javascript","js"],
4042
["kotlin","kt"],
4143
["mysql","sql"],
44+
["php","php"],
4245
["python","py"],
4346
["python3","py"],
4447
["ruby","rb"],
48+
["rust","rs"],
4549
["scala","scala"],
4650
["swift","swift"],
4751
]);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp