BGforgeNet / VScode-BGforge-MLS

BGforge MultiLanguage server
https://forums.bgforge.net/viewforum.php?f=35
Other
16 stars 5 forks source link

Fix handling when workspaceRoot is undefined #68

Closed Bubb13 closed 1 year ago

Bubb13 commented 1 year ago

workspaceRoot is undefined when a file is opened without first opening a folder. I've attempted to fix all instances where workspaceRoot === undefined caused a crash, undefined behavior, or an error to be logged.

Bubb13 commented 1 year ago

How's that?

burner1024 commented 1 year ago

Thanks. Generally, this situation should probably be handled on initialization, but that calls for larger review, possibly with support for multi-root workspace that vscode has. Until then, this should do.