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