Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2024-04-16 22:51:05 -07:00
parent 4abb8fc267
commit 30b9966342
2 changed files with 2 additions and 0 deletions

View File

@ -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 }
}

View File

@ -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)