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

fix: Folder not exist when select the workspace folder#713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jdneo merged 1 commit intomasterfromcs/bugfix
Jun 8, 2021
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletionssrc/utils/workspaceUtils.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
// Copyright (c) jdneo. All rights reserved.
// Licensed under the MIT license.

import * as fse from "fs-extra";
import * as os from "os";
import * as path from "path";
import * as vscode from "vscode";
Expand All@@ -19,6 +20,7 @@ export async function selectWorkspaceFolder(): Promise<string> {
}
}
let needAsk: boolean = true;
await fse.ensureDir(workspaceFolderSetting);
for (const folder of vscode.workspace.workspaceFolders || []) {
if (isSubFolder(folder.uri.fsPath, workspaceFolderSetting)) {
needAsk = false;
Expand All@@ -36,6 +38,7 @@ export async function selectWorkspaceFolder(): Promise<string> {
{ placeHolder: "The LeetCode workspace folder is not opened in VS Code, would you like to open it?" },
);

// Todo: generate file first
switch (choice) {
case OpenOption.justOpenFile:
return workspaceFolderSetting;
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp