@@ -16,9 +16,10 @@ export function activate(context: ExtensionContext) {
16
16
extensionContext = context
17
17
outputChannel = vscode . window . createOutputChannel ( 'Dotty Language Client' ) ;
18
18
19
- const sbtArtifact = "org.scala-sbt:sbt-launch:1.2.0 "
19
+ const sbtArtifact = "org.scala-sbt:sbt-launch:1.2.3 "
20
20
const buildSbtFile = `${ vscode . workspace . rootPath } /build.sbt`
21
21
const dottyPluginSbtFile = path . join ( extensionContext . extensionPath , './out/dotty-plugin.sbt' )
22
+ const disableDottyIDEFile = `${ vscode . workspace . rootPath } /.dotty-ide-disabled`
22
23
const languageServerArtifactFile = `${ vscode . workspace . rootPath } /.dotty-ide-artifact`
23
24
const languageServerDefaultConfigFile = path . join ( extensionContext . extensionPath , './out/default-dotty-ide-config' )
24
25
const coursierPath = path . join ( extensionContext . extensionPath , './out/coursier' ) ;
@@ -42,9 +43,9 @@ export function activate(context: ExtensionContext) {
42
43
// otherwise, try propose to start it if there's no build.sbt
43
44
if ( fs . existsSync ( languageServerArtifactFile ) ) {
44
45
runLanguageServer ( coursierPath , languageServerArtifactFile )
45
- } else if ( ! fs . existsSync ( buildSbtFile ) ) {
46
+ } else if ( ! fs . existsSync ( disableDottyIDEFile ) && ! fs . existsSync ( buildSbtFile ) ) {
46
47
vscode . window . showInformationMessage (
47
- "This looks like an unconfigured project. Would you like to start Dotty IDE?" ,
48
+ "This looks like an unconfigured Scala project. Would you like to start the Dotty IDE?" ,
48
49
"Yes" , "No"
49
50
) . then ( choice => {
50
51
if ( choice == "Yes" ) {
@@ -57,6 +58,8 @@ export function activate(context: ExtensionContext) {
57
58
} )
58
59
}
59
60
} )
61
+ } else {
62
+ fs . appendFile ( disableDottyIDEFile , "" , _ => { } )
60
63
}
61
64
} )
62
65
}
@@ -118,7 +121,7 @@ function fetchWithCoursier(coursierPath: string, artifact: string, extra: string
118
121
function configureIDE ( sbtClasspath : string , languageServerScalaVersion : string , dottyPluginSbtFile : string ) {
119
122
return vscode . window . withProgress ( {
120
123
location : vscode . ProgressLocation . Window ,
121
- title : 'Configuring IDE...'
124
+ title : 'Configuring the IDE for Dotty ...'
122
125
} , ( progress ) => {
123
126
124
127
// Run sbt to configure the IDE. If the `DottyPlugin` is not present, dynamically load it and
0 commit comments