@ -94,6 +94,7 @@ export const LspProvider = ({ children }: { children: React.ReactNode }) => {
|
|||||||
// But the server happens async so we break this into two parts.
|
// But the server happens async so we break this into two parts.
|
||||||
// Below is the client and server promise.
|
// Below is the client and server promise.
|
||||||
const { lspClient: kclLspClient } = useMemo(() => {
|
const { lspClient: kclLspClient } = useMemo(() => {
|
||||||
|
console.log('lsp token', token)
|
||||||
if (!token || token === '' || TEST) {
|
if (!token || token === '' || TEST) {
|
||||||
return { lspClient: null }
|
return { lspClient: null }
|
||||||
}
|
}
|
||||||
|
|||||||
@ -63,6 +63,7 @@ onmessage = function (event) {
|
|||||||
let { wasmUrl }: KclWorkerOptions | CopilotWorkerOptions = eventData as
|
let { wasmUrl }: KclWorkerOptions | CopilotWorkerOptions = eventData as
|
||||||
| KclWorkerOptions
|
| KclWorkerOptions
|
||||||
| CopilotWorkerOptions
|
| CopilotWorkerOptions
|
||||||
|
console.log('Worker: Initialising', worker, wasmUrl)
|
||||||
initialise(wasmUrl)
|
initialise(wasmUrl)
|
||||||
.then((instantiatedModule) => {
|
.then((instantiatedModule) => {
|
||||||
console.log('Worker: WASM module loaded', worker, instantiatedModule)
|
console.log('Worker: WASM module loaded', worker, instantiatedModule)
|
||||||
|
|||||||
Reference in New Issue
Block a user