fix crash on not passing "userLanguages" option
Since the server can be used by various clients and there is no guarantee that the "userLanguages" are provided, handle that case gracefully and don't crash.master
parent
67f83534a2
commit
599bf60388
|
@ -156,7 +156,9 @@ async function createProjectService(
|
|||
editor: {
|
||||
connection,
|
||||
globalSettings: params.initializationOptions.configuration as Settings,
|
||||
userLanguages: params.initializationOptions.userLanguages,
|
||||
userLanguages: params.initializationOptions.userLanguages
|
||||
? params.initializationOptions.userLanguages
|
||||
: {},
|
||||
// TODO
|
||||
capabilities: {
|
||||
configuration: true,
|
||||
|
|
Loading…
Reference in New Issue