File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -716,6 +716,11 @@ procedure TextDocument_Completion(Rpc: TRpcPeer; Request: TRpcRequest);
716716 except
717717 on E: ERpcError do
718718 begin
719+ DebugLog(' Exception ERpcError when handling textDocument/completion: code %d, message %s' , [
720+ E.Code,
721+ E.Message
722+ ]);
723+
719724 FreeAndNil(Response);
720725
721726 case SyntaxErrorReportingMode of
@@ -1015,8 +1020,14 @@ procedure TextDocument_JumpTo(
10151020 except
10161021 on E: ECodeToolError do
10171022 begin
1018- // exeption raised when we search identifier in some comments words
1019- // has id 20170421200105 so we then do not show message window in vscode
1023+ DebugLog(' Exception ECodeToolError when handling textDocument/declaration or textDocument/definition: id %s, message %s' , [
1024+ E.Id,
1025+ E.Message
1026+ ]);
1027+
1028+ { Ignore exception id 20170421200105 when we search identifier
1029+ in some comments words.
1030+ Do not show error message in VS Code in this case, too spammy. }
10201031 if E.Id <> 20170421200105 then
10211032 begin
10221033 ShowErrorMessage(Rpc, PositionForErrorPrefix(E) + E.Message);
You can’t perform that action at this time.
0 commit comments