Skip to content

Commit

Permalink
Add Collapse All to JSON Outline (#1472)
Browse files Browse the repository at this point in the history
* Rename AzureRMTools.ts -> extension.ts

* Add Collapse All to JSON Outline
  • Loading branch information
StephenWeatherford authored May 4, 2022
1 parent 5db4cb6 commit f10cb56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@ export class AzureRMToolsExtension implements IProvideOpenedDocuments {

const jsonOutline: JsonOutlineProvider = new JsonOutlineProvider(context);
ext.jsonOutlineProvider = jsonOutline;
context.subscriptions.push(vscode.window.registerTreeDataProvider("azurerm-vscode-tools.template-outline", jsonOutline));
context.subscriptions.push(vscode.window.createTreeView(
"azurerm-vscode-tools.template-outline", {
treeDataProvider: jsonOutline,
showCollapseAll: true,
}));
context.subscriptions.push(this.getRegisteredRenameCodeActionProvider());
// For telemetry
registerCommand("azurerm-vscode-tools.completion-activated", (actionContext: IActionContext, args: object) => {
Expand Down

0 comments on commit f10cb56

Please sign in to comment.