File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/language_server/src/robotcode/language_server/robotframework Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,11 @@ def __init__(
165
165
@_logger .call
166
166
def _on_initialize (self , sender : Any , initialization_options : Optional [Any ] = None ) -> None :
167
167
if initialization_options is not None :
168
- self .robot_initialization_options = from_dict (initialization_options , RobotInitializationOptions )
168
+ try :
169
+ self .robot_initialization_options = from_dict (initialization_options , RobotInitializationOptions )
170
+ except Exception as e :
171
+ ex = e
172
+ self ._logger .exception (lambda : f"Can't parse initialization options: { ex } " , exc_info = e )
169
173
170
174
if self .robot_initialization_options .env :
171
175
for k , v in self .robot_initialization_options .env .items ():
You can’t perform that action at this time.
0 commit comments