question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Migrate to 2021.3 Platform

See original GitHub issue

Hi, in scope of https://youtrack.jetbrains.com/issue/IDEA-277609 the documentation subsystem was rewritten. The new implementation is enabled by default via documentation.v2 registry key.

The new implementation does not use com.intellij.codeInsight.documentation.DocumentationComponent and dependent APIs (which means com.intellij.codeInsight.documentation.DocumentationActionProvider is not used as well).

Please check out the new implementation in https://github.com/JetBrains/intellij-community/tree/master/platform/lang-impl/src/com/intellij/lang/documentation and tell me what APIs are required for your plugin, so I would have time to provide them for you before 2021.3 release.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
dovchinnikovcommented, Oct 21, 2021

Easily switch the display of the original documentation and the documentation after processing.

I’ve added com.intellij.lang.documentation.ide.DocumentationBrowserFacade and corresponding key com.intellij.lang.documentation.ide.actions.DOCUMENTATION_BROWSER to obtain it. See https://github.com/JetBrains/intellij-community/commit/b0dc835e699c151348fef9c4a69c6ccdb917e265 and https://github.com/JetBrains/intellij-community/commit/4d72e0c60953dd3c7ef6f5654be07ad4285ce059

With it the ToggleQuickDocTranslationAction could look like:

class ToggleQuickDocTranslationAction : ... {

    override fun update(e: AnActionEvent) {
        ...
        e.presentation.isEnabled = e.dataContext.getData(DOCUMENTATION_BROWSER) != null
    }

    override fun isSelected(e: AnActionEvent): Boolean {
        return Settings.translateDocumentation
    }

    override fun setSelected(e: AnActionEvent, state: Boolean) {
        Settings.translateDocumentation = state
        e.dataContext.getData(DOCUMENTATION_BROWSER)?.reload()
    }
}
2reactions
dovchinnikovcommented, Oct 21, 2021

Get the selection in the documentation.

This one is done by https://github.com/JetBrains/intellij-community/commit/899c6a834d0e0bba6f5852b6f720b7313f4cb024. It will be available in the EAP next week. The same com.intellij.codeInsight.documentation.DocumentationManager#SELECTED_QUICK_DOC_TEXT key works in the new implementation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manual: Upgrading to Unity 2021 LTS
Choose the Unity Project to update and click Discover Features. Under Platform Support, select the Mixed Reality OpenXR Plugin. Select any additional features ......
Read more >
Migration Guide | MPS - JetBrains
The Pre-Update Check action can be started from the Main Menu | Migration | Run Pre-Update Check menu item. You run it in...
Read more >
InfoBurst 2021.3 - Release Notes - InfoSol Help Desk
InfoBurst 2021 represents the 64-bit version of InfoBurst. The move to 64-bit means new features, faster performance, and better memory allocation for handling ......
Read more >
Getting Started with Tableau Content Migration Tool
Content Migration Tool versions 2022.2.1 and later support content migration for all Tableau Cloud deployments. To download the latest installer, see the ...
Read more >
SolarWinds Platform 2022.3 Release Notes
Make sure all your legacy reports are migrated. · After upgrading to SolarWinds Hybrid Cloud Observability from an Orion Platform 2020.2. · Some...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found