Commit Graph

168 Commits

Author SHA1 Message Date
Konstantin Hudyakov
c9ef3bcc4d IFT-525 Use single ID for Java and Kotlin onboarding lessons
Then, if one of these lessons is passed, the other will also be marked as passed.
Also, implement lesson passed state migration, so the Java onboarding lesson will stay passed after ID renaming, if it was passed before.

GitOrigin-RevId: 20b949355b5492c8626d764a4a60da9dcd974800
2023-11-29 16:48:04 +00:00
Frederik Haselmeier
30a5cc3323 [kotlin] Translated onboarding tour to Kotlin, added a few more lessons
^KTIJ-26048 fixed


Merge-request: IJ-MR-120001
Merged-by: Frederik Haselmeier <Frederik.Haselmeier@jetbrains.com>

GitOrigin-RevId: 355d7d61360183b72a190c1d092e629b9774e0d9
2023-11-27 12:14:20 +00:00
Konstantin Hudyakov
b04c281c69 IFT-518 Refactor: use PlatformUtils.isIntelliJ() instead of separate conditions
`PlatformUtils.isIntelliJ()` also true for IDEA EDU, but since it is not released anymore, it is ok to use this function to check for IDEA Community/Ultimate.

GitOrigin-RevId: 50b9b8e38ec7ba422d09e15f91b1c177f925c458
2023-11-20 10:25:23 +00:00
Konstantin Hudyakov
eee95f36ec IFT-518 Make Java onboarding lesson and promoter available only in IDEA Community/Ultimate
GitOrigin-RevId: a50cd450b5f6d446b904ac0c735a320a3fb38657
2023-11-10 11:21:13 +00:00
Alexey Merkulov
9ee1ff4780 [IFT] Fix icon in the Java Inheritance lesson
The problem reported in comment for IFT-120

GitOrigin-RevId: 2be6305ddf3c115c067f581f79f4863404e4c8ea
2023-10-31 18:38:27 +00:00
Frederik Haselmeier
7fa947f590 [kotlin] Extracted onboarding tips documentation provider logic to abstract class
KTIJ-27381

GitOrigin-RevId: 7b0b93c33d18242538c6cdebaf922d59cc4dc78d
2023-10-20 16:00:35 +00:00
Alexey Merkulov
8323548c83 IDEA-333739 Force onboarding tips comments rendering on editor opening
GitOrigin-RevId: 4c05dbfb016504028a00ade55beef75e3875e679
2023-10-10 01:35:43 +00:00
Alexey Merkulov
f9804d808e IDEA-333739 Restrict onboarding tips rendering to only one file
GitOrigin-RevId: fc2dfe21581723c304fd32119555f1023a0c62d8
2023-10-10 01:35:40 +00:00
Alexey Merkulov
c8710a3edc IDEA-333739 Refactoring: move JavaOnboardingTipsDocumentationProvider to java-feature-trainer module
It is needed to use common onboarding tips related logic, and it is located in the base feature-trainer module

GitOrigin-RevId: be86c2e576a99adf96ed2c0bfbbbe07fa4748ccf
2023-10-10 01:35:38 +00:00
Konstantin Hudyakov
b3315624bb [IFT] Refactor: extract getCallBackActionId to Utils
GitOrigin-RevId: 798a1d1aaca11f9e5c207d9ea20b01867b91eb32
2023-09-27 13:21:00 +00:00
Konstantin Hudyakov
428ce848ab [IFT] Fix parsing of the callback ID if it is greater than 999
Found that `com.intellij.AbstractBundle.getMessage` applies the formatting to the parameters passed as a `Number`. For example, it translates 1032 int to "1,032" string. And then `toInt` method fails to parse it.
Better to use String value as ID for callbacks to avoid this problem.

