The parser (source file) is currently used to detect the start and the end of requests in Console with further processing of the requests done in MonacoEditorActionsProvider (source file).
If a request is invalid, the parser stops working and can't detect any requests that might be valid after the invalid one. That happens because if the parser sees any character that is unexpected, an error is thrown (see this line).
A possible fix for this would be to have some logic in the parser, that would catch the error, register it to be displayed in the Console for the user and then restart the parsing process. I think we already have that logic in the function multi_request (see this code):
The parser (source file) is currently used to detect the start and the end of requests in Console with further processing of the requests done in
MonacoEditorActionsProvider
(source file).If a request is invalid, the parser stops working and can't detect any requests that might be valid after the invalid one. That happens because if the parser sees any character that is unexpected, an error is thrown (see this line).
A possible fix for this would be to have some logic in the parser, that would catch the error, register it to be displayed in the Console for the user and then restart the parsing process. I think we already have that logic in the function
multi_request
(see this code):