16 |
16 |
17 from eric7 import Globals, Preferences |
17 from eric7 import Globals, Preferences |
18 from eric7.EricNetwork.EricJsonServer import EricJsonServer |
18 from eric7.EricNetwork.EricJsonServer import EricJsonServer |
19 from eric7.EricWidgets import EricMessageBox |
19 from eric7.EricWidgets import EricMessageBox |
20 from eric7.EricWidgets.EricApplication import ericApp |
20 from eric7.EricWidgets.EricApplication import ericApp |
21 from eric7.QScintilla.Editor import Editor |
21 from eric7.QScintilla.Editor import Editor, ReferenceItem |
22 |
22 |
23 from .RefactoringPreviewDialog import RefactoringPreviewDialog |
23 from .RefactoringPreviewDialog import RefactoringPreviewDialog |
24 |
24 |
25 |
25 |
26 class JediServer(EricJsonServer): |
26 class JediServer(EricJsonServer): |
411 @param result dictionary containing the result data |
411 @param result dictionary containing the result data |
412 @type dict |
412 @type dict |
413 """ |
413 """ |
414 euuid = result["Uuid"] |
414 euuid = result["Uuid"] |
415 with contextlib.suppress(ImportError): |
415 with contextlib.suppress(ImportError): |
416 from eric7.QScintilla.Editor import ReferenceItem |
|
417 |
|
418 if "Error" not in result: |
416 if "Error" not in result: |
419 # ignore errors silently |
417 # ignore errors silently |
420 references = result["GotoReferencesList"] |
418 references = result["GotoReferencesList"] |
421 if references: |
419 if references: |
422 try: |
420 try: |