Skip to content

Commit

Permalink
fix(vscode): Add conditional clause for already initialized projects (#…
Browse files Browse the repository at this point in the history
…4280)

* Add conditional clause for already initialized projects

* Update conditional
  • Loading branch information
ccastrotrejo committed Feb 29, 2024
1 parent 498fef9 commit b464f64
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { tryParseFuncVersion } from '../funcCoreTools/funcVersion';
import { tryGetLogicAppProjectRoot } from '../verifyIsProject';
import { getWorkspaceSetting, updateGlobalSetting } from './settings';
import { verifyTargetFramework } from './verifyTargetFramework';
import { isEmptyString } from '@microsoft/utils-logic-apps';
import { isEmptyString, isNullOrUndefined } from '@microsoft/utils-logic-apps';
import type { IActionContext } from '@microsoft/vscode-azext-utils';
import { callWithTelemetryAndErrorHandling, DialogResponses } from '@microsoft/vscode-azext-utils';
import type { FuncVersion } from '@microsoft/vscode-extension';
Expand Down Expand Up @@ -52,7 +52,7 @@ export async function verifyVSCodeConfigOnActivate(
break;
default:
}
} else {
} else if (isNullOrUndefined(version)) {
await promptToInitializeProject(workspacePath, context);
}
}
Expand Down

0 comments on commit b464f64

Please sign in to comment.