Commit Graph
100 Commits
Author SHA1 Message Date
peter 8a33d34159 add PsiDocumentManagerImplTest.testPerformLaterWhenAllCommittedFromCommitHandler (IDEA-CR-11146) 2016-06-01 07:56:22 +02:00
peter 446b80077a clean up AstPath objects when no PSI is accessed, e.g. after project closing 2016-06-01 07:35:13 +02:00
peter d3514a3006 update usage preview immediately if everything is committed (IDEA-CR-11111, EA-83054 - assert: PsiDocumentManagerBase.commitAllDocuments) 2016-05-31 16:29:58 +02:00
peter ceb2b9bf53 performLaterWhenAllCommitted should work from within commit handler 2016-05-31 16:29:58 +02:00
peter 79c367a470 add NameUtil.capitalizeAndUnderscore to getter/setter templates (IDEA-152774) 2016-05-31 14:06:46 +02:00
peter 51ad1ed8c5 don't leak PSI via XSLT DeleteUnusedElementBase fix; correct xslt physicality to make smart pointers work 2016-05-31 14:06:45 +02:00
peter b44d26477b FileReferenceQuickFixProvider: don't leak PSI via "create file" fix 2016-05-31 13:44:23 +02:00
peter f6ceb1ba14 make XPathBinaryExpression.getType non-exponential (IDEA-155079) 2016-05-31 13:44:23 +02:00
peter 1c94594b61 consume less memory in spellchecker highlighting messages 2016-05-31 13:44:22 +02:00
peter e3fe4c4871 [java] hasModifierProperty: deduplicate and cache; change PsiAugmentProvider API while we still can 2016-05-30 22:07:52 +02:00
peter 458ebe771d goto action: invoke the action after the popup is closed (otherwise e.g. Show Color Picker disappears immediately) 2016-05-30 22:07:52 +02:00
peter f0edfe6027 try to check annotation target applicability without resolve (IDEA-155612) 2016-05-30 22:07:51 +02:00
peter d4e782efec remove the hack to disable indent detection during async editor loading (WEB-21649) 2016-05-30 19:33:41 +02:00
peter e98ce78e91 deduplicate DefaultStubBuilder (IDEA-CR-11109) 2016-05-30 19:30:04 +02:00
peter 2a5aaa53e6 return "suggest static after instance" setting as a registry key (IDEA-156732) 2016-05-30 19:30:03 +02:00
peter 4bb7eac6ef consider non-temporary focus lost event to be user activity (EA-83053 - assert: PsiDocumentManagerBase.commitAllDocuments) 2016-05-30 19:30:03 +02:00
peter 2d56c8ad24 IDEA-156772 Some Live Templates lost their "applicable context" IntelliJ 2016.2 EAP 2016-05-30 15:58:43 +02:00
peter a16c92797c fix AstPathPsiMap.processQueue to avoid removing non-gced entries 2016-05-29 08:30:00 +02:00
peter def0b7a1f6 add read action to HardElementInfo.pointsToTheSameElementAs (EA-82992 - assert: PsiFileImpl.getStubTree) 2016-05-28 13:01:40 +02:00
peter 0560c657bc fail-fast when ProgressManager.getInstance() will be null, prevent "already disposed" from Preloader (IDEA-151793) 2016-05-28 13:01:40 +02:00
peter 58bc63e076 don't take transactions for internal DialogWrapper actions because sometimes dialogs are OK to be shown from invokeLater (EA-83127 - assert: TransactionGuardImpl.submitTransactionAndWait) 2016-05-28 13:01:39 +02:00
peter 6887a0e91b use app invokeLater in so that modality state from progress started from another progress is considered write-safe (EA-83055 - assert: TransactionGuardImpl.submitTransactionAndWait) 2016-05-28 11:44:39 +02:00
peter 857c80cd17 less psi allocation during stub indexing 2016-05-28 11:44:39 +02:00
peter 1ec4e0ca26 reduce PsiLock contention and psi allocation:
* don't create PSI eagerly right after parsing
* use compareAndSet instead of PsiLock for non-stub-based PSI creation, since there's no danger even if it's invoked during stub-AST switch
* create stub PSI in one PsiLock session instead of many
2016-05-28 11:44:38 +02:00
peter 52b4d86cbc an ability to reparse parallel trees faster (IDEA-154453) 2016-05-27 16:38:45 +02:00
peter d0c5fe47db cls mirrors: keep PSI instead of AST 2016-05-27 16:38:45 +02:00
peter f3cc288b28 use async commit in usage preview (EA-83054 - assert: PsiDocumentManagerBase.commitAllDocuments) 2016-05-27 16:38:44 +02:00
peter b7849f80c3 transfer to EDT (e.g. for vfs refresh) in a correct modalilty state during project loading 2016-05-27 13:18:20 +02:00
peter 0d66478adb add diagnostics and interruption when PlatformTestUtil.waitForAlarm hangs 2016-05-27 12:59:07 +02:00
peter 8d20608cfb comprehensive type parameter names in AtomicFieldUpdater 2016-05-27 12:57:01 +02:00
peter 382ff0d862 allow AST to garbage-collected when holding strong references to stub-based PSI 2016-05-27 10:20:20 +02:00
peter 9e2d4a4949 PsiCachedValue: remove duplicate condition 2016-05-25 20:55:06 +02:00
peter cd11f703a7 don't reschedule async editor loading when the file editor or project is disposed, take 2 2016-05-25 12:10:15 +02:00
peter 63b1ae740d don't reschedule async editor loading when the file editor or project is disposed 2016-05-25 11:50:13 +02:00
peter c8944c9cc4 don't commit documents in TargetElementUtil called during action update via getData 2016-05-25 11:34:16 +02:00
peter 60c0c509bc IDEA-155607 Prefer classes available in the current module 2016-05-25 11:34:15 +02:00
peter c9a756ec0f make LayeredLexerEditorHighlighter.documentChanged consistent with createIterator (IDEA-CR-10979) 2016-05-25 11:34:15 +02:00
peter 1f5a95be08 groovy: avoid incompleteCode resolve when possible, try to reuse cached results instead 2016-05-25 09:23:46 +02:00
peter e1b784105c require no transaction for dialog cancel action (EA-82912 - assert: TransactionGuardImpl.submitTransactionAndWait) 2016-05-25 08:45:24 +02:00
peter 831a4ee5cd force using current document text in LayeredLexerEditorHighlighter.createIterator, even in bulk mode (IDEA-CR-10979) 2016-05-25 08:45:23 +02:00
peter b3efd0cdcd gdsl: don't mark scripts as using place file if not necessary to allow for better cache reuse; cleanup 2016-05-25 08:45:23 +02:00
peter 1d217f7904 less PsiType<->String conversions when processing groovy gdsl 2016-05-24 18:58:07 +02:00
peter 1c70e25d2e IDEA-154272 Editor opening should do heavy operations in background 2016-05-24 17:09:46 +02:00
peter 10f57a3960 start run configurations in a transaction because some of them saveAllDocuments 2016-05-24 17:09:46 +02:00
peter 7049fd8e31 IDEA-155920 Smart completion inserts dot instead of $ for inner classes in implementation in plugin.xml 2016-05-24 15:21:51 +02:00
peter dc64af7f22 IDEA-156379 Suggested "collect(Collectors.toList())" ignores static Collectors import 2016-05-24 15:21:50 +02:00
peter 817581a5ba remove unused test data file 2016-05-24 15:21:50 +02:00
peter cfb5af3e40 LexerEditorHighlighter: do nothing in setText if the text is identical to the previous one 2016-05-24 12:40:36 +02:00
peter b138fda21f store full live template context (in compact form), not the difference from default; otherwise the parts same as in default are not honored 2016-05-23 17:39:03 +02:00
peter 8692887d89 purity inference: be more careful with array assignments 2016-05-23 17:39:02 +02:00
peter 325f2fefda delegate LightVirtualFileBase.getFileType to the original if present (https://github.com/JetBrains/intellij-community/pull/342) 2016-05-23 10:32:13 +02:00
peter a6ffc3f9a3 update TransactionGuard javadoc and cache the instance to avoid "already disposed" exceptions from bg threads after closing the IDE 2016-05-23 10:32:13 +02:00
peter a20f0e0aee ensure that all transaction-related invokeLater-s are executed, even after application is disposed (on shutdown hook) 2016-05-23 10:32:12 +02:00
peter 2020ca5ba3 more diagnostics for EA-82730 - assert: TransactionGuardImpl.submitTransactionAndWait 2016-05-20 16:54:29 +02:00
peter f3ff300704 IDEA-155493 IDEA hanged after "Perforce go Online" action was cancelled 2016-05-20 16:04:23 +02:00
peter ac3ef9e372 IDEA-156308 "Other" live template context works like "Everywhere" 2016-05-20 16:04:23 +02:00
peter 44afa3e9dc correct AddAnnotationIntention applicability 2016-05-20 09:04:20 +02:00
peter 714ac163e9 more comprehensive assertion in PsiLiteralStub.getLiteralType (IDEA-CR-10901) 2016-05-20 08:00:43 +02:00
peter 4ab357eb6b IDEA-155612 Autopopup completion is slow after typing @ 2016-05-19 16:08:24 +02:00
peter 2a7d049157 make PsiLiteralExpression annotation values stub-based 2016-05-19 16:08:23 +02:00
peter 8f9ca6c4ef allow to share cell renderers between components without leaking matchers 2016-05-19 12:17:16 +02:00
peter 6da6866c47 don't dump threads every single second when UNRESPONSIVE_THRESHOLD_SECONDS is 1 (IDEA-156259) 2016-05-19 12:17:16 +02:00
peter b9fac2dcbf hierarchy tree structure supports async commit, so remove the sync one (EA-82213) 2016-05-19 12:17:15 +02:00
peter d167a4e820 don't suggest break/continue inside lambda/anonymous inside a loop (IDEA-CR-10869) 2016-05-19 10:58:51 +02:00
peter 3bea588f19 reuse PsiClassListCellRenderer instance 2016-05-19 10:44:19 +02:00
peter 3039f8117b support external @Deprecated annotation for cls class & field (IDEA-CR-10878) 2016-05-19 10:44:19 +02:00
peter 7d2e7801e2 avoid NPE in FileManagerImpl.markInvalidated 2016-05-19 10:44:18 +02:00
peter 1d157152c1 IDEA-156259 idea.log spammed by "PerformanceWatcher - High memory usage" 2016-05-19 10:44:18 +02:00
peter 50bcecaaf8 IDEA-156098 @Deprecated external annotation on method does not affect editor 2016-05-18 19:44:27 +02:00
peter e1b69b301e IDEA-156245 @NotNull doesn't seem to work for enums 2016-05-18 19:44:27 +02:00
peter 6a17887211 correct dfa comparison of boxed NaNs (IDEA-156202) 2016-05-18 19:44:26 +02:00
peter 05ea6e7d8b [^ann] show implemented methods popup faster (part of IDEA-155949) 2016-05-18 18:07:48 +02:00
peter 04355fa04f IdeKeyEventDispatcher: perform action inside a user activity (EA-82426 - assert: TransactionGuardImpl.submitTransactionAndWait) 2016-05-18 18:07:48 +02:00
peter 79cd3850ff use app invokeLater exceptions when having created empty project (EA-82507 - assert: TransactionGuardImpl.submitTransactionAndWait) 2016-05-18 18:07:47 +02:00
peter b0bfb5b5d8 java completion: prefer break/continue in likely positions inside loops (IDEA-156192) 2016-05-18 18:07:47 +02:00
peter 6b5f30f0f2 java completion: prefer return inside then/else parts of if (IDEA-156192) 2016-05-18 18:07:47 +02:00
peter 6270d21e19 use async commit in commitAndRunReadAction 2016-05-18 09:23:59 +02:00
peter d3a0cd64ff remove MaxPermSize from run configurations 2016-05-18 09:23:58 +02:00
peter e68d6eac26 IDEA-155716 Statically imported method should be higher in the completion list 2016-05-13 17:15:10 +02:00
peter d91c606bfa IDEA-155984 Completion suggests nothing if you try to complete a variable before a call 2016-05-13 16:15:16 +02:00
peter d8093d9057 IDEA-155801 "Dereference may produce NPE" warning should handle implicit constructor calls. 2016-05-13 16:15:15 +02:00
peter 786b4f5048 IDEA-156007 'Constant conditions & exceptions' inspection should propagate @Nullable/@NotNull annotations to lambda parameters 2016-05-13 16:15:15 +02:00
peter f54e06de93 IDEA-155572 Basic completion could prefer false when boolean is expected 2016-05-13 16:15:14 +02:00
peter 9a2d188dad use app invokeLater in toolwindow CommandProcessor to avoid transaction assertions (EA-82213) 2016-05-13 16:15:14 +02:00
peter fd8636b9c6 recreate cached value with the new provider when it's outdated, to be more tolerant to providers capturing variables from the call context 2016-05-13 12:31:31 +02:00
peter 208f6a8aa9 remove unnecessary stuff from DaemonAnalyzerTestCase.checkHighlighting 2016-05-12 22:01:47 +02:00
peter b58243fb73 "method may be static" inspection: reuse common and cached way of searching for method overriders 2016-05-12 20:41:05 +02:00
peter 7cdd0e2e51 allow write actions without transactions if they don't change anything physical 2016-05-12 20:38:52 +02:00
peter 435f0d47f3 don't wrap editor actions in transactions by default (IDEA-155679) 2016-05-12 20:28:17 +02:00
peter d93bbf54c5 when an exception happens in beforeRootsChanged, don't let ProjectRootManagerImpl think forever it's inside root change 2016-05-12 20:18:06 +02:00
peter 6d5afb738d TransactionGuardImpl cleanup 2016-05-12 20:18:06 +02:00
peter 815d0277ac Revert: IDEA-155679 Throwable at com.intellij.openapi.application.TransactionGuardImpl.submitTransactionAndWait (68c1920d73) 2016-05-11 17:22:22 +02:00
peter 956a51036d fix NPE in DefaultLogger.attachmentsToString 2016-05-11 16:58:28 +02:00
peter 48cce18d6c use up to date TransactionGuard when dispatching swing events; hopefully this will fix flaky TransactionTest 2016-05-10 16:49:03 +02:00
peter 682734299f debug TransactionTest 2016-05-10 14:42:05 +02:00
peter 178f440e4a ConcurrentRefValue*Map#isEmpty/size should return up-to-date size 2016-05-10 14:42:05 +02:00
peter b7de50c3ee debug TransactionTest 2016-05-10 09:21:15 +02:00
peter 665ca5d1fb make SameDirectoryWeigher and SameLogicalRootWeigher work with completion file copy 2016-05-10 08:41:17 +02:00
peter 2b01b77f1f don't resolve during initial java closure folding 2016-05-09 22:12:23 +02:00
peter 382d0408c6 debug TransactionTest 2016-05-09 22:10:26 +02:00