Skip to content

Commit 5b1caa1

Browse files
committed
refactor: Adjust extension
1 parent c10ce24 commit 5b1caa1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

client/src/extension.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@ export function activate({ subscriptions, extension }: ExtensionContext) {
3535
version = extension.packageJSON.version ?? "<unknown>"
3636

3737
const config = workspace.getConfiguration("roughly")
38+
3839
const command = process.env.SERVER_PATH
39-
?? (config.get<string>("path")
40-
?? (fs.existsSync(BUNDLED_ROUGHLY_EXECUTABLE)
40+
?? config.get<string>("path")
41+
?? (
42+
fs.existsSync(BUNDLED_ROUGHLY_EXECUTABLE)
4143
? BUNDLED_ROUGHLY_EXECUTABLE
4244
: "roughly"
43-
))
45+
)
4446

4547
const args = config.get<string[]>("args", ["server"])
4648

0 commit comments

Comments
 (0)