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

Commit 9a7db62

Browse files
committed
fix: handle no textEditor path
1 parent 46c560b commit 9a7db62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export function provideLinter() {
138138
scope: 'file',
139139
lintsOnChange: true,
140140
lint: async (textEditor: TextEditor) => {
141-
if (config.ignoreTypings && textEditor.getPath().toLowerCase().endsWith('.d.ts')) {
141+
if (config.ignoreTypings && (textEditor.getPath() ?? "").toLowerCase().endsWith('.d.ts')) {
142142
return [];
143143
}
144144

0 commit comments

Comments
 (0)