Skip to content

Commit 3db5fae

Browse files
committed
Fixed the issue of adding on extension to path
1 parent b8c6c3a commit 3db5fae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/util.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ export function getFilePaths(text: string, document: TextDocument) {
2626
}
2727
}
2828
for (let extension of config.extensions) {
29-
showPath = showPath + extension;
30-
let filePath = workspaceFolder + showPath;
29+
let filePath = workspaceFolder + showPath + extension;
3130

3231
if (fs.existsSync(filePath)) {
3332
result.push({

0 commit comments

Comments
 (0)