From f81c472d797a6db7fedf181a660ae9d2fd7fc0d8 Mon Sep 17 00:00:00 2001 From: Bela VanderVoort Date: Fri, 26 Apr 2024 11:14:05 -0500 Subject: [PATCH] Use 127.0.0.1 for rider extension --- Src/CSharpier.Rider/CHANGELOG.md | 3 +++ Src/CSharpier.Rider/gradle.properties | 2 +- .../java/com/intellij/csharpier/CSharpierProcessServer.java | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Src/CSharpier.Rider/CHANGELOG.md b/Src/CSharpier.Rider/CHANGELOG.md index 1ced43054..819cf39be 100644 --- a/Src/CSharpier.Rider/CHANGELOG.md +++ b/Src/CSharpier.Rider/CHANGELOG.md @@ -2,6 +2,9 @@ # csharpier-rider Changelog +## [1.7.3] +- Fix issue with csharpier server not working when localhost resolved to IPv6 ::1 + ## [1.7.2] - Better error message when csharpier server fails to start diff --git a/Src/CSharpier.Rider/gradle.properties b/Src/CSharpier.Rider/gradle.properties index 2f2e5f9b2..99a7d1edd 100644 --- a/Src/CSharpier.Rider/gradle.properties +++ b/Src/CSharpier.Rider/gradle.properties @@ -3,7 +3,7 @@ pluginGroup = com.intellij.csharpier pluginName = csharpier -pluginVersion = 1.7.2 +pluginVersion = 1.7.3 # See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html # for insight into build numbers and IntelliJ Platform versions. diff --git a/Src/CSharpier.Rider/src/main/java/com/intellij/csharpier/CSharpierProcessServer.java b/Src/CSharpier.Rider/src/main/java/com/intellij/csharpier/CSharpierProcessServer.java index 37719d730..a4c1e0dfb 100644 --- a/Src/CSharpier.Rider/src/main/java/com/intellij/csharpier/CSharpierProcessServer.java +++ b/Src/CSharpier.Rider/src/main/java/com/intellij/csharpier/CSharpierProcessServer.java @@ -81,7 +81,7 @@ public FormatFileResult formatFile(FormatFileParameter parameter) { return null; } - var url = "http://localhost:" + this.port + "/format"; + var url = "http://127.0.0.1:" + this.port + "/format"; try {