From f10cb56814845bd4e695980aee466f14481538a6 Mon Sep 17 00:00:00 2001 From: "Stephen Weatherford (MSFT)" Date: Wed, 4 May 2022 13:22:04 -0700 Subject: [PATCH] Add Collapse All to JSON Outline (#1472) * Rename AzureRMTools.ts -> extension.ts * Add Collapse All to JSON Outline --- src/extension.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index 77aaddf4e..772ae0a20 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -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) => {