From 4da95892ba6e11be537ba14a1bf63463ef16df54 Mon Sep 17 00:00:00 2001 From: Zhiming Ma Date: Fri, 25 Aug 2023 00:19:45 +0800 Subject: [PATCH] chore: bump intellij plugin version 0.2.0. (#369) --- clients/intellij/CHANGELOG.md | 9 +++++++++ clients/intellij/build.gradle.kts | 2 +- .../intellijtabby/editor/InlineCompletionService.kt | 2 +- clients/intellij/src/main/resources/META-INF/plugin.xml | 5 ++++- 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 clients/intellij/CHANGELOG.md diff --git a/clients/intellij/CHANGELOG.md b/clients/intellij/CHANGELOG.md new file mode 100644 index 0000000..e30cf22 --- /dev/null +++ b/clients/intellij/CHANGELOG.md @@ -0,0 +1,9 @@ +## 0.2.0 + +Features: + +- Added support for Tabby Cloud hosted server authorization. + +Fixes: +- Fixed inlay text rendering issues. + diff --git a/clients/intellij/build.gradle.kts b/clients/intellij/build.gradle.kts index de804d4..575278b 100644 --- a/clients/intellij/build.gradle.kts +++ b/clients/intellij/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } group = "com.tabbyml" -version = "0.1.2" +version = "0.2.0" repositories { mavenCentral() diff --git a/clients/intellij/src/main/kotlin/com/tabbyml/intellijtabby/editor/InlineCompletionService.kt b/clients/intellij/src/main/kotlin/com/tabbyml/intellijtabby/editor/InlineCompletionService.kt index 0d63410..1ddb1f9 100644 --- a/clients/intellij/src/main/kotlin/com/tabbyml/intellijtabby/editor/InlineCompletionService.kt +++ b/clients/intellij/src/main/kotlin/com/tabbyml/intellijtabby/editor/InlineCompletionService.kt @@ -100,7 +100,7 @@ class InlineCompletionService { private fun createInlayLine(editor: Editor, offset: Int, line: String, index: Int): Inlay<*>? { val renderer = object : EditorCustomElementRenderer { override fun calcWidthInPixels(inlay: Inlay<*>): Int { - return getWidth(inlay.editor, line) + return maxOf(getWidth(inlay.editor, line), 1) } override fun paint(inlay: Inlay<*>, graphics: Graphics, targetRect: Rectangle, textAttributes: TextAttributes) { diff --git a/clients/intellij/src/main/resources/META-INF/plugin.xml b/clients/intellij/src/main/resources/META-INF/plugin.xml index b4aef8c..5f6d96a 100644 --- a/clients/intellij/src/main/resources/META-INF/plugin.xml +++ b/clients/intellij/src/main/resources/META-INF/plugin.xml @@ -25,7 +25,10 @@ Tabby plugin requires Node.js 16.0+ installed and added into PATH enviroment variable.

Get Started

    -
  1. Please following this guide to setup a self-hosted Tabby server.
  2. +
  3. + Set up the Tabby server: you can get a Tabby Cloud hosted server here, or build your self-hosted Tabby server following this guide.
    + Note: Tabby Cloud is currently in beta. Join our Slack community and ask in Tabby Cloud channel to get a beta invite. +
  4. Open the settings page Settings > Editor > Tabby, or click the Tabby status bar item and Open Settings.... Fill in the server endpoint URL to connect the plugin to your Tabby server. The status bar item will show a checked icon if the connection is successful.
  5. Once setup is complete, Tabby will provide inline suggestions automatically, and you can accept suggestions by just pressing the Tab key.
  6. You can find more actions and hotkey in the IDE tools menu Code > Tabby.