@@ -920,19 +920,15 @@ object Build {
920
920
.start()
921
921
.waitFor()
922
922
if (exitCode != 0 )
923
- throw new FeedbackProvidedException {
924
- override def toString = " 'npm run update-all' in vscode-dotty failed"
925
- }
923
+ throw new MessageOnlyException (" 'npm run update-all' in vscode-dotty failed" )
926
924
}
927
925
val tsc = baseDirectory.value / " node_modules" / " .bin" / " tsc"
928
926
val exitCodeTsc = new java.lang.ProcessBuilder (tsc.getAbsolutePath, " --pretty" , " --project" , baseDirectory.value.getAbsolutePath)
929
927
.inheritIO()
930
928
.start()
931
929
.waitFor()
932
930
if (exitCodeTsc != 0 )
933
- throw new FeedbackProvidedException {
934
- override def toString = " tsc in vscode-dotty failed"
935
- }
931
+ throw new MessageOnlyException (" tsc in vscode-dotty failed" )
936
932
937
933
// Currently, vscode-dotty depends on daltonjorge.scala for syntax highlighting,
938
934
// this is not automatically installed when starting the extension in development mode
@@ -942,9 +938,7 @@ object Build {
942
938
.start()
943
939
.waitFor()
944
940
if (exitCodeInstall != 0 )
945
- throw new FeedbackProvidedException {
946
- override def toString = " Installing dependency daltonjorge.scala failed"
947
- }
941
+ throw new MessageOnlyException (" Installing dependency daltonjorge.scala failed" )
948
942
949
943
sbt.inc.Analysis .Empty
950
944
},
@@ -955,9 +949,7 @@ object Build {
955
949
.start()
956
950
.waitFor()
957
951
if (exitCode != 0 )
958
- throw new FeedbackProvidedException {
959
- override def toString = " vsce package failed"
960
- }
952
+ throw new MessageOnlyException (" vsce package failed" )
961
953
962
954
baseDirectory.value / s " dotty- ${version.value}.vsix "
963
955
},
@@ -968,9 +960,7 @@ object Build {
968
960
.start()
969
961
.waitFor()
970
962
if (exitCode != 0 )
971
- throw new FeedbackProvidedException {
972
- override def toString = " vsce unpublish failed"
973
- }
963
+ throw new MessageOnlyException (" vsce unpublish failed" )
974
964
},
975
965
publish := {
976
966
val exitCode = new java.lang.ProcessBuilder (" vsce" , " publish" )
@@ -979,9 +969,7 @@ object Build {
979
969
.start()
980
970
.waitFor()
981
971
if (exitCode != 0 )
982
- throw new FeedbackProvidedException {
983
- override def toString = " vsce publish failed"
984
- }
972
+ throw new MessageOnlyException (" vsce publish failed" )
985
973
},
986
974
run := Def .inputTask {
987
975
val inputArgs = spaceDelimited(" <arg>" ).parsed
@@ -994,9 +982,7 @@ object Build {
994
982
.start()
995
983
.waitFor()
996
984
if (exitCode != 0 )
997
- throw new FeedbackProvidedException {
998
- override def toString = " Running Visual Studio Code failed"
999
- }
985
+ throw new MessageOnlyException (" Running Visual Studio Code failed" )
1000
986
}.dependsOn(compile in Compile ).evaluated
1001
987
)
1002
988
0 commit comments