Skip to content

Commit

Permalink
Case insensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
PeyTy committed Jan 12, 2025
1 parent 78db533 commit eb0344a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions extension/hexa-linter.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,14 @@ class HexaLinter {

if (info == null) {
const fileName = path.resolve(msg.fileName)
const fileNameCase = fileName.toLowerCase()

const editor = window.visibleTextEditors.filter(
editor => path.resolve(editor.document.uri.fsPath) === fileName
editor => path.resolve(editor.document.uri.fsPath).toLowerCase() === fileNameCase
)[0]

const document = editor ? editor.document : workspace.textDocuments.filter(
document => path.resolve(document.fileName) === fileName
document => path.resolve(document.fileName).toLowerCase() === fileNameCase
)[0]

if (editor == null && document == null) {
Expand Down

0 comments on commit eb0344a

Please sign in to comment.