|
1 | 1 | const vscode = require('vscode'); |
2 | 2 | const { registerReportCommand, ReportProvider } = require("./commands/enhanced-report"); |
3 | 3 | const { openDocsCommand } = require('./commands/open-docs'); |
4 | | -const { simpleReport } = require('./commands/basic-report'); |
| 4 | +const { basicReport } = require('./commands/basic-report'); |
5 | 5 |
|
6 | 6 | /** |
7 | 7 | * @param {vscode.ExtensionContext} context |
8 | 8 | */ |
9 | 9 | function activate(context) { |
10 | 10 | const log = vscode.window.createOutputChannel('Example.com', { log: true }); |
11 | 11 |
|
12 | | - // Report on Dataset |
13 | | - const reportDisp = vscode.commands.registerCommand('com.example.report.on.dataset', registerReportCommand(context, log)); |
14 | | - const provider = new ReportProvider; |
15 | | - const providerRegistration = vscode.workspace.registerTextDocumentContentProvider(ReportProvider.scheme, provider); |
16 | | - context.subscriptions.push(reportDisp, providerRegistration); |
17 | | - |
18 | | - // Simple Report |
19 | | - const simpleReportDisp = vscode.commands.registerCommand('com.example.simple.report', simpleReport(context)); |
20 | | - context.subscriptions.push(simpleReportDisp); |
21 | | - |
22 | 12 | // Open Docs |
23 | 13 | const openDocsDisp = vscode.commands.registerCommand('com.example.open.docs', openDocsCommand); |
24 | 14 | context.subscriptions.push(openDocsDisp); |
25 | 15 |
|
| 16 | + // Basic Report |
| 17 | + const basicReportDisp = vscode.commands.registerCommand('com.example.report.basic', basicReport(context)); |
| 18 | + context.subscriptions.push(basicReportDisp); |
| 19 | + |
| 20 | + // Enhanced Report |
| 21 | + const reportDisp = vscode.commands.registerCommand('com.example.report.enhanced', registerReportCommand(context, log)); |
| 22 | + const provider = new ReportProvider; |
| 23 | + const providerRegistration = vscode.workspace.registerTextDocumentContentProvider(ReportProvider.scheme, provider); |
| 24 | + context.subscriptions.push(reportDisp, providerRegistration); |
| 25 | + |
26 | 26 | console.log('Congrats, your com.example extension is now active!'); |
27 | 27 | } |
28 | 28 |
|
|
0 commit comments