Skip to content

Commit 0dc4647

Browse files
committed
Call basic report _basic_ instead of simple
1 parent 5826892 commit 0dc4647

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

code4z/example-com-extension/commands/basic-report.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const execFile = util.promisify(require('node:child_process').execFile);
55

66
const REXX_EXEC = "PUBLIC.REXX(BASIC)";
77

8-
const simpleReport = context => async () => {
8+
const basicReport = context => async () => {
99
await vscode.workspace.fs.createDirectory(context.globalStorageUri);
1010
const reportUri = vscode.Uri.joinPath(context.globalStorageUri, "report.txt");
1111

@@ -26,5 +26,5 @@ async function execRexx(dsn) {
2626
}
2727

2828
module.exports = {
29-
simpleReport
29+
basicReport
3030
}

code4z/example-com-extension/extension.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
const vscode = require('vscode');
22
const { registerReportCommand, ReportProvider } = require("./commands/enhanced-report");
33
const { openDocsCommand } = require('./commands/open-docs');
4-
const { simpleReport } = require('./commands/basic-report');
4+
const { basicReport } = require('./commands/basic-report');
55

66
/**
77
* @param {vscode.ExtensionContext} context
88
*/
99
function activate(context) {
1010
const log = vscode.window.createOutputChannel('Example.com', { log: true });
1111

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-
2212
// Open Docs
2313
const openDocsDisp = vscode.commands.registerCommand('com.example.open.docs', openDocsCommand);
2414
context.subscriptions.push(openDocsDisp);
2515

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+
2626
console.log('Congrats, your com.example extension is now active!');
2727
}
2828

code4z/example-com-extension/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "0.0.1",
66
"publisher": "none",
77
"icon": "resources/icon.png",
8-
"license": "SEE LICENSE IN LICENSE",
8+
"license": "SEE LICENSE IN LICENSE",
99
"repository": {
1010
"url": "https://github.com/BroadcomMFD/broadcom-product-scripts"
1111
},
@@ -17,18 +17,18 @@
1717
"contributes": {
1818
"commands": [
1919
{
20-
"command": "com.example.simple.report",
21-
"title": "Basic Report on a Dataset",
20+
"command": "com.example.open.docs",
21+
"title": "Open Docs",
2222
"category": "example.com"
2323
},
2424
{
25-
"command": "com.example.report.on.dataset",
26-
"title": "Enhanced Report on a Dataset",
25+
"command": "com.example.report.basic",
26+
"title": "Basic Report on a Dataset",
2727
"category": "example.com"
2828
},
2929
{
30-
"command": "com.example.open.docs",
31-
"title": "Open Docs",
30+
"command": "com.example.report.enhanced",
31+
"title": "Enhanced Report on a Dataset",
3232
"category": "example.com"
3333
}
3434
],
@@ -56,4 +56,4 @@
5656
"check": "tsc --pretty",
5757
"package": "vsce package"
5858
}
59-
}
59+
}

0 commit comments

Comments
 (0)