-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
89 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Existent IDE versions can be found in the following repos: | ||
# https://www.jetbrains.com/intellij-repository/releases/ | ||
# https://www.jetbrains.com/intellij-repository/snapshots/ | ||
ideaVersion=243.16718-EAP-CANDIDATE-SNAPSHOT | ||
|
||
# https://plugins.jetbrains.com/plugin/8195-toml/versions | ||
tomlPlugin=org.toml.lang:243.15521.25 | ||
# https://plugins.jetbrains.com/plugin/12175-grazie-lite/versions | ||
graziePlugin=tanvd.grazi:243.15521.28 | ||
# https://plugins.jetbrains.com/plugin/227-psiviewer/versions | ||
psiViewerPlugin=PsiViewer:243.7768 | ||
|
||
# please see https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description | ||
sinceBuild=243 | ||
untilBuild=243.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Use of this source code is governed by the MIT license that can be | ||
* found in the LICENSE file. | ||
*/ | ||
|
||
package org.rust | ||
|
||
import com.intellij.ide.util.treeView.smartTree.Sorter | ||
import com.intellij.openapi.actionSystem.DataContext | ||
import com.intellij.platform.navbar.NavBarItemPresentationData | ||
import com.intellij.platform.navbar.backend.NavBarItem | ||
import com.intellij.platform.navbar.backend.impl.pathToItem | ||
import com.intellij.util.concurrency.annotations.RequiresReadLock | ||
import org.jetbrains.annotations.TestOnly | ||
|
||
// BACKCOMPAT 2024.1: use directly in RsCombinedVisibilityAlphaSorterTest | ||
val alphaSorterId = Sorter.getAlphaSorterId() | ||
|
||
// BACKCOMPAT 2024.1: move to RsNavBarTest | ||
@Suppress("UnstableApiUsage") | ||
@TestOnly | ||
@RequiresReadLock | ||
fun contextNavBarPathStrings(ctx: DataContext): List<String> { | ||
// Navigation bar implementation was split into several modules, which made `navbar.testFramework` test scope only. | ||
// | ||
// See https://youtrack.jetbrains.com/issue/IJPL-850/Split-navigation-bar-implementation-into-several-modules, | ||
// https://github.com/JetBrains/intellij-community/commit/a9e1406257b330d17d2a3f78f47b2d2113eca97c and | ||
// https://github.com/JetBrains/intellij-community/commit/bfa6619891699658f86a7bf8bdf7726a67bc6efd | ||
|
||
// Code copied from [platform/navbar/testFramework/src/testFramework.kt](https://github.com/JetBrains/intellij-community/blob/d161fd043392998e10c4551df92634dbda5a06b5/platform/navbar/testFramework/src/testFramework.kt#L34). | ||
val contextItem = NavBarItem.NAVBAR_ITEM_KEY.getData(ctx) | ||
?.dereference() | ||
?: return emptyList() | ||
return contextItem.pathToItem().map { | ||
(it.presentation() as NavBarItemPresentationData).text | ||
} | ||
} | ||
|
||
// BACKCOMPAT 2024.1: unwrap to contextNavBarPathStrings | ||
fun contextNavBarPathStringsCompat(ctx: DataContext): List<String> { | ||
return contextNavBarPathStrings(ctx) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters