Commit Graph
175135 Commits
Author SHA1 Message Date
Mikhail Golubev 2ca4c00fcf PY-19100 Properly detect that the first line of pasted text needs to be additionally indented
It becomes necessary when user copies compound statement
staring selection at the beginning of the first keyword like
"def" instead of using structural selection. Because of that
we lose indentation of that first line and whole underlying block
structure becomes ambiguous, i.e. it's no longer clear which of the
following lines belong to the body of such function and which
were at the same or smaller block level initially. To handle it
we use simple heuristic that detects whether the body of copied
function is  indented too much and if it's the case we shift
the first line further to the right as if the etire first line
was copied in the first place.

Previously we compared indentation of the first two lines for this
purpose and it didn't work for various compound statements that may
have multiline header, e.g. function definition with individual
parameters on their own lines, "if" statement or "while" loop which
condition spans multiple lines etc. Now we first parse pasted
fragment and then take the indentation of the actual statement list.
2016-07-06 21:09:54 +03:00
Elizaveta Shashkova dc7a9006f0 Several clicks on cython configuration hint can start several tasks (PY-19647) 2016-07-06 20:37:25 +03:00
Egor.Ushakov 31e93da63f renderers do not resolve types in the context of decompiled class - extra fix for IDEA-CR-12092 2016-07-06 20:21:37 +03:00
Yaroslav Lepenkin 0db08182f0 [CodeStyleManager] minor, after review fix.
Decided not to deprecate method because we can.
2016-07-06 20:12:40 +03:00
Yaroslav Lepenkin 9ea38574d2 [indent detector] minor, extracted timeout constant 2016-07-06 20:04:21 +03:00
Yaroslav Lepenkin 21e6e1d598 [formatter-core: context formatting] API prettified 2016-07-06 20:01:44 +03:00
Egor.Ushakov ed968400b6 renderers do not resolve types in the context of decompiled class 2016-07-06 19:52:05 +03:00
Aleksey Pivovarov 7fe707f5ac IDEA-152968 git: fix commit message parsing in history 2016-07-06 19:49:34 +03:00
Aleksey Pivovarov 8bbd6e423d git: cleanup 2016-07-06 19:49:34 +03:00
Yaroslav Lepenkin af189a9e39 [Recent Tests] shorten names 2016-07-06 19:38:40 +03:00
Daniil Ovchinnikov 69a049eace [groovy] ide scripting shell 2016-07-06 19:01:21 +03:00
Gregory.Shrago 1803ecf450 more on IDEA-CR-11800 ignore readme.txt 2016-07-06 18:56:12 +03:00
Dmitry Batrak 5b27be0ac3 IDEA-158213 Inconsistent soft wraps all state 2016-07-06 18:46:14 +03:00
Roman Shevchenko bbed9b3f2d [java] for modular JDK, uses per-module class roots instead of a single one 2016-07-06 17:45:06 +02:00
Maxim.Mossienko 9831392b62 [cleanup] use myProceedWithLoadingLock only for waiting when content queue is full and for signalling to proceed with content loading 2016-07-06 17:40:10 +02:00
Maxim.Mossienko c0a19859c9 [memory optimization] store all virtual files that are indexed now, instead all files within in indexing session 2016-07-06 17:40:10 +02:00
Yaroslav Lepenkin 6a3f7d34ad [formatter-core: context formatting] simplified 2016-07-06 18:36:19 +03:00
Yaroslav Lepenkin 65c8a3834e [formatter-core: context formatting] removed unnecessary abstraction 2016-07-06 18:36:19 +03:00
Egor.Ushakov 8b846f9d2b check that vms match if class loader is null, otherwise we may take last result from the different debug session 2016-07-06 18:29:10 +03:00
Egor.Ushakov a516994054 dropped InstructionParser in favor of MethodBytecodeUtil (and ASM) 2016-07-06 18:29:10 +03:00
Dmitry Batkovich a08ceff560 inspection toolwindow: amnesty should not amnesty of applied fixes IDEA-156823 2016-07-06 18:25:39 +03:00
Dmitry Batkovich e785efb732 find usages view: check exclusion is available for node not only in actionPerformed() method too 2016-07-06 18:25:39 +03:00
Dmitry Batkovich 01366c7f83 type migration: do not allow start "void" variable migration 2016-07-06 18:25:39 +03:00
Dmitry Batkovich c400fa39ce unused declaration inspection: improve CommentOut quick fix if parent element is not suspicious IDEA-157566 2016-07-06 18:25:39 +03:00
Dmitry Batkovich 459edd9fb0 inspection toolwindow: do not count dummy inspection node entries as problems IDEA-156793 2016-07-06 18:25:39 +03:00
Dmitry Batkovich cea5c6cc50 inspection toolwindow: suggest user to rerun global inspection when xml results are browsed IDEA-157009 2016-07-06 18:25:39 +03:00
Dmitry Batkovich 28fdfc245f inspection toolwindow: do not enable selected profile as active from toolwindow inspection settings IDEA-156825 2016-07-06 18:25:39 +03:00
Dmitry Batkovich b58dc57487 inspection toolwindow: more granulating calls of read actions 2016-07-06 18:25:39 +03:00
irengrig 20dcaac966 json schema, better report case when in one-of we have string enum, and the value does not belong to the enum 2016-07-06 17:13:56 +02:00
irengrig 24785e3f9f Revert: more corrections for the fix, we need to reparse files that have changed their filetype. for IDEA-158107 JsonSchemaFileTypeManager leaks project after closing 2016-07-06 17:13:56 +02:00
Ilya.Kazakevich 234c4c452b Migrated to newer gradle plugin version
New version works on Windows and Linux, while prev.brakes on Linux
2016-07-06 18:06:25 +03:00
Aleksey Pivovarov fb8597a7f4 IDEA-144699 go to action: repaint after performing toggle action
performAction is asynchronous after 458ebe7
2016-07-06 17:28:25 +03:00
Denis Fokin 5a5537801a IDEA-156990 Keymap: for non-QWERTY keyboard layouts semicolon is treated as colon in keyboard shortcuts 2016-07-06 17:03:19 +03:00
Denis Fokin 7de97a2005 IDEA-156986 Keymap: "English layout support" option gets disabled after reopening Preferences 2016-07-06 16:50:54 +03:00
Sergey Ignatov 4796a1d9c2 add project to LocalTerminalCustomizer#setupEnvironment 2016-07-06 16:39:46 +03:00
Ivan Bessonov 69fee9fe1c IDEA-CR-11785 removed "getParent" method implementation in VirtualFileWindowImpl 2016-07-06 16:13:44 +03:00
Dmitry Trofimov 5da724fc91 Add possibility to customize terminal environment variables 2016-07-06 14:48:48 +02:00
Svetlana.Zemlyanskaya ca1e7e3b85 Remote Interpreters: show custom path mappings in edit dialog 2016-07-06 14:26:07 +02:00
Alexey Kudravtsev ccb2311a09 data race on adding/consuming ourInstances; deregister and stop LowMemoryWatcher before AppThreadPool shutdown to avoid rejected exceptions 2016-07-06 15:05:13 +03:00
Alexey Kudravtsev 27d1def099 use more sane API for LowMemoryWatcher 2016-07-06 14:55:03 +03:00
Alexey Kudravtsev 1cf3d6d91b optimisation: intersection with itself 2016-07-06 14:47:42 +03:00
Alexey Kudravtsev a4f529fba6 debug 2016-07-06 14:15:26 +03:00
Alexey Kudravtsev be12fc04b2 cleanup 2016-07-06 14:15:26 +03:00
Alexey Kudravtsev 8d0f6fc830 notnull 2016-07-06 14:15:26 +03:00
Alexey Kudravtsev 73bc62ec4e more diagnostics 2016-07-06 14:15:26 +03:00
Bas Leijdekkers 7f070d33eb regexp: adjust test data 2016-07-06 13:03:58 +02:00
Bas Leijdekkers 75bbe05d18 IG: warn on covariant equals() in interface but not implementations 2016-07-06 13:03:57 +02:00
Bas Leijdekkers 770c3284a4 IG: ignore non-physical elements, e.g. from decompiled code (EA-85239) 2016-07-06 13:03:56 +02:00
Bas Leijdekkers 495d4dc8a1 IG: option to ignore Enumeration loops (IDEA-158187) 2016-07-06 13:03:55 +02:00
Andrey Dernov bd8087c936 IDEA-158139 Make TemplateExpressionLookupElement to consider next tab on template lookup element insert 2016-07-06 13:33:39 +03:00