11 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
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
17c690d0ab PY-29717 Unify headers for properties and attributes
* normalize capitalization
* get rid of excess <code/> tags inside <pre/>
* use the same way to get links to classes
* always show fully qualified names of definition classes
* don't add base classes for definition classes
2018-06-09 15:59:38 +03:00
Mikhail Golubev
1bc66f1853 PY-29717 Choose property's definition and docstring to display
applying with the following precedence rules:
Docstring: doc parameter of property() call, docstring of the actual
accessor, docstring of the getter.
Definition: actual accessor, getter.
2018-06-09 15:59:36 +03:00