Skip to content

Commit 1eb8fae

Browse files
committed
If the include_dirs is empty, then add the directory of the file to the include path.
1 parent e21f719 commit 1eb8fae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lspserver/src/fstar.ts

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ export class FStar {
6161
if (config.include_dirs) {
6262
config.include_dirs.forEach((dir) => { options.push("--include"); options.push(dir); });
6363
}
64+
if (!config.include_dirs || config.include_dirs.length === 0) {
65+
options.push("--include");
66+
options.push(path.dirname(filePath));
67+
}
6468
if (!config.fstar_exe) {
6569
config.fstar_exe = "fstar.exe";
6670
}

0 commit comments

Comments
 (0)