Remove proposed API

This commit is contained in:
Alex Ross
2020-12-01 11:25:23 +01:00
parent f69a1c9cf1
commit b3621dd88a
3 changed files with 4 additions and 2066 deletions

View File

@ -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"
}
}
}

View File

@ -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
};

File diff suppressed because it is too large Load Diff