multiroot - send telemetry event when workspace#rootPath is accessed

This commit is contained in:
Johannes Rieken
2017-06-09 11:10:18 +02:00
parent 9acebf6374
commit 2792c5cd97

View File

@@ -377,6 +377,10 @@ export function createApiFactory(
// namespace: workspace
const workspace: typeof vscode.workspace = {
get rootPath() {
telemetryService.publicLog('api-getter', {
name: 'workspace#rootPath',
extension: extension.id
});
return extHostWorkspace.getPath();
},
set rootPath(value) {