From b85611b59fb28156cec98ceb23336c85f5cae126 Mon Sep 17 00:00:00 2001 From: ZainChen <2384439266@qq.com> Date: Mon, 11 Mar 2019 09:47:11 +0800 Subject: [PATCH] vscode versions to v1.31.0, add collapes all. (#197) --- package-lock.json | 10 +++------- package.json | 2 +- src/extension.ts | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1869c5ed..c9156d9c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -55,8 +55,7 @@ "acorn": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-2.7.0.tgz", - "integrity": "sha1-q259nYhqrKiwhbwzEreaGYQz8Oc=", - "optional": true + "integrity": "sha1-q259nYhqrKiwhbwzEreaGYQz8Oc=" }, "acorn-globals": { "version": "1.0.9", @@ -528,8 +527,7 @@ "cssom": { "version": "0.3.6", "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.6.tgz", - "integrity": "sha512-DtUeseGk9/GBW0hl0vVPpU22iHL6YB5BUX7ml1hB+GMpo0NX5G4voX3kdWiMSEguFtcW3Vh3djqNF4aIe6ne0A==", - "optional": true + "integrity": "sha512-DtUeseGk9/GBW0hl0vVPpU22iHL6YB5BUX7ml1hB+GMpo0NX5G4voX3kdWiMSEguFtcW3Vh3djqNF4aIe6ne0A==" }, "cssstyle": { "version": "0.2.37", @@ -2129,8 +2127,7 @@ "prelude-ls": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", - "optional": true + "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=" }, "process-nextick-args": { "version": "2.0.0", @@ -2735,7 +2732,6 @@ "version": "0.3.2", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", - "optional": true, "requires": { "prelude-ls": "~1.1.2" } diff --git a/package.json b/package.json index 8a316d76..fa39fb68 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "license": "MIT", "icon": "resources/LeetCode.png", "engines": { - "vscode": "^1.23.0" + "vscode": "^1.30.1" }, "repository": { "type": "git", diff --git a/src/extension.ts b/src/extension.ts index aaf2ee4f..e1321f61 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -35,7 +35,7 @@ export async function activate(context: vscode.ExtensionContext): Promise leetCodeStatusBarItem, leetCodeChannel, leetCodeResultProvider, - vscode.window.registerTreeDataProvider("leetCodeExplorer", leetCodeTreeDataProvider), + vscode.window.createTreeView("leetCodeExplorer", { treeDataProvider: leetCodeTreeDataProvider, showCollapseAll: true }), vscode.languages.registerCodeLensProvider({ scheme: "file" }, codeLensProvider), vscode.commands.registerCommand("leetcode.deleteCache", () => cache.deleteCache()), vscode.commands.registerCommand("leetcode.toggleLeetCodeCn", () => plugin.switchEndpoint()),