Skip to content

Commit

Permalink
fix(intellij): lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
icycodes committed Nov 26, 2024
1 parent fcc412e commit 8e9654c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ class CheckIssueDetail : AnAction() {
val server = connectionService.getServerAsync() ?: return@launch
val command = combinedState.state.agentStatus?.command ?: return@launch

server.workspaceFeature.executeCommand(ExecuteCommandParams(
command.command,
command.arguments,
))
server.workspaceFeature.executeCommand(
ExecuteCommandParams(
command.command,
command.arguments,
)
)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ import com.intellij.openapi.progress.util.BackgroundTaskUtil
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.guessProjectDir
import com.intellij.openapi.util.SystemInfo
import com.intellij.openapi.util.io.toNioPath
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.psi.TokenType
import com.intellij.ui.jcef.JBCefBrowser
import com.intellij.ui.jcef.JBCefBrowserBase
import com.intellij.ui.jcef.JBCefJSQuery
Expand Down Expand Up @@ -646,7 +643,7 @@ class ChatBrowser(private val project: Project) : JBCefBrowser(
return URLBuilder(this).appendPathSegments(path).toString()
}

private fun buildCodeBrowserUrl(config: Config.ServerConfig, context: FileContext): String? {
private fun buildCodeBrowserUrl(config: Config.ServerConfig, context: FileContext): String {
return URLBuilder(config.endpoint).apply {
appendPathSegments("files")
parameters.append("redirect_git_url", context.gitUrl)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import com.tabbyml.intellijtabby.lsp.protocol.ClientProvidedConfig.Keybindings
import com.tabbyml.intellijtabby.lsp.protocol.EventParams.EventType
import com.tabbyml.intellijtabby.lsp.protocol.EventParams.SelectKind
import com.tabbyml.intellijtabby.lsp.protocol.ReadFileParams.Format
import com.tabbyml.intellijtabby.lsp.protocol.StatusIgnoredIssuesEditParams.Operation
import com.tabbyml.intellijtabby.lsp.protocol.StatusIgnoredIssuesEditParams.StatusIssuesName
import com.tabbyml.intellijtabby.lsp.protocol.StatusInfo.Status
import org.eclipse.lsp4j.*

data class InitializeParams(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ import com.intellij.util.ui.FormBuilder
import com.intellij.util.ui.JBUI
import com.intellij.util.ui.UIUtil
import com.tabbyml.intellijtabby.lsp.ConnectionService
import com.tabbyml.intellijtabby.lsp.protocol.*
import com.tabbyml.intellijtabby.lsp.protocol.StatusIgnoredIssuesEditParams
import com.tabbyml.intellijtabby.lsp.protocol.StatusInfo
import com.tabbyml.intellijtabby.lsp.protocol.StatusRequestParams
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
Expand Down

0 comments on commit 8e9654c

Please sign in to comment.