GitOrigin-RevId: 95a667a35f6107ec71df0da26892541d1d964b98
2023-09-27 13:20:57 +00:00
Andrei.Kuznetsov
4ac51f5308 IJPL-158: Remove usages of deprecated DumbServiceImpl.setDumbMode in indexes tests
GitOrigin-RevId: 1ac5c7ce78ee76d079c7081bdba999b714fd29a1
2023-08-23 12:16:43 +00:00
Konstantin Hudyakov
c1d2faa12e IFT-482 Fix debugger tool window step in onboarding lessons
GitOrigin-RevId: 04f7e1349d67a30b54cf15dd7b271da146d614fe
2023-07-18 12:29:38 +00:00
Konstantin Hudyakov
f268185a00 IFT-478 Fix Declarations and Usages lesson for Python and Ruby
GitOrigin-RevId: 5b8aacb292c8be1adc7dde27ae807b16936c5dc9
2023-07-14 09:17:20 +00:00
Konstantin Hudyakov
f965a02e7b [IFT] Fix unexpected restores in the navigation lessons
File is opened asynchronously, but restore check is executed after any event. There is no way except of adding the delay for restore.
Fixed IFT-475, IFT-476 and IFT-477.

GitOrigin-RevId: 4090bb9db067135a791a0a72c2f434060bc108eb
2023-07-13 16:49:44 +00:00
Alexey Merkulov
bf31a7f0c6 [IFT] Make Java to be the default IFT language for the Aqua also
GitOrigin-RevId: 59628cbb3691906264cb9dad81f2d7fb01e7fbd8
2023-06-08 18:39:51 +00:00
Alexey Kudravtsev
14ff37953d specify return type explicitly in Kotlin in some openapi and util to speedup Kotlin resolve
GitOrigin-RevId: 2b68c5d51524b822c645dbcb3828acbdd15245ad
2023-05-31 15:36:27 +00:00
Konstantin Hudyakov
bc56e3da3b IFT-455 Show GotIt tooltips during editor steps in onboarding lessons
GitOrigin-RevId: 7d7b2c7a32f1e7c1c01b28cd8b6401a38e7b08ca
2023-04-05 17:59:11 +00:00
Konstantin Hudyakov
d3999f2eb9 [IFT] Edit onboarding lessons text
GitOrigin-RevId: c2d0e9f297ab3b34e9670c1d2f91075d4f1817b0
2023-03-14 16:01:02 +00:00
Dmitry Matveev
b774540464 Feature Trainer. Proofread the 'Debug workflow' lesson
GitOrigin-RevId: 822efa404a1b9c2f914ee7ecbbe3786c4bcdedcf
2023-03-06 14:55:07 +00:00
Dmitry Matveev
6261d736e0 Feature Trainer. Proofread the 'Run configurations' lesson
GitOrigin-RevId: 6a062c4ae55566bcd0a79bfb994273756d40683d
2023-03-03 15:12:30 +00:00
Alexey Merkulov
8edb99ffbc [IFT] Change debugger toolbar highlighting defaults and remove pulsation and inside highlighting from Jupyter onboarding
GitOrigin-RevId: bd157fb57d4f0a52d7bf5d8ccd660c58ad16a1b0
2023-03-02 20:50:43 +00:00
Alexey Merkulov
aaea90d631 [IFT] Apply JBUI scaling in popup construction instead of call places
IJ-CR-103403

GitOrigin-RevId: 30b92fe24ca3b54a144fbc0ce4e6ac9adc7180e6
2023-02-24 15:00:53 +00:00
Alexey Merkulov
0291a4ce92 [IFT] Rework Python and Java run lessons and adjust them for the new UI
IJ-CR-103403

GitOrigin-RevId: 88218a3ef100af6592eea13a2ea3ee4c3a8070c6
2023-02-24 15:00:50 +00:00
Alexey Merkulov
acb4ad0ae8 [IFT] Adjust Java and Python debug lessons for the new UI
Also use 'Current' run configuration instead of generated one

IJ-CR-103403

GitOrigin-RevId: 4e1f775e40e012648f16209385f2d079081ba910
2023-02-24 15:00:40 +00:00
Alexey Merkulov
8f63bb4da5 [IFT] Split sample for run and for debug lessons
IJ-CR-103403

