Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
fix: handle no textEditor path
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Apr 5, 2021
1 parent 46c560b commit 9a7db62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export function provideLinter() {
scope: 'file',
lintsOnChange: true,
lint: async (textEditor: TextEditor) => {
if (config.ignoreTypings && textEditor.getPath().toLowerCase().endsWith('.d.ts')) {
if (config.ignoreTypings && (textEditor.getPath() ?? "").toLowerCase().endsWith('.d.ts')) {
return [];
}

Expand Down

0 comments on commit 9a7db62

Please sign in to comment.