Skip to content

Commit b32b8f4

Browse files
committed
fix: Update error message to use basename for file name in OpenFileInPackage
1 parent ac88f68 commit b32b8f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lana/src/display/OpenFileInPackage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (c) 2020 Certinia Inc. All rights reserved.
33
*/
4-
import { sep } from 'path';
4+
import { basename, sep } from 'path';
55
import {
66
Position,
77
Selection,
@@ -63,7 +63,7 @@ export class OpenFileInPackage {
6363

6464
if (!symbolLocation.isExactMatch) {
6565
context.display.showErrorMessage(
66-
`Symbol '${symbolLocation.missingSymbol}' could not be found in file '${fileName}'`,
66+
`Symbol '${symbolLocation.missingSymbol}' could not be found in file '${basename(path)}'`,
6767
);
6868
}
6969
const zeroIndexedLineNumber = symbolLocation.line - 1;

0 commit comments

Comments
 (0)