26 lines
598 B
JavaScript
26 lines
598 B
JavaScript
const vscode = require('vscode');
|
|
const path = require('path');
|
|
|
|
function activate(context) {
|
|
|
|
const factory = {
|
|
createDebugAdapterDescriptor(session) {
|
|
const command = "node";
|
|
const args = [path.join(__dirname, "adapter", "debugAdapter.js")];
|
|
|
|
return new vscode.DebugAdapterExecutable(command, args);
|
|
}
|
|
};
|
|
|
|
context.subscriptions.push(
|
|
vscode.debug.registerDebugAdapterDescriptorFactory(
|
|
"mini-debugger",
|
|
factory
|
|
)
|
|
);
|
|
}
|
|
|
|
function deactivate() {}
|
|
|
|
module.exports = { activate, deactivate };
|