MCPcopy Create free account
hub / github.com/Snapchat/Valdi / update

Method update

valdi/vscode_plugin/src/extension.ts:67–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 }
66
67 private async update() {
68 const currentMostRecentLogFileName = await this.getMostRecentLogFilePath();
69 if (currentMostRecentLogFileName === this.mostRecentLogFileName) {
70 return;
71 }
72 this.stopTailingLog();
73
74 this.mostRecentLogFileName = currentMostRecentLogFileName;
75
76 this.startTailingLog();
77 }
78
79 private async getMostRecentLogFilePath() {
80 const fileNames = await fs.readdir(logsDir);

Callers 1

startMethod · 0.95

Calls 3

stopTailingLogMethod · 0.95
startTailingLogMethod · 0.95

Tested by

no test coverage detected