Skip to content

Commit

Permalink
feat(logger): make file path clickable in terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Pongelli committed Oct 12, 2023
1 parent 5635612 commit 186ec7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite-plugin-checker/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export function diagnosticToTerminalLog(

const levelLabel = labelMap[d.level ?? DiagnosticLevel.Error]
const fileLabel = boldBlack.bgCyanBright(' FILE ') + ' '
const filePath = "file://" + d.id
const filePath = 'file://' + d.id
const position = d.loc
? chalk.yellow(d.loc.start.line) + ':' + chalk.yellow(d.loc.start.column)
: ''
Expand Down

0 comments on commit 186ec7b

Please sign in to comment.