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 45ae245 commit 802dc40Copy full SHA for 802dc40
src/utils/workspaceUtils.ts
@@ -1,6 +1,7 @@
1
// Copyright (c) jdneo. All rights reserved.
2
// Licensed under the MIT license.
3
4
+import * as fse from "fs-extra";
5
import * as os from "os";
6
import * as path from "path";
7
import * as vscode from "vscode";
@@ -19,6 +20,7 @@ export async function selectWorkspaceFolder(): Promise<string> {
19
20
}
21
22
let needAsk: boolean = true;
23
+ await fse.ensureDir(workspaceFolderSetting);
24
for (const folder of vscode.workspace.workspaceFolders || []) {
25
if (isSubFolder(folder.uri.fsPath, workspaceFolderSetting)) {
26
needAsk = false;
@@ -36,6 +38,7 @@ export async function selectWorkspaceFolder(): Promise<string> {
36
38
{ placeHolder: "The LeetCode workspace folder is not opened in VS Code, would you like to open it?" },
37
39
);
40
41
+ // Todo: generate file first
42
switch (choice) {
43
case OpenOption.justOpenFile:
44
return workspaceFolderSetting;
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments