Commit Graph
190431 Commits
Author SHA1 Message Date
Anna.Kozlova af3deb08fe overload resolution: ensure cleanup both branches of conditional (IDEA-169142) 2017-03-06 15:14:54 +01:00
peter 3fc0b28e63 don't auto-import after root change if it really can't complete without indices (EA-98316 - INRE: FileBasedIndexImpl.handleDumbMode) 2017-03-06 15:11:42 +01:00
Alexey Kudravtsev d76b26085d check for project disposal in read action to fix IDEA-165879 Unguarded section in DocumentCommitThread that leads to spontaneous assertion, i swear 2017-03-06 17:04:17 +03:00
Nadya Zabrodina 3cd86a1774 [shelf]: update icons 2017-03-06 16:59:46 +03:00
Vladimir Krivosheev 8351d42778 VirtualFilePointerListener — default impl 2017-03-06 14:56:46 +01:00
Vladimir Krivosheev 2f7fb53744 format 2017-03-06 14:56:46 +01:00
Aleksey Pivovarov 21b1c57e51 merge: simplify - move non-conflict resolution logic into one method 2017-03-06 16:51:22 +03:00
Aleksey Pivovarov 533b211368 merge: do not override user modifications when resolving non-conflicting changes 2017-03-06 16:50:40 +03:00
Aleksey Pivovarov e91402bb87 merge: cleanup tests 2017-03-06 16:50:39 +03:00
Aleksey Pivovarov 929afafc64 merge: do not re-check if conflict can be resolved every time
* store this information in MergeConflictType
2017-03-06 16:50:39 +03:00
Aleksey Pivovarov 33b8e04870 merge: extract method 2017-03-06 16:50:39 +03:00
dmitriy.tseyler 9ba9339d66 IDEA: Update download icon and add upload icon 2017-03-06 16:43:35 +03:00
Anna.Kozlova 96a92150a2 set final modifiers for parameters created in change signature (IDEA-168906) 2017-03-06 14:13:32 +01:00
Dmitry Batkovich 27214b011e read-only index storage 2017-03-06 16:07:01 +03:00
Pavel Dolgov c1bb394630 Java: Implemented completion assistance for Var/Method Handle - suggest field/method name, autocomplete the signature (IDEA-167319) 2017-03-06 15:59:04 +03:00
Vladimir.Orlov be11ff380a Merge remote-tracking branch 'origin/master' 2017-03-06 15:44:54 +03:00
Vladimir.Orlov 2b40684ab0 Merge remote-tracking branch 'origin/master' 2017-03-06 15:37:23 +03:00
Rustam Vishnyakov 6b01109910 Import/export Intellij IDEA color schemes from schemes menu 2017-03-06 15:37:16 +03:00
Nadya Zabrodina 91800efa68 [shelf]: disable custom Shelf dir for default project, update actions
* (IDEA-168865) update okActions before dialog shown;
* (IDEA-168866) make cancel default button;
* disable 'Change Shelves Location' button for Default project settings;
* cleanUp;
2017-03-06 15:32:35 +03:00
Vladimir.Orlov ce981dba29 Merge remote-tracking branch 'origin/master' 2017-03-06 15:30:53 +03:00
Konstantin Aleev 4fc94382c8 IDEA-168919 Deadlock on startup 2017-03-06 15:28:48 +03:00
Eugene Zhuravlev 68437c0920 less verbose logging at 'info' log level 2017-03-06 13:26:43 +01:00
Eugene Zhuravlev 147aa0910c avoid 'too many events posted' to UI thread assertion 2017-03-06 13:26:43 +01:00
Vladimir.Orlov 7a79c9b185 IDEA-169185 Installation destination folder for 64-bit and 32-bit Windows OS. 2017-03-06 15:21:57 +03:00
Mikhail Golubev 613fc3561f PY-20057 Check names of types before comparing directly via PyBuiltinCache
to avoid expensive access to the cache in most cases when handling
special types: object, type and basestring in the type checker.
2017-03-06 15:20:44 +03:00
Mikhail Golubev fb845a9ba2 PY-22730 Don't render Optional[Any] as Union[None, Any]
Specifically, handle "weak" union type only after checking that a
union can be displayed as Optional.
2017-03-06 15:20:44 +03:00
Mikhail Golubev d5cbfa6950 PY-20057 Support Type[Union[Class1, Class2]] annotation syntax 2017-03-06 15:20:44 +03:00
Mikhail Golubev 0a2c73161d PY-20057 Support Type[Any] and handle illegal typing.Type annotations 2017-03-06 15:20:44 +03:00
Mikhail Golubev 1bce2d9bf5 PY-20057 Render the type of "type" class as just "type" instead of "Type[type]" 2017-03-06 15:20:44 +03:00
Mikhail Golubev 9ce723de0d PY-20057 typing.Type, type and object compatibility 2017-03-06 15:20:44 +03:00
Mikhail Golubev 04f49fbbc4 PY-20057 Treat the second argument of isinstance() as instance type, not class type 2017-03-06 15:20:44 +03:00
Mikhail Golubev c700e57db4 PY-20057 Partially support type checking between type and typing.Type[] 2017-03-06 15:20:44 +03:00
Mikhail Golubev 30c007d800 PY-20057 Fix a few tests broken due to changes in PyGenericType 2017-03-06 15:20:44 +03:00
Mikhail Golubev 0ba869fd2d PY-20057 Add test cases on Type[Something] wrapped in typing.Optional 2017-03-06 15:20:44 +03:00
Mikhail Golubev 05951d275f PY-22730 Properly render Union and Optional types containing TypeVars
Namely, don't consider them "unknown" wrapping them in another
weak Union and rendering using PyType#getName() rather than
PyTypeModelBuilder.
2017-03-06 15:20:44 +03:00
Mikhail Golubev 2c79c98d22 PY-20057 Consider incompatible types one of which is Type[] in the type checker 2017-03-06 15:20:44 +03:00
Mikhail Golubev b6dbc5b989 PY-20057 Unify type vars constrained by class types and instance types
so that annotations like "def f(x: Type[T]) -> T" (and vice-versa) work
as expected.

Additionally, I've added a new method toClass() in PyInstantiableType
interface that is supposed to be the opposite to existing toInstance().
2017-03-06 15:20:44 +03:00
Mikhail Golubev 46c229030e PY-20057 Pull up isDefinition() to PyGenericType via new PyInstantiableType interface
Additionally, I've changed rendering of type vars so that it's done in
PyTypeModelBuilder rather than in PyGenericType itself in order to
properly wrap type vars in "Type[]" before displaying them.

Moreover, it's fixed a couple of cases uncovered earlier: formatting
a type var constrained with a single upper bound and formatting a type
var constrained with some compound type, e.g. generic.
2017-03-06 15:20:44 +03:00
Mikhail Golubev 41aaebef69 PY-20057 Initial support of typing.Type (types of direct classes) 2017-03-06 15:20:44 +03:00
Ekaterina Tuzova 46fd99f987 PY-10649 Pyramid: Show yellow notification about not run setup.py develop for opened project 2017-03-06 15:07:04 +03:00
Alexandr Evstigneev 6a624f9e2f added NotNull annotations to getDefaultProvider methods implementations 2017-03-06 15:02:15 +03:00
Ivan Chirkov 23c5b28fbc Google Protocol Buffers 0.5.9 is not compatible anymore. IDEA-139981, IDEA-168095. 2017-03-06 12:49:14 +01:00
Tagir Valeev db956da977 JavaVariableInplaceIntroducer: cleanup after previous refactoring 2017-03-06 18:46:49 +07:00
Tagir Valeev 210d850785 ChainCallInplaceIntroducer: fixed variable creation 2017-03-06 18:41:46 +07:00
irengrig dbea349130 cleanup 2017-03-06 12:35:37 +01:00
irengrig 7c72d1ce13 WEB-25757 JSON schema completion issues (tsconfig.json)
+ tests for json schema based insertion handler
also some side effects were fixed (found while writing tests)
2017-03-06 12:35:37 +01:00
Maxim Kropotov 42ec749064 WEB-25750 Intentions: restore "Check RegExp" action 2017-03-06 14:29:59 +03:00
peter 9aa4667e35 DuplicateStringLiteralInspection: save time by not restoring from anchors 2017-03-06 12:21:35 +01:00
Aleksey Pivovarov c6f1c260ab IDEA-169169 Revert "IDEA-168502 ui: fix memory leak via ActionToolbarImpl"
`transparentOnly=true` mode reuses presentations from previous runs.

This reverts commit fa9d2a79f4.
2017-03-06 14:15:03 +03:00
Mikhail Golubev 766517951b PY-21180 Avoid possible collisions of caches in PyUtil#getParameterizedCachedValue()
First, each cache has the unique user data key, associated with the
function passed to getParameterizedCachedValue(), as opposed to
the instance CachedValueProvider which is actually the same for all
caches created this way.

Second, in QualifiedNameFinder#findCanonicalImportPath() use pair of
(symbol, anchor) as the cache key so that the lambda doesn't capture
values from outer scope.
2017-03-06 14:03:44 +03:00