Commit Graph

20 Commits

Author SHA1 Message Date
Daniel Below
87d76c25d1 CPP-34359: Remove empty DEFAULT_PARAMETER key
Default theme's DEFAULT_PARAMETER should fallback to IDENTIFIER, just like in Darcula.
This fixes issues where an external highlighter returns a DEFAULT_PARAMETER highlighting, but a wrong highlighting is applied instead. This happens because looking up the key in the scheme finds the empty DEFAULT_PARAMETER value with null colors, thus we fallback to the other highlighter's colors, which may be incorrect.

GitOrigin-RevId: ea4fb9fccf4f164c677d1eb5ce09638c0c402b49
2023-08-23 11:32:04 +00:00
Irina Fediaeva
bb882b63f5 PY-55118: Syntax highlighting for definition signatures in Quick Documentation
GitOrigin-RevId: b8a27a048772a0af7fcc36a9cba0d308e0ace8cc
2023-02-10 22:44:22 +00:00
Irina Fediaeva
058257cb23 PY-56609: Review remarks
Proper html table row tags

GitOrigin-RevId: 8413ddf84bc1d5d65080447e3f425923cca21c10
2023-01-23 13:39:15 +00:00
Irina Fediaeva
c44fb89c28 PY-56609: Refactoring in quick documentation
Migrate to DocumentationMarkup elements

GitOrigin-RevId: ea4d71638b1dd3a160521e655fd2a1670ea27701
2023-01-23 13:39:02 +00:00
Irina Fediaeva
bd1c830040 PY-56609: Refactoring in quick documentation
Remove ChainIterable usages from quick documentation and replace with HtmlChunk/HtmlBuilder.
I18ize some fragments.

GitOrigin-RevId: c9b1197efcb17de92361426759a7840ee1be8e4b
2023-01-23 13:38:53 +00:00
Semyon Proshev
35ba0742ca Sync with typeshed @ 48d77d5f067144ebca0738882906bb996e0e7ab3 (PY-39848)
Excluding https://github.com/python/typeshed/pull/3252

GitOrigin-RevId: bd535fbff565aef2ba42fd99a7d4a5c7f5c770a8
2020-01-30 19:06:53 +00:00
Mikhail Golubev
69d61a8316 PY-29717 Get rid of excess escaping of spaces in function signatures
It's not necessary as in Quick Documentation a definition is wrapped in
<pre/> tag according to new guide lines, and in tooltips line breaks are
preserved thanks to UIUtil.getHtmlBody() used in HintUtil.prepareHintText().
2018-06-09 15:59:39 +03:00
Mikhail Golubev
7afb41757c PY-29717 Don't render type for "self"/"cls" method parameters
These are mostly obvious at the call site.
2018-06-09 15:59:39 +03:00
Mikhail Golubev
a85cd24d85 PY-30103 Don't wrap methods with only one parameter apart from self
because in Python it would make all methods that expect an argument,
even as simple as property setters, to wrap.
2018-06-09 15:59:38 +03:00
Mikhail Golubev
9e118e01a9 PY-30103 Add wrapping for long function signatures
Similarly to how it's done for Java and other languages parameters are
wrapped and aligned always if there are more than one of them. Also, the
need to wrap the return type annotation is detected naively by checking
whether the length of the last line containing it exceeds 80 characters.
2018-06-09 15:59:38 +03:00
Mikhail Golubev
530c7d2d74 PY-29717 Display qualified names of classes above methods
Use "containing class" type of link only as a fallback for local classes
2018-06-09 15:59:37 +03:00
Mikhail Golubev
505efb9982 PY-29717 Remove excess trailing spaces and line breaks from plain text docstrings 2018-06-09 15:59:37 +03:00
Mikhail Golubev
bf2ee59a28 PY-29717 Move message about copied docstring to sections 2018-06-09 15:59:36 +03:00
Mikhail Golubev
c3246e9286 PY-29717 Display variable type inline with their name in PEP 526 format
Thanks to it we also started to display types for class and instance
attributes. Also, moved reassignment chain to sections part of Quick
Documentation and display it only when it actually makes sense.
2018-06-09 15:59:35 +03:00
Mikhail Golubev
407ed5f127 PY-29717 Display inferred function type together with its signature 2018-06-09 15:59:35 +03:00
Semyon Proshev
b19a95147f Rendered typevar takes much space so let's print its name only. 2017-09-22 15:52:18 +03:00
Semyon Proshev
ed3672ce40 Update PythonDocumentationProvider.describeFunction 2017-09-22 15:52:16 +03:00
Semyon Proshev
952582abc5 Remove separate document link type for super class. Use link type for class instead. 2017-09-22 15:52:15 +03:00
Semyon Proshev
adddb531d8 Update describeClass method in PythonDocumentationProvider.
Now all expressions are printed and links are injected into unqualified references and subscriptions.
2017-09-22 15:52:15 +03:00
Semyon Proshev
dbff481450 Update PyDocumentationBuilder to use type evaluation context while resolving docstring owner. 2017-06-20 13:35:08 +03:00