Skip to content

Commit

Permalink
refactor: rename command for consistency
Browse files Browse the repository at this point in the history
Signed-off-by: Trae Yelovich <[email protected]>
  • Loading branch information
traeok committed Dec 27, 2024
1 parent 390505d commit b3019b8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/zowe-explorer/src/trees/job/JobInit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@ export class JobInit {
context.subscriptions.push(
vscode.commands.registerCommand("zowe.jobs.tableView", async (node, nodeList) => JobTableView.handleCommand(context, node, nodeList))
);
context.subscriptions.push(
vscode.commands.registerCommand("zowe.jobs.loadMoreRecords", async (document: vscode.TextDocument) => {
await JobFSProvider.instance.fetchSpoolAtUri(
document.uri.with({ query: `?startRecord=${document.lineCount - 1}` }),
vscode.window.activeTextEditor
);
})
);
context.subscriptions.push(
vscode.workspace.onDidOpenTextDocument((doc) => {
if (doc.uri.scheme !== ZoweScheme.Jobs) {
Expand All @@ -163,16 +171,8 @@ export class JobInit {
})
);
context.subscriptions.push(
vscode.commands.registerCommand("zowe.jobs.fetchMore", async (document: vscode.TextDocument) => {
await JobFSProvider.instance.fetchSpoolAtUri(
document.uri.with({ query: `?startRecord=${document.lineCount - 1}` }),
vscode.window.activeTextEditor
);
})
vscode.languages.registerCodeLensProvider({ scheme: ZoweScheme.Jobs }, new LoadMoreCodeLens("zowe.jobs.loadMoreRecords"))
);
const codeLensProvider = new LoadMoreCodeLens("zowe.jobs.fetchMore");
const disposableCodeLens = vscode.languages.registerCodeLensProvider({ scheme: ZoweScheme.Jobs }, codeLensProvider);
context.subscriptions.push(disposableCodeLens);

SharedInit.initSubscribers(context, jobsProvider);
return jobsProvider;
Expand Down

0 comments on commit b3019b8

Please sign in to comment.