fix tree component and update sqlservices (#13968)

This commit is contained in:
Alan Ren
2021-01-14 16:26:30 -08:00
committed by GitHub
parent 9e3bfea922
commit 09cce42233
3 changed files with 17 additions and 1 deletions

View File

@@ -5,3 +5,10 @@ This is a sample extension that will show some basic model-backed UI scenarios.
- `yarn install` - to install the dependencies
- `yarn build` - to build the code
- `vsce package` - to produce an extension installation package
## Launch ADS Dev instance with this extension
- `yarn install` - to install dependencies
- `yarn build` - to build the code
- Launch VSCode and open the azuredatastudio's code folder, run the 'Launch azuredatastudio' debug option (to work around the issue. The next step won't work without doing this first)
- Launch VSCode and open this folder, run the 'Debug in enlistment'
- Once ADS launches, you should be able to run the sqlservices commands, for example: sqlservices.openDialog

View File

@@ -0,0 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/// <reference path='../../../../src/sql/azdata.proposed.d.ts'/>
/// <reference path='../../../../src/vs/vscode.proposed.d.ts'/>

View File

@@ -157,7 +157,9 @@ export default class TreeComponent extends ComponentBase<azdata.TreeProperties>
public setProperties(properties: { [key: string]: any; }): void {
super.setProperties(properties);
this._treeRenderer.options.withCheckbox = this.withCheckbox;
if (this._treeRenderer) {
this._treeRenderer.options.withCheckbox = this.withCheckbox;
}
}
public get withCheckbox(): boolean {