Skip to content

Commit 1512bd2

Browse files
author
Noam Kfir
committed
Use class name instead of file path in code object id for mvc endpoint methods
1 parent 6d16a8c commit 1512bd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/languages/csharp/AspNetCoreMvcEndpointExtractor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class AspNetCoreMvcEndpointExtractor implements IEndpointExtractor {
4343
const methods = children.filter(child => child.kind === vscode.SymbolKind.Method);
4444
for (const method of methods) {
4545
const methodName = method.name.split('(')[0];
46-
const id = vscode.workspace.getWorkspaceFolder(document.uri)!.name + '$_$' + methodName;
46+
const id = currentClass.name + '$_$' + methodName;
4747
const range = convertRange(method.range);
4848
results.push(new EndpointInfo(
4949
id,

0 commit comments

Comments
 (0)