File tree 8 files changed +14
-4
lines changed
8 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,19 @@ Solve LeetCode problems in VS Code.
17
17
- Submit solutions to LeetCode
18
18
19
19
### Sign In and Sign Out
20
+ ![ SignInOut] ( resources/gif/sininout.gif )
20
21
21
22
### Switch and Create Session
23
+ ![ SwitchSession] ( resources/gif/switchsession.gif )
22
24
23
25
### Show Problems in Explorer
26
+ ![ ShowProblem] ( resources/gif/showproblem.gif )
24
27
25
28
### Search Problems by Keywords
29
+ ![ SearchProblem] ( resources/gif/searchproblem.gif )
26
30
27
31
### Submit Solutions to LeetCode
32
+ ![ SubmitSolution] ( resources/gif/solveproblem.gif )
28
33
29
34
## Known Issues:
30
35
- This extension will infer the current target problem according to the active editing file. Please do not change the file name.
@@ -51,14 +56,19 @@ This extension is based on [@skygragon](https://github.com/skygragon)'s [leetcod
51
56
- 向 LeetCode 提交答案
52
57
53
58
### 登陆及登出
59
+ ![ SignInOut] ( resources/gif/sininout.gif )
54
60
55
61
### 切换及创建 session
62
+ ![ SwitchSession] ( resources/gif/switchsession.gif )
56
63
57
64
### 在 Explorer 中展示题目
65
+ ![ ShowProblem] ( resources/gif/showproblem.gif )
58
66
59
67
### 根据关键字搜索题目
68
+ ![ SearchProblem] ( resources/gif/searchproblem.gif )
60
69
61
70
### 向 LeetCode 提交答案
71
+ ![ SubmitSolution] ( resources/gif/solveproblem.gif )
62
72
63
73
## 已知问题
64
74
- 本插件会根据文件名称推测当前的目标题目,因此建议不要改变文件名。
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ class LeetCodeManager extends EventEmitter implements ILeetCodeManager {
64
64
}
65
65
childProc . stdin . write ( `${ name } \n` ) ;
66
66
const pwd : string | undefined = await vscode . window . showInputBox ( {
67
- prompt : "Enter user name ." ,
67
+ prompt : "Enter password ." ,
68
68
password : true ,
69
69
validateInput : ( s : string ) => s ? undefined : "Password must not be empty" ,
70
70
} ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export namespace DialogOptions {
8
8
export const open : vscode . MessageItem = { title : "Open" } ;
9
9
export const yes : vscode . MessageItem = { title : "Yes" } ;
10
10
export const no : vscode . MessageItem = { title : "No" , isCloseAffordance : true } ;
11
- export const register : vscode . MessageItem = { title : "Register " } ;
11
+ export const singUp : vscode . MessageItem = { title : "Sign up " } ;
12
12
}
13
13
14
14
export async function promptForOpenOutputChannel ( message : string , type : DialogType ) : Promise < void > {
@@ -37,13 +37,13 @@ export async function promptForSignIn(): Promise<void> {
37
37
"Please sign in to LeetCode." ,
38
38
DialogOptions . yes ,
39
39
DialogOptions . no ,
40
- DialogOptions . register ,
40
+ DialogOptions . singUp ,
41
41
) ;
42
42
switch ( choice ) {
43
43
case DialogOptions . yes :
44
44
await vscode . commands . executeCommand ( "leetcode.signin" ) ;
45
45
break ;
46
- case DialogOptions . register :
46
+ case DialogOptions . singUp :
47
47
opn ( "https://leetcode.com" ) ;
48
48
break ;
49
49
default :
You can’t perform that action at this time.
0 commit comments