-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LSP web extension with worker failed #26
Comments
The source code which load the export function activate(context: ExtensionContext) {
const clientOptions: LanguageClientOptions = {
documentSelector: [{ language: 'moonbit' }],
}
// Create a worker. The worker main file implements the language server.
const serverMain = Uri.joinPath(context.extensionUri, 'dist/server.web.js')
const worker = new Worker(serverMain.toString(true))
// create the language server client to communicate with the server running in the worker
const client = new LanguageClient('moonbit', 'Moonbit', clientOptions, worker)
const disposable = client.start()
context.subscriptions.push(disposable)
} This extension works pretty well on VS Code client, not sure if we need to change it to work in web ? |
I tried to install it from Open VSX, and got the same error: |
out of scope for this package this is not a VSCODE Implementation it is the packaging process and the dev dependencies to do your own how ever i could extract out of your screen shoots that you got type errors in your code i saw stuff like mixing of importScript:/// so you did maybe write that wrong some where and maybe 100 other failures you need to get eslint up and running first then typescript then proceed. |
I wanna to place this extension under the
sample
folder:It looks well and it has been deployed to the web server:
However, when I tried to run on web page, there's an error:
For the extension itself, the syntax highlight works, the snippets works. However, auto-complete not work(It depends on the
server.web.js
), just wondering if anything I'd missed?And it's weird that the
client.web.js
loaded succeed:The text was updated successfully, but these errors were encountered: