Desctruring exception is throwing in any workspace function like workspace.openTextDocument("util.js"); because the code below is never called.
|
/** init the monaco namespace. */ |
|
export function init(monacoNS: typeof Monaco): void { |
|
monaco = monacoNS; |
|
} |
Causing the code below to throw cannot destructure error
|
const { editor, languages } = monaco; |
Maybe add monaco as a parameter in registerBasicFeature instead?
We can pass it from the codes below.
|
export async function setup( |
|
monaco: typeof monacoNS, |
Desctruring exception is throwing in any workspace function like
workspace.openTextDocument("util.js");because the code below is never called.modern-monaco/src/lsp/client.ts
Lines 10 to 13 in b67ca74
Causing the code below to throw cannot destructure error
modern-monaco/src/lsp/client.ts
Line 81 in b67ca74
Maybe add monaco as a parameter in registerBasicFeature instead?
We can pass it from the codes below.
modern-monaco/src/lsp/typescript/setup.ts
Lines 26 to 27 in b67ca74