Skip to content

Commit 277dd8b

Browse files
author
Aleksander Boruch-Gruszecki
committed
VsCode plugin: make workspace dump more informative
Remote useless info, say when starting to zip.
1 parent 3441178 commit 277dd8b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

vscode-dotty/src/tracer.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,16 +165,10 @@ export class Tracer {
165165
const outputPath = path.join(storagePath, 'workspace-dump.zip');
166166
if (fs.existsSync(outputPath)) fs.unlinkSync(outputPath);
167167
const output = fs.createWriteStream(outputPath);
168-
output.on('end', () => {
169-
this.ctx.extensionOut.appendLine('zip - data has been drained');
170-
});
171168

172169
const zip = archiver('zip');
173170
zip.on('error', (err) => this.logError('zip error', safeError(err)));
174171
zip.on('warning', (err) => this.logError('zip warning', safeError(err)));
175-
zip.on('entry', (entry) => {
176-
this.ctx.extensionOut.appendLine(`zip - entry: ${entry.name}`);
177-
});
178172
zip.on('finish', () => {
179173
this.ctx.extensionOut.appendLine('zip - finished');
180174
fs.createReadStream(outputPath).pipe(
@@ -195,6 +189,8 @@ export class Tracer {
195189
})
196190
);
197191
});
192+
193+
this.ctx.extensionOut.appendLine('zip - starting');
198194
zip.pipe(output);
199195
zip.glob('./**/*.{scala,sc,sbt,java}', { cwd: rootPath });
200196
zip.glob('./**/.dotty-ide{.json,-artifact}', { cwd: rootPath });

0 commit comments

Comments
 (0)