Skip to content

Commit

Permalink
fix icons display
Browse files Browse the repository at this point in the history
  • Loading branch information
ElinorW committed May 20, 2024
1 parent 3d49d8d commit 2a0db34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vscode/microsoft-kiota/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export async function activate(
globalClientKey = clientKey;
globalClientObject = clientObject;
globalGenerationType = generationType;
await loadEditPaths(clientObject, openApiTreeProvider);
await loadEditPaths(clientObject, openApiTreeProvider);
await vscode.commands.executeCommand('setContext',`${treeViewId}.showIcons`, false);
await vscode.commands.executeCommand('setContext', `${treeViewId}.showRegenerateIcon`, true);
}),
Expand Down Expand Up @@ -667,6 +667,7 @@ async function showUpgradeWarningMessage(clientPath: string, context: vscode.Ext

async function loadLockFile(node: { fsPath: string }, openApiTreeProvider: OpenApiTreeProvider): Promise<void> {
await openTreeViewWithProgress(() => openApiTreeProvider.loadLockFile(node.fsPath));
await vscode.commands.executeCommand('setContext',`${treeViewId}.showIcons`, true);
}

async function loadEditPaths(clientObject: any, openApiTreeProvider: OpenApiTreeProvider): Promise<void> {
Expand Down

0 comments on commit 2a0db34

Please sign in to comment.