First commit
This commit is contained in:
24
extension.js
Normal file
24
extension.js
Normal file
@@ -0,0 +1,24 @@
|
||||
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 };
|
||||
Reference in New Issue
Block a user