Skip to content

Commit

Permalink
bugfix: Add telemetry for the newly added commands (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdneo committed Jan 10, 2020
1 parent 072245d commit 8478c02
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/views/dependencyDataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@ export class DependencyDataProvider implements TreeDataProvider<ExplorerNode> {
constructor(public readonly context: ExtensionContext) {
context.subscriptions.push(commands.registerCommand(Commands.VIEW_PACKAGE_REFRESH, (debounce?: boolean) => this.refreshWithLog(debounce)));
context.subscriptions.push(commands.registerCommand(Commands.VIEW_PACKAGE_REVEAL_FILE_OS,
(node: INodeData) => commands.executeCommand("revealFileInOS", Uri.parse(node.uri))));
instrumentOperation(Commands.VIEW_PACKAGE_REVEAL_FILE_OS, (_operationId, node: INodeData) =>
commands.executeCommand("revealFileInOS", Uri.parse(node.uri)))));
context.subscriptions.push(commands.registerCommand(Commands.VIEW_PACKAGE_COPY_FILE_PATH,
(node: INodeData) => commands.executeCommand("copyFilePath", Uri.parse(node.uri))));
instrumentOperation(Commands.VIEW_PACKAGE_COPY_FILE_PATH, (_operationId, node: INodeData) =>
commands.executeCommand("copyFilePath", Uri.parse(node.uri)))));
context.subscriptions.push(commands.registerCommand(Commands.VIEW_PACKAGE_COPY_RELATIVE_FILE_PATH,
(node: INodeData) => commands.executeCommand("copyRelativeFilePath", Uri.parse(node.uri))));
instrumentOperation(Commands.VIEW_PACKAGE_COPY_RELATIVE_FILE_PATH, (_operationId, node: INodeData) =>
commands.executeCommand("copyRelativeFilePath", Uri.parse(node.uri)))));
context.subscriptions.push(commands.registerCommand(Commands.VIEW_PACKAGE_OPEN_FILE,
instrumentOperation(Commands.VIEW_PACKAGE_OPEN_FILE, (_operationId, uri) => this.openFile(uri))));
context.subscriptions.push(commands.registerCommand(Commands.VIEW_PACKAGE_OUTLINE,
Expand Down

0 comments on commit 8478c02

Please sign in to comment.