Skip to content

Commit

Permalink
feat(vscode): Download extension bundle in extension activation inste…
Browse files Browse the repository at this point in the history
…ad of project initialization (#4287)

Update bundle download to extension activation
  • Loading branch information
ccastrotrejo committed Mar 1, 2024
1 parent 7fc19f7 commit a663771
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
import { ext } from '../../../extensionVariables';
import { localize } from '../../../localize';
import { type settingsFileContent } from '../../commands/dataMapper/extensionConfig';
import { downloadExtensionBundle } from '../bundleFeed';
import { updateFuncIgnore } from '../codeless/common';
import { writeFormattedJson } from '../fs';
import { getFunctionsCommand } from '../funcCoreTools/funcVersion';
Expand Down Expand Up @@ -213,7 +212,6 @@ export async function promptStartDesignTimeOption(context: IActionContext) {
const showStartDesignTimeMessage = !!getWorkspaceSetting<boolean>(showStartDesignTimeMessageSetting);

if (projectPath) {
await downloadExtensionBundle(context);
if (autoStartDesignTime) {
startDesignTimeApi(projectPath);
} else if (showStartDesignTimeMessage) {
Expand Down
2 changes: 2 additions & 0 deletions apps/vs-code-designer/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { supportedDataMapDefinitionFileExts, supportedSchemaFileExts } from './a
import { registerCommands } from './app/commands/registerCommands';
import { getResourceGroupsApi } from './app/resourcesExtension/getExtensionApi';
import type { AzureAccountTreeItemWithProjects } from './app/tree/AzureAccountTreeItemWithProjects';
import { downloadExtensionBundle } from './app/utils/bundleFeed';
import { stopDesignTimeApi } from './app/utils/codeless/startDesignTimeApi';
import { UriHandler } from './app/utils/codeless/urihandler';
import { getExtensionVersion } from './app/utils/extension';
Expand Down Expand Up @@ -54,6 +55,7 @@ export async function activate(context: vscode.ExtensionContext) {

runPostWorkflowCreateStepsFromCache();

await downloadExtensionBundle(activateContext);
await startOnboarding(activateContext);

ext.extensionVersion = getExtensionVersion();
Expand Down

0 comments on commit a663771

Please sign in to comment.