GitOrigin-RevId: 724480aadf5698a266f52fcab5e73952e8d26b2b
2023-02-24 15:00:37 +00:00
Egor Ushakov
af4f07cfac IDEA-311960 Old reset frame icon in the context menu - restored action id to preserve custom shortcuts
GitOrigin-RevId: 02295082680b1f24be5f75369c2e6b1c7e1017c6
2023-02-15 19:03:52 +00:00
Konstantin Hudyakov
061813ac12 [IFT] Adjust debug step in onboarding lessons to new debugger layout
There will be only one variant of the debugger layout in the 2023.1.

GitOrigin-RevId: ee2de2446e0c297b1f1e88e90ef604ad45eaeffc
2023-02-13 12:08:44 +00:00
Alexey Merkulov
d97aa80a08 IDEA-302820 Fix name, layout and forbid customization of run widget in the new UI
GitOrigin-RevId: 7ad8ae11fac2a178bf5aaf2f8d8d3d8b65cb8aa1
2023-02-03 15:36:37 +00:00
Konstantin Hudyakov
741a9a33d7 [IFT] Fix Java learning project loading
Seems that SetupJavaProjectFromSourcesActivity is broken and is not used to create projects anymore so let's do not run it and configure compiler output path manually.

IJ-CR-102100

GitOrigin-RevId: b8afb03efe02922c7b9ab5c3c1cdcd1898fb00f1
2023-01-31 08:56:20 +00:00
Konstantin Hudyakov
85bb873c52 [IFT] Adapt IDEA and PyCharm onboarding lessons to new UI
GitOrigin-RevId: 3e1194fff5e155a3649cd3484d2338c92edf99be
2023-01-30 09:22:40 +00:00
Daniil Ovchinnikov
578eaaf60e rename library kotlin-stdlib-jdk8 -> kotlin-stdlib
GitOrigin-RevId: cddf45ccfd5563d3fe209bea62a1c37c94f44ff9
2023-01-10 12:22:34 +00:00
Alexey Belkov
390ba59bc2 Fix spelling of "quick-fix" phrase in messages
It should be hyphenated: https://www.jetbrains.com/help/idea/resolving-problems.html

GitOrigin-RevId: a3cc01babc32c3edfbe59594fa3756a415cc169b
2022-12-07 15:26:37 +00:00
Konstantin Hudyakov
16b23a2dfa IFT-425 Fix run gutters highlighting and editor scroll in Java run configurations lesson
The previous fix incorrectly calculated height of the highlighting area and insufficiently scrolled editor up.

GitOrigin-RevId: 3ce5853eb474fc4194ce4533663a183bf2814797
2022-11-18 08:24:10 +00:00
Konstantin Hudyakov
9ccff2c3f8 [IFT] Fix run gutters highlighting in Java run configurations lesson
Previous implementation is highlighted only two gutters on the sequential lines, but for now they can be divided by additional line with usages count inlay hint.
Also, move initial caret position to not scroll editor down and fully show run gutters.

IJ-CR-98349

GitOrigin-RevId: 7b181f7b5fe471f1340429dbf003999ba0b2cc07
2022-11-14 13:29:39 +00:00
Konstantin Hudyakov
c3633782db IFT-423 Do not proceed the run lesson if user ran current file configuration
This lesson is designed to show run configurations feature, so running the current file should take no effect.

IJ-CR-98349

GitOrigin-RevId: 3a5b084488e564c15919e7ecd8e9f4e91e2ac0ca
2022-11-14 13:29:37 +00:00
Konstantin Hudyakov
27864baf43 [IFT] Remove all run configurations on onboarding lesson start
It is needed to properly show 'current file' configuration running.

