Skip to content

Commit 0237165

Browse files
fix: Allow absolute path for --output
1 parent 05bc904 commit 0237165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pyright-scip/src/main-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function indexAction(options: IndexOptions): void {
2222
const originalWorkdir = process.cwd();
2323
process.chdir(projectRoot);
2424

25-
const outputFile = path.join(projectRoot, options.output);
25+
const outputFile = path.isAbsolute(options.output) ? options.output : path.join(originalWorkdir, options.output);
2626
const output = fs.openSync(outputFile, 'w');
2727

2828
try {

0 commit comments

Comments
 (0)