Skip to content
This repository was archived by the owner on Sep 28, 2025. It is now read-only.

Commit 2f93c19

Browse files
committed
adding timings
1 parent 1f8daa9 commit 2f93c19

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

server/src/lib/lsp/process/pack-processor.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export class PackProcessor extends BaseService {
2020
}
2121

2222
async process(pack: Pack, token?: CancellationToken): Promise<void> {
23+
const start = Date.now();
2324
const name = getBasename(Fs.FromVscode(pack.folder));
2425
const reporter = await ProgressBar.create(this.extension, `pack: ${name}`);
2526
reporter.sendMessage("processing");
@@ -49,6 +50,12 @@ export class PackProcessor extends BaseService {
4950
structures.forEach((item) => pack.process({ getText: emptyText, uri: item }));
5051
}
5152

53+
this.logger.debug("processed pack", {
54+
uri: pack.folder,
55+
type: pack.type,
56+
files: files.length,
57+
ms: Date.now() - start
58+
})
5259
reporter.done();
5360
}
5461

server/src/lib/lsp/process/workspace-processor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export class WorkspaceProcessor extends BaseService implements Partial<IService>
9595
reporter.done();
9696
}
9797

98-
async process(workspace: WorkspaceFolder, token?: CancellationToken) {
98+
async process(workspace: WorkspaceFolder, token?: CancellationToken): Promise<void> {
9999
const reporter = await this.extension.connection.window.createWorkDoneProgress();
100100
reporter.begin(`Processing workspace: ${workspace.name}`, 0, "", true);
101101
this.logger.info(`processing workspace ${workspace.name}`, workspace);

0 commit comments

Comments
 (0)