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