asciidoctor-vscode
asciidoctor-vscode copied to clipboard
Cant use asciidoctor in my own extension as soon as i active asciidoctor-vscode extension
Hello there, im the maintainer of a another extension based on asciidoc (https://github.com/flobilosaurus/vscode-asciidoc-slides).
As soon as i active this extension in my vscode, im unable to import asciidoctor in my extension code.
I just started a fresh extension from scratch and this does not work:
import * as vscode from 'vscode'
const asciidoctor = require('asciidoctor')()
export function activate(context: vscode.ExtensionContext) {
console.log('Congratulations, your extension "helloworld-sample" is now active!');
// 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('extension.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!`);
});
context.subscriptions.push(disposable);
}
It works if your extension is uninstalled but i doesnt if its activated. The error message i get is the following:
2024-05-25 23:35:24.054 [error] TypeError: Opal.queue is not a function
I dont know much about Opal the following things seem to happen: Opal.queue seems to be undefined as soon as you extension is used. But this function seems to be required by asciidoctor.
Would be great if you could help me.