File tree 2 files changed +11
-5
lines changed 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 51
51
"vscode:prepublish" : " npm install && ./node_modules/.bin/tsc -p ./" ,
52
52
"compile" : " ./node_modules/.bin/tsc -p ./" ,
53
53
"test" : " node ./node_modules/vscode/bin/test" ,
54
- "postinstall" : " node ./node_modules/vscode/bin/install && curl -L -o out/coursier https://github.com/coursier/coursier/raw/v1.0.0/coursier && curl -L -o out/load-plugin.jar https://github.com/scalacenter/load-plugin /releases/download/v0. 1.0/load-plugin_2.12-0.1.0.jar"
54
+ "postinstall" : " node ./node_modules/vscode/bin/install && curl -L -o out/coursier https://github.com/coursier/coursier/raw/v1.0.0/coursier && curl -L -o out/load-plugin.jar https://oss.sonatype.org/content/repositories /releases/ch/epfl/scala/load-plugin_2.12/0. 1.0+2-496ac670 /load-plugin_2.12-0.1.0+2-496ac670 .jar"
55
55
},
56
56
"extensionDependencies" : [
57
57
" daltonjorge.scala"
Original file line number Diff line number Diff line change @@ -94,15 +94,21 @@ function configureIDE() {
94
94
title : 'Configuring IDE...'
95
95
} , ( progress ) => {
96
96
97
+ const applyLoadPlugin = "apply -cp " + loadPluginPath + " ch.epfl.scala.loadplugin.LoadPlugin"
98
+ const ifAbsentCommands = [
99
+ "if-absent dotty.tools.sbtplugin.DottyPlugin" ,
100
+ "\"set every scalaVersion := \\\"0.8.0-bin-SNAPSHOT\\\"\"" ,
101
+ "\"load-plugin ch.epfl.lamp:sbt-dotty:0.2.0-SNAPSHOT dotty.tools.sbtplugin.DottyPlugin\"" ,
102
+ "\"load-plugin ch.epfl.lamp:sbt-dotty:0.2.0-SNAPSHOT dotty.tools.sbtplugin.DottyIDEPlugin\""
103
+ ] . join ( " " )
104
+
97
105
const sbtPromise =
98
106
cpp . spawn ( "java" , [
99
107
"-jar" , coursierPath ,
100
108
"launch" ,
101
109
"org.scala-sbt:sbt-launch:1.1.2" , "--" ,
102
- "apply -cp " + loadPluginPath + " ch.epfl.scala.loadplugin.LoadPlugin" ,
103
- "set every scalaVersion := \"0.8.0-bin-SNAPSHOT\"" ,
104
- "load-plugin ch.epfl.lamp:sbt-dotty:0.2.0-SNAPSHOT dotty.tools.sbtplugin.DottyPlugin" ,
105
- "load-plugin ch.epfl.lamp:sbt-dotty:0.2.0-SNAPSHOT dotty.tools.sbtplugin.DottyIDEPlugin" ,
110
+ applyLoadPlugin ,
111
+ ifAbsentCommands ,
106
112
"configureIDE"
107
113
] )
108
114
const sbtProc = sbtPromise . childProcess
You can’t perform that action at this time.
0 commit comments