use workspace storage location instead of global storage location (#232596)
parent
a3e0ecec10
commit
4b601b0fcf
|
@ -86,10 +86,11 @@ export async function activate(context: vscode.ExtensionContext) {
|
|||
}, uri => ctrl.items.get(uri.toString().toLowerCase()));
|
||||
ctrl.relatedCodeProvider = graph;
|
||||
|
||||
context.subscriptions.push(
|
||||
new FailureTracker(context, folder.uri.fsPath),
|
||||
fileChangedEmitter.event(e => graph.didChange(e.uri, e.removed)),
|
||||
);
|
||||
if (context.storageUri) {
|
||||
context.subscriptions.push(new FailureTracker(context.storageUri.fsPath, folder.uri.fsPath));
|
||||
}
|
||||
|
||||
context.subscriptions.push(fileChangedEmitter.event(e => graph.didChange(e.uri, e.removed)));
|
||||
});
|
||||
|
||||
const createRunHandler = (
|
||||
|
|
|
@ -33,8 +33,8 @@ export class FailureTracker {
|
|||
private readonly logFile: string;
|
||||
private logs?: ITrackedRemediation[];
|
||||
|
||||
constructor(context: vscode.ExtensionContext, private readonly rootDir: string) {
|
||||
this.logFile = join(context.globalStorageUri.fsPath, '.build/vscode-test-failures.json');
|
||||
constructor(storageLocation: string, private readonly rootDir: string) {
|
||||
this.logFile = join(storageLocation, '.build/vscode-test-failures.json');
|
||||
mkdirSync(dirname(this.logFile), { recursive: true });
|
||||
|
||||
const oldLogFile = join(rootDir, '.build/vscode-test-failures.json');
|
||||
|
|
Loading…
Reference in New Issue