Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove use of deprecated/internal api #22

Merged
merged 1 commit into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

## [Unreleased]

## [1.1.1] - 2024-12-07

- Remove use of internal/deprecated API

## [1.1.0] - 2024-11-30

- Support IDEA 2024.3
Expand All @@ -20,7 +24,8 @@

- Initial implementation with clickable inlay hint added for implicit invoke calls.

[Unreleased]: https://github.com/nathanmbrown/uncloak-invoke/compare/v1.1.0...HEAD
[Unreleased]: https://github.com/nathanmbrown/uncloak-invoke/compare/v1.1.1...HEAD
[1.1.1]: https://github.com/nathanmbrown/uncloak-invoke/compare/v1.1.0...v1.1.1
[1.1.0]: https://github.com/nathanmbrown/uncloak-invoke/compare/v1.0.0...v1.1.0
[1.0.0]: https://github.com/nathanmbrown/uncloak-invoke/compare/v0.0.1...v1.0.0
[0.0.1]: https://github.com/nathanmbrown/uncloak-invoke/commits/v0.0.1
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# UncloakInvoke

![Build](https://github.com/nathanmbrown/uncloak-invoke/workflows/Build/badge.svg)
[![Version](https://img.shields.io/jetbrains/plugin/v/MARKETPLACE_ID.svg)](https://plugins.jetbrains.com/plugin/MARKETPLACE_ID)
[![Downloads](https://img.shields.io/jetbrains/plugin/d/MARKETPLACE_ID.svg)](https://plugins.jetbrains.com/plugin/MARKETPLACE_ID)
[![Version](https://img.shields.io/jetbrains/plugin/v/25975-uncloak-invoke.svg)](https://plugins.jetbrains.com/plugin/25975-uncloak-invoke)
[![Downloads](https://img.shields.io/jetbrains/plugin/d/25975-uncloak-invoke.svg)](https://plugins.jetbrains.com/plugin/25975-uncloak-invoke)

<!-- Plugin description -->
This plugin adds a clickable inlay hint for the implicit `invoke` call made when a Kotlin instance with an `operator fun invoke()` method is called as a function.
Expand All @@ -17,12 +17,14 @@ class Reverser {
}

val reverser = Reverser()
reverser("FooBar")
println(reverser(“!dlrow olleH”))
```
Navigating to the declaration of `reverser` on the last line will take you to the declaration of the `val reverser`.
Navigating to the type of `reverser` will take you to the `class Reverser`, but you will still have to locate the invoke method yourself, which is not always straightforward.

The inlay added by this plugin gives you a direct link to the invoke method, which is handy when browsing and debugging code that uses objects as functions.

![screenshot.png](screenshot.png)

<!-- Plugin description end -->

Expand All @@ -35,9 +37,9 @@ The inlay added by this plugin gives you a direct link to the invoke method, whi

- Using JetBrains Marketplace:

Go to [JetBrains Marketplace](https://plugins.jetbrains.com/plugin/MARKETPLACE_ID) and install it by clicking the <kbd>Install to ...</kbd> button in case your IDE is running.
Go to [JetBrains Marketplace](https://plugins.jetbrains.com/plugin/25975-uncloak-invoke) and install it by clicking the <kbd>Install to ...</kbd> button in case your IDE is running.

You can also download the [latest release](https://plugins.jetbrains.com/plugin/MARKETPLACE_ID/versions) from JetBrains Marketplace and install it manually using
You can also download the [latest release](https://plugins.jetbrains.com/plugin/25975-uncloak-invoke/versions) from JetBrains Marketplace and install it manually using
<kbd>Settings/Preferences</kbd> > <kbd>Plugins</kbd> > <kbd>⚙️</kbd> > <kbd>Install plugin from disk...</kbd>

- Manually:
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pluginGroup = com.github.nathanmbrown.uncloakinvoke
pluginName = UncloakInvoke
pluginRepositoryUrl = https://github.com/nathanmbrown/uncloak-invoke
# SemVer format -> https://semver.org
pluginVersion = 1.1.0
pluginVersion = 1.1.1

# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild = 233
Expand Down
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import com.intellij.openapi.project.DumbService
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
import com.intellij.refactoring.suggested.endOffset
import com.intellij.psi.util.endOffset
import com.intellij.ui.dsl.builder.panel
import org.jetbrains.kotlin.descriptors.CallableDescriptor
import org.jetbrains.kotlin.idea.caches.resolve.analyze
Expand Down
Loading