Skip to content
This repository was archived by the owner on Dec 24, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/workspaceSymbols/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export function parseTags(
lr.close()
return
}
const tag = parseTagsLine(workspaceFolder, line, query)
const tag = parseTagsLine(workspaceFolder, tagFile, line, query)
if (tag) {
tags.push(tag)
}
Expand All @@ -144,7 +144,7 @@ export function parseTags(
})
})
}
function parseTagsLine(workspaceFolder: string, line: string, searchPattern: string): ITag | undefined {
function parseTagsLine(workspaceFolder: string, tagFile: string, line: string, searchPattern: string): ITag | undefined {
if (IsFileRegEx.test(line)) {
return
}
Expand All @@ -157,7 +157,7 @@ function parseTagsLine(workspaceFolder: string, line: string, searchPattern: str
}
let file = match.file
if (!path.isAbsolute(file)) {
file = path.resolve(workspaceFolder, '.vscode', file)
file = path.resolve(path.resolve(workspaceFolder, path.dirname(tagFile)), file)
}

const symbolKind = CTagKinMapping.get(match.type) || SymbolKind.Null
Expand Down