mechatroner / vscode_rainbow_csv

🌈Rainbow CSV - VS Code extension: Highlight CSV and TSV files in different rainbow colors to make them more readable
MIT License
426 stars 51 forks source link

Fix null property access error #132

Closed lramos15 closed 1 year ago

lramos15 commented 1 year ago

I've been seeing

TypeError: Cannot read properties of null (reading 'uri')
extensionHostProcess.js:102
stack trace: TypeError: Cannot read properties of null (reading 'uri')
    at handle_doc_open (/Users/lramos15/.vscode-insiders/extensions/mechatroner.rainbow-csv-3.5.0/extension.js:1595:20)

in my console a bunch lately. This points to the following line, so I've added a guard above to not access the URI of a non existing document