GitOrigin-RevId: 96329953da9d05898d842b87b6b15ba1f0f729bd
2022-11-04 09:08:07 +00:00
Konstantin Hudyakov
68b7c53db2 IDEA-300739 Do not create instances of LangSupport during LangManager initialization
GitOrigin-RevId: a985502bde6f18d6fae7ba33463f7c6fad0b3a09
2022-09-06 06:02:37 +00:00
Konstantin Hudyakov
09cf2b1fee IDEA-300739 Add tests for checking integration of lessons with tips
GitOrigin-RevId: 04aeced1e0b20f5f74f0296270fa6ce22020d66e
2022-09-01 15:42:25 +00:00
Konstantin Hudyakov
5ae19d4044 IDEA-300739 Remove obsolete declarations of tips for lessons
GitOrigin-RevId: 23f0dc181089c24280e88702da46228b3777750f
2022-09-01 15:42:24 +00:00
Konstantin Hudyakov
26265ef6ff IDEA-300739 Specify tips for lessons in learning course
GitOrigin-RevId: a74698489a8af593e07a936422e27ebe76da6f98
2022-09-01 15:42:23 +00:00
Elena Shaverdova
19d9d0b58c Adapt CompletionPopupSuggesterTest and ReplaceCompletionSuggesterJavaTest to dumb mode completion testing
GitOrigin-RevId: 528947533c01c37d27bb77335b2674319ea5ecc9
2022-08-19 16:31:30 +00:00
Alexey Merkulov
c3a34a3b17 [IFT] Remove unused icon and regenerate FeaturesTrainerIcons class
IJ-CR-94315

GitOrigin-RevId: cb0b8119f504d082b1466c3b4ca41eeb71ee550a
2022-08-17 20:34:15 +00:00
Konstantin Hudyakov
d5b644a377 [IFT] Add internal action to reset onboarding feedback proposed state
Needed to show onboarding feedback form many times without resetting all settings.

IJ-CR-77483

GitOrigin-RevId: a8e2e46adc49028a59039e83753eac39a9e8d073
2022-08-10 12:37:59 +00:00
Alexey Merkulov
55c1134112 IFT-395 Fix debug lesson for the case when hot-swap is enabled without confirmation
The previous check looked for the substring in the HTML content and the content was formatted with line break inside. This check should be much more stable.

IJ-CR-28032

GitOrigin-RevId: 0950911af55fafff2194dd3f08a722a4d32fc0ab
2022-08-04 11:20:04 +00:00
Konstantin Hudyakov
ff8cd81848 IFT-390 Adapt Java onboarding lesson to new debugger layout
GitOrigin-RevId: 589f2fb96352317dd5052c2643ca679833204747
2022-07-13 06:39:04 +00:00
Konstantin Hudyakov
800dd5efd1 IFT-392 Fix Java Postfix completion lesson
Seems that implementation of postfix completion changed, because it does not wrap the expression into additional parenthesis.

IJ-CR-27086

GitOrigin-RevId: 80063720ae6714aa05521edc31120e4cd6db02c3
2022-07-13 06:38:23 +00:00
Konstantin Hudyakov
af4b896a2f [IFT] Set sources root directly during project initialization for java projects
Sometimes because of unknown reason sources roots can be not configured during project initialization.
Also removed configuration of language level because it has no effect and seems that is not needed.

IJ-CR-26953

GitOrigin-RevId: 766901f9e24c36c26b8a71359f64adb56c31a509
2022-07-08 13:16:57 +00:00
Konstantin Hudyakov
0e59510a2d [IFT] Make highlights in Java onboarding less aggressive
IJ-CR-26952

GitOrigin-RevId: 97924d50e7281b61af5729eb87ac7eeeb50cf232
2022-07-08 12:50:09 +00:00
Konstantin Hudyakov
ab0e740df2 [IFT] Show stop debug balloon in Debug toolwindow (Java onboarding)
It will decrease the path of eyes movement from the previous step.

IJ-CR-26892

GitOrigin-RevId: 2752c63ce3aca227b8ae67f0e785b7f141c52dec
2022-07-07 11:05:28 +00:00