Skip to content

Commit 1a3b00a

Browse files
committed
vscode-dotty: relax unconfigured project check
If .dotty-ide.json and .dotty-ide-artifact are present, then consider that the project is configured. This makes it possible to start the IDE in projects that don't use sbt.
1 parent 8b54306 commit 1a3b00a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vscode-dotty/src/extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ const sbtPluginFile = path.join(sbtProjectDir, "dotty-plugin.sbt")
3838
const sbtBuildPropertiesFile = path.join(sbtProjectDir, "build.properties")
3939
const sbtBuildSbtFile = path.join(workspaceRoot, "build.sbt")
4040
const languageServerArtifactFile = path.join(workspaceRoot, ".dotty-ide-artifact")
41+
const languageServerConfigFile = path.join(workspaceRoot, ".dotty-ide.json")
4142

4243
function isConfiguredProject() {
4344
return ( fs.existsSync(sbtPluginFile)
4445
|| fs.existsSync(sbtBuildPropertiesFile)
4546
|| fs.existsSync(sbtBuildSbtFile)
47+
|| (fs.existsSync(languageServerArtifactFile) && fs.existsSync(languageServerConfigFile))
4648
)
4749
}
4850

0 commit comments

Comments
 (0)