mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-23 19:59:37 +00:00
remove logDirectory, #43275
This commit is contained in:
@@ -28,13 +28,13 @@ export default class LogDirectoryProvider {
|
||||
@memoize
|
||||
private logDirectory(): string | undefined {
|
||||
try {
|
||||
const path = this.context.logDirectory;
|
||||
const path = this.context.logPath;
|
||||
if (!fs.existsSync(path)) {
|
||||
fs.mkdirSync(path);
|
||||
}
|
||||
return this.context.logDirectory;
|
||||
return this.context.logPath;
|
||||
} catch {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user