feature: First working version

This commit is contained in:
Keith Solomon
2025-06-22 10:51:16 -05:00
parent be8a2649f8
commit 21a7e972f2
6 changed files with 200 additions and 21 deletions

View File

@@ -1,26 +1,17 @@
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from 'vscode';
import { RoadmapTreeProvider } from './roadmapTree';
import * as path from 'path';
// This method is called when your extension is activated
// Your extension is activated the very first time the command is executed
export function activate(context: vscode.ExtensionContext) {
const checklistFile = path.join(vscode.workspace.workspaceFolders?.[0].uri.fsPath || '', 'Development Checklist.md');
console.log('[Extension] Using checklist path:', checklistFile);
// Use the console to output diagnostic information (console.log) and errors (console.error)
// This line of code will only be executed once when your extension is activated
console.log('Congratulations, your extension "vscode-project-roadmap" is now active!');
const roadmapProvider = new RoadmapTreeProvider(checklistFile);
vscode.window.registerTreeDataProvider('roadmapChecklist', roadmapProvider);
// The command has been defined in the package.json file
// Now provide the implementation of the command with registerCommand
// The commandId parameter must match the command field in package.json
const disposable = vscode.commands.registerCommand('vscode-project-roadmap.helloWorld', () => {
// The code you place here will be executed every time your command is executed
// Display a message box to the user
vscode.window.showInformationMessage('Hello World from VSCode Project Roadmap!');
});
context.subscriptions.push(disposable);
context.subscriptions.push(
vscode.commands.registerCommand('roadmapView.refresh', () => roadmapProvider.refresh())
);
}
// This method is called when your extension is deactivated
export function deactivate() {}