File tree Expand file tree Collapse file tree 8 files changed +14
-4
lines changed Expand file tree Collapse file tree 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.
1717- Submit solutions to LeetCode
1818
1919### Sign In and Sign Out
20+ ![ SignInOut] ( resources/gif/sininout.gif )
2021
2122### Switch and Create Session
23+ ![ SwitchSession] ( resources/gif/switchsession.gif )
2224
2325### Show Problems in Explorer
26+ ![ ShowProblem] ( resources/gif/showproblem.gif )
2427
2528### Search Problems by Keywords
29+ ![ SearchProblem] ( resources/gif/searchproblem.gif )
2630
2731### Submit Solutions to LeetCode
32+ ![ SubmitSolution] ( resources/gif/solveproblem.gif )
2833
2934## Known Issues:
3035- 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
5156- 向 LeetCode 提交答案
5257
5358### 登陆及登出
59+ ![ SignInOut] ( resources/gif/sininout.gif )
5460
5561### 切换及创建 session
62+ ![ SwitchSession] ( resources/gif/switchsession.gif )
5663
5764### 在 Explorer 中展示题目
65+ ![ ShowProblem] ( resources/gif/showproblem.gif )
5866
5967### 根据关键字搜索题目
68+ ![ SearchProblem] ( resources/gif/searchproblem.gif )
6069
6170### 向 LeetCode 提交答案
71+ ![ SubmitSolution] ( resources/gif/solveproblem.gif )
6272
6373## 已知问题
6474- 本插件会根据文件名称推测当前的目标题目,因此建议不要改变文件名。
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ class LeetCodeManager extends EventEmitter implements ILeetCodeManager {
6464 }
6565 childProc . stdin . write ( `${ name } \n` ) ;
6666 const pwd : string | undefined = await vscode . window . showInputBox ( {
67- prompt : "Enter user name ." ,
67+ prompt : "Enter password ." ,
6868 password : true ,
6969 validateInput : ( s : string ) => s ? undefined : "Password must not be empty" ,
7070 } ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export namespace DialogOptions {
88 export const open : vscode . MessageItem = { title : "Open" } ;
99 export const yes : vscode . MessageItem = { title : "Yes" } ;
1010 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 " } ;
1212}
1313
1414export async function promptForOpenOutputChannel ( message : string , type : DialogType ) : Promise < void > {
@@ -37,13 +37,13 @@ export async function promptForSignIn(): Promise<void> {
3737 "Please sign in to LeetCode." ,
3838 DialogOptions . yes ,
3939 DialogOptions . no ,
40- DialogOptions . register ,
40+ DialogOptions . singUp ,
4141 ) ;
4242 switch ( choice ) {
4343 case DialogOptions . yes :
4444 await vscode . commands . executeCommand ( "leetcode.signin" ) ;
4545 break ;
46- case DialogOptions . register :
46+ case DialogOptions . singUp :
4747 opn ( "https://leetcode.com" ) ;
4848 break ;
4949 default :
You can’t perform that action at this time.
0 commit comments