File tree
Expand file treeCollapse file tree1 file changed
+5
-1
lines changed Expand file treeCollapse file tree1 file changed
+5
-1
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -29,14 +29,17 @@ export async function selectWorkspaceFolder(): Promise<string> {
|
29 | 29 | if (needAsk) {
|
30 | 30 | const choice: string | undefined = await vscode.window.showQuickPick(
|
31 | 31 | [
|
| 32 | +OpenOption.justOpenFile, |
32 | 33 | OpenOption.openInCurrentWindow,
|
33 | 34 | OpenOption.openInNewWindow,
|
34 | 35 | OpenOption.addToWorkspace,
|
35 | 36 | ],
|
36 |
| -{ placeHolder: "Select how you would like to open your workspace folder" }, |
| 37 | +{ placeHolder: "The LeetCode workspace folder is not opened in VS Code, would you like to open it?" }, |
37 | 38 | );
|
38 | 39 |
|
39 | 40 | switch (choice) {
|
| 41 | +case OpenOption.justOpenFile: |
| 42 | +return workspaceFolderSetting; |
40 | 43 | case OpenOption.openInCurrentWindow:
|
41 | 44 | await vscode.commands.executeCommand("vscode.openFolder", vscode.Uri.file(workspaceFolderSetting), false);
|
42 | 45 | return "";
|
@@ -117,6 +120,7 @@ async function determineLeetCodeFolder(): Promise<string> {
|
117 | 120 | }
|
118 | 121 |
|
119 | 122 | enum OpenOption {
|
| 123 | +justOpenFile = "Just open the problem file", |
120 | 124 | openInCurrentWindow = "Open in current window",
|
121 | 125 | openInNewWindow = "Open in new window",
|
122 | 126 | addToWorkspace = "Add to workspace",
|
|
You can’t perform that action at this time.
0 commit comments