Skip to content

Commit ebf75e7

Browse files
committed
fix #1043
1 parent 01f8d14 commit ebf75e7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/client/workspaceSymbols/generator.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as vscode from 'vscode';
22
import * as path from 'path';
3+
import * as fs from 'fs';
34
import * as child_process from 'child_process';
45
import { PythonSettings } from '../common/configSettings';
56

@@ -42,7 +43,10 @@ export class Generator implements vscode.Disposable {
4243
outputFile = path.basename(outputFile);
4344
}
4445
outputFile = outputFile.indexOf(' ') > 0 ? `"${outputFile}"` : outputFile;
45-
46+
const outputDir = path.dirname(outputFile);
47+
if (!fs.existsSync(outputDir)){
48+
fs.mkdirSync(outputDir);
49+
}
4650
args.push(`-o ${outputFile}`, '.');
4751
this.output.appendLine('-'.repeat(10) + 'Generating Tags' + '-'.repeat(10));
4852
this.output.appendLine(`${cmd} ${args.join(' ')}`);

0 commit comments

Comments
 (0)