Show "Collapse all" command on project outline view (#1066)

This commit is contained in:
Mikhail Po 2020-02-13 01:45:07 +03:00 коммит произвёл GitHub
Родитель ae75ef79d2
Коммит e4e3280b82
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 8 добавлений и 6 удалений

Просмотреть файл

@ -20,7 +20,7 @@
"native"
],
"engines": {
"vscode": "^1.29.1"
"vscode": "^1.30.0"
},
"categories": [
"Other"
@ -1277,7 +1277,7 @@
"tslint": "^5.9.1",
"typedoc": "^0.15.3",
"typescript": "^3.7.2",
"vscode": "^1.1.35",
"vscode": "^1.1.36",
"vscode-nls-dev": "^3.2.6",
"webpack": "^4.39.2",
"webpack-cli": "^3.3.7"

Просмотреть файл

@ -201,8 +201,10 @@ class ExtensionManager implements vscode.Disposable {
* The project outline tree data provider
*/
private readonly _projectOutlineProvider = new ProjectOutlineProvider();
private readonly _projectOutlineDisposer
= vscode.window.registerTreeDataProvider('cmake.outline', this._projectOutlineProvider);
private readonly _projectOutlineTreeView = vscode.window.createTreeView('cmake.outline', {
treeDataProvider: this._projectOutlineProvider,
showCollapseAll: true
});
/**
* CppTools project configuration provider. Tells cpptools how to search for
@ -294,7 +296,7 @@ class ExtensionManager implements vscode.Disposable {
this._onDidChangeActiveTextEditorSub.dispose();
// tslint:disable-next-line: no-floating-promises
this._kitsWatcher.close();
this._projectOutlineDisposer.dispose();
this._projectOutlineTreeView.dispose();
if (this._cppToolsAPI) {
this._cppToolsAPI.dispose();
}

Просмотреть файл

@ -5195,7 +5195,7 @@ vscode-test@^0.4.1:
http-proxy-agent "^2.1.0"
https-proxy-agent "^2.2.1"
vscode@^1.1.35:
vscode@^1.1.36:
version "1.1.36"
resolved "https://registry.yarnpkg.com/vscode/-/vscode-1.1.36.tgz#5e1a0d1bf4977d0c7bc5159a9a13d5b104d4b1b6"
integrity sha512-cGFh9jmGLcTapCpPCKvn8aG/j9zVQ+0x5hzYJq5h5YyUXVGa1iamOaB2M2PZXoumQPES4qeAP1FwkI0b6tL4bQ==