We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 402ba88 commit 999fa23Copy full SHA for 999fa23
vscode-dotty/src/tracer.ts
@@ -69,7 +69,16 @@ export class Tracer {
69
return persisted(uuidv4())
70
})()
71
72
- this.projectId = vscode.workspace.name !== undefined ? vscode.workspace.name : 'no-project'
+ if (vscode.workspace.name !== undefined) {
73
+ // HACK: The projects cloned by students use the naming convention
74
+ // `$id-$name-$githubUsername`, so they leak the student's github
75
+ // username, to preserve anonymity, we drop the last part of the
76
+ // name.
77
+ this.projectId = vscode.workspace.name.replace(/^(\d+-.+)-.+$/, "$1")
78
+ } else {
79
+ this.projectId = 'no-project'
80
+ }
81
+
82
this.sessionId = new Date().toISOString()
83
}
84
0 commit comments