Skip to content

Commit

Permalink
enable generation from a deeplink
Browse files Browse the repository at this point in the history
  • Loading branch information
ElinorW committed Jun 4, 2024
1 parent d3a2b11 commit 2c32919
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vscode/microsoft-kiota/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,6 @@ export async function activate(
}));
if (config.descriptionPath) {
await openTreeViewWithProgress(() => openApiTreeProvider.setDescriptionUrl(config.descriptionPath!));
await vscode.commands.executeCommand('setContext',`${treeViewId}.showIcons`, true);
await vscode.commands.executeCommand('setContext', `${treeViewId}.showRegenerateIcon`, false);
}
}
),
Expand Down
2 changes: 2 additions & 0 deletions vscode/microsoft-kiota/src/openApiTreeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ export class OpenApiTreeProvider implements vscode.TreeDataProvider<OpenApiTreeN
this.setAllSelected(result.rootNode, false);
}
this.rawRootNode = result.rootNode;
await vscode.commands.executeCommand('setContext',`${treeViewId}.showIcons`, true);
await vscode.commands.executeCommand('setContext', `${treeViewId}.showRegenerateIcon`, false);
}
}
}
Expand Down

0 comments on commit 2c32919

Please sign in to comment.