Open Pomax opened 2 years ago
@Pomax ,
There are a few things you can try:
typescript
dictionaryyou just need tests to make sure that at critical points in your code paths,
`data instanceof ThatModelTheyShouldBe` is still true.
The line below is a comment and will not show up in the rendered document:
<!--- cspell:dictionaries typescript -->
instanceof
you just need tests to make sure that at critical points in your code paths,
`data instanceof ThatModelTheyShouldBe` is still true.
<!--- cspell:ignore instanceof -->
Cheers. I was hoping for something that didn't require "per project"/"per file" exceptions though, since I have a lot of projects to which this would apply.
You have a few options:
typescript
as a dictionary "cSpell.customDictionaries": {
"typescript": true
},
typescript as a dictionary only for
markdown` "cSpell.languageSettings": [
{
"languageId": "markdown",
"dictionaries": ["typescript"]
}
],
If I'm writing markdown documentation and have something like this:
then that
instanceof
gets highlighted as a potential problem case. However, in JS (but not in every language, and certainly not in plain English) this is a known keyword, so it feels like there's something missing, in order to tell Code Spell Checker that this is not to be added to the dictionary as a proper spelling, but to accept it inside code formatting (inline or not) by telling it which language(s) it is going to run across in my documentation.