georgewfraser / vscode-tree-sitter

Accurate syntax coloring for VSCode using tree-sitter
MIT License
175 stars 25 forks source link

Fixed an exception that crashed the extension due to invalid language. #9

Closed linus-skold closed 5 years ago

linus-skold commented 5 years ago

I fixed an exception that caused a crash when the extension tried to load an invalid language. It happened when having the output window open and attempting to activate the extension.

linus-skold commented 5 years ago

(seems like I accidentally formatted as well. My apologies for that.) The lines of interest is 133, 144, 208 or search for languageSpec to find the new addition