21 Commits

Author SHA1 Message Date
Morgan Bartholomew
639ca7673b [python] PY-76819 handle None correctly
PY-80427 Fixed


IJ-MR-160807

GitOrigin-RevId: 966bdb2fd5e9a3a3ac9d06b4a7d65da3157160ba
2025-05-09 04:05:02 +00:00
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
47327bbd2e PY-29717 Display information about property access type in sections 2018-06-09 15:59:36 +03:00
Mikhail Golubev
065ce992dc PY-29717 Wrap both prolog and body in <div class="definition"> block 2018-06-09 15:59:36 +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
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
Andrey Vlasovskikh
f1d939b9e4 Renamed 'unknown' to 'Any' for displaying the 'null' type (PY-15206) 2015-03-30 19:34:12 +03:00
Dmitry Trofimov
e38b35ada5 Links for function types in quickdoc (PY-3404). 2012-11-04 19:11:48 +01:00
Andrey Vlasovskikh
e5049069cc Initial type checker inspection for Python 2011-06-15 21:21:09 +04:00
Dmitry Cheryasov
a1e52d975b Improved quickdoc tests. 2010-09-05 14:20:21 +03:00
Dmitry Cheryasov
86da4b3d72 PY-895: show constructor's quickdoc on constructor call.
Also: links to classes inside method and class quickdocs.
Adds tests for property quickdocs.
2010-09-03 18:10:12 +03:00