Skip to content

Commit 6702198

Browse files
committed
strip fn: prefix from function name for hover provider
1 parent f929432 commit 6702198

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/xsltHoverProvider.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ export class XSLTHoverProvider implements HoverProvider {
1616

1717
provideHover(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<Hover> {
1818
const line = document.lineAt(position.line);
19-
const fnName = this.getFunctionName(line.text, position.character);
19+
let fnName = this.getFunctionName(line.text, position.character);
2020

2121
if (fnName) {
22+
fnName = fnName.startsWith('fn:')? fnName.substring(3) : fnName;
2223
const trimmedFnName = fnName.trimRight();
2324
const matchingData = this.functionData.find((item) => {
2425
return item.name === trimmedFnName;

0 commit comments

Comments
 (0)