-
Tag: @msujew So, I've gotten in the habit of running For some reason, the build failed, and I narrowed it down to an unhandled For now, I just did this which passes all of the tests (probably not good), but I'm fairly sure this isn't actually what was intended: services.lsp.LanguageServer.onInitialize(params => {
if (params.workspaceFolders === undefined) {
throw new Error('WorkspaceFolder[] is undefined.');
} else {
this.folders = params.workspaceFolders;
}
}); Since it's entirely possible I inadvertently broke something, I thought I'd ask first. However, I do see that this was just recently touched in this commit so maybe it just snuck through and nobody has seen it yet. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
In what sense did the build break? Did TypeScript complain that |
Beta Was this translation helpful? Give feedback.
In what sense did the build break? Did TypeScript complain that
params.workspaceFolders
can beundefined
? Because that's not the case per the typings. Even if it were during runtime, we deal correctly with it later.