mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Remove proposed API
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
"publisher": "vscode-samples",
|
||||
"enableProposedApi": true,
|
||||
"engines": {
|
||||
"vscode": "^1.46.0"
|
||||
"vscode": "^1.52.0"
|
||||
},
|
||||
"categories": [
|
||||
"Other"
|
||||
@ -231,4 +231,4 @@
|
||||
"rimraf": "^2.6.2",
|
||||
"minimist": "^0.2.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -70,10 +70,10 @@ function getChildren(key: string): string[] {
|
||||
return [];
|
||||
}
|
||||
|
||||
function getTreeItem(key: string): vscode.TreeItem2 {
|
||||
function getTreeItem(key: string): vscode.TreeItem {
|
||||
const treeElement = getTreeElement(key);
|
||||
return {
|
||||
label: <vscode.TreeItemLabel>{ label: key, highlights: key.length > 1 ? [[key.length - 2, key.length - 1]] : void 0},
|
||||
label: /**vscode.TreeItemLabel**/<any>{ label: key, highlights: key.length > 1 ? [[key.length - 2, key.length - 1]] : void 0},
|
||||
tooltip: `Tooltip for ${key}`,
|
||||
collapsibleState: treeElement && Object.keys(treeElement).length ? vscode.TreeItemCollapsibleState.Collapsed : vscode.TreeItemCollapsibleState.None
|
||||
};
|
||||
|
||||
2062
tree-view-sample/vscode.proposed.d.ts
vendored
2062
tree-view-sample/vscode.proposed.d.ts
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user