We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4960d1 commit 34b04d4Copy full SHA for 34b04d4
sbt-dotty/src/dotty/tools/sbtplugin/DottyIDEPlugin.scala
@@ -186,8 +186,11 @@ object DottyIDEPlugin extends AutoPlugin {
186
.replace("-nonbootstrapped", "") // The language server is only published bootstrapped
187
val dlsBinaryVersion = dlsVersion.split("\\.").take(2).mkString(".")
188
val pwArtifact = new PrintWriter(".dotty-ide-artifact")
189
- pwArtifact.println(s"ch.epfl.lamp:dotty-language-server_${dlsBinaryVersion}:${dlsVersion}")
190
- pwArtifact.close()
+ try {
+ pwArtifact.println(s"ch.epfl.lamp:dotty-language-server_${dlsBinaryVersion}:${dlsVersion}")
191
+ } finally {
192
+ pwArtifact.close()
193
+ }
194
195
val mapper = new ObjectMapper
196
mapper.writerWithDefaultPrettyPrinter()
0 commit comments