Skip to content

Commit

Permalink
fix: Add support for vscode scminput files. (#2092)
Browse files Browse the repository at this point in the history
Related to [SCM: Support input box spell checking · Issue #35571 · microsoft/vscode](microsoft/vscode#35571)
  • Loading branch information
Jason3S committed Jul 18, 2022
1 parent d2931f2 commit a14e732
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions cspell-words.txt
Expand Up @@ -66,6 +66,7 @@ readonly
restructuredtext
rfdc
rmwc
scminput
scrollbar
shortname
shrinkwrap
Expand Down
4 changes: 2 additions & 2 deletions docs/_includes/generated-docs/configuration.md
Expand Up @@ -578,7 +578,7 @@ Description
- `vscode-userdata` - Needed to spell check `.code-snippets`

Default
: [ _`"file"`_, _`"gist"`_, _`"sftp"`_, _`"untitled"`_, _`"vscode-notebook-cell"`_, _`"vscode-userdata"`_ ]
: [ _`"file"`_, _`"gist"`_, _`"sftp"`_, _`"untitled"`_, _`"vscode"`_, _`"vscode-notebook-cell"`_, _`"vscode-userdata"`_ ]

---

Expand Down Expand Up @@ -1396,6 +1396,6 @@ Description
: Specify a list of file types to spell check. It is better to use `#cSpell.enableFiletypes#` to Enable / Disable checking files types.

Default
: [ _`"asciidoc"`_, _`"c"`_, _`"cpp"`_, _`"csharp"`_, _`"css"`_, _`"elixir"`_, _`"git-commit"`_, _`"go"`_, _`"graphql"`_, _`"handlebars"`_, _`"haskell"`_, _`"html"`_, _`"jade"`_, _`"java"`_, _`"javascript"`_, _`"javascriptreact"`_, _`"json"`_, _`"jsonc"`_, _`"jupyter"`_, _`"latex"`_, _`"less"`_, _`"markdown"`_, _`"php"`_, _`"plaintext"`_, _`"python"`_, _`"pug"`_, _`"restructuredtext"`_, _`"rust"`_, _`"scala"`_, _`"scss"`_, _`"swift"`_, _`"text"`_, _`"typescript"`_, _`"typescriptreact"`_, _`"vue"`_, _`"yaml"`_, _`"yml"`_ ]
: [ _`"asciidoc"`_, _`"c"`_, _`"cpp"`_, _`"csharp"`_, _`"css"`_, _`"elixir"`_, _`"git-commit"`_, _`"go"`_, _`"graphql"`_, _`"handlebars"`_, _`"haskell"`_, _`"html"`_, _`"jade"`_, _`"java"`_, _`"javascript"`_, _`"javascriptreact"`_, _`"json"`_, _`"jsonc"`_, _`"jupyter"`_, _`"latex"`_, _`"less"`_, _`"markdown"`_, _`"php"`_, _`"plaintext"`_, _`"python"`_, _`"pug"`_, _`"restructuredtext"`_, _`"rust"`_, _`"scala"`_, _`"scminput"`_, _`"scss"`_, _`"swift"`_, _`"text"`_, _`"typescript"`_, _`"typescriptreact"`_, _`"vue"`_, _`"yaml"`_, _`"yml"`_ ]

---
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -1122,6 +1122,7 @@
"gist",
"sftp",
"untitled",
"vscode",
"vscode-notebook-cell",
"vscode-userdata"
],
Expand Down Expand Up @@ -2004,6 +2005,7 @@
"restructuredtext",
"rust",
"scala",
"scminput",
"scss",
"swift",
"text",
Expand Down
2 changes: 2 additions & 0 deletions packages/_server/spell-checker-config.schema.json
Expand Up @@ -745,6 +745,7 @@
"gist",
"sftp",
"untitled",
"vscode",
"vscode-notebook-cell",
"vscode-userdata"
],
Expand Down Expand Up @@ -1627,6 +1628,7 @@
"restructuredtext",
"rust",
"scala",
"scminput",
"scss",
"swift",
"text",
Expand Down
3 changes: 2 additions & 1 deletion packages/_server/src/config/cspellConfig.ts
Expand Up @@ -52,7 +52,7 @@ export interface SpellCheckerSettings extends SpellCheckerShouldCheckDocSettings
* - `vscode-notebook-cell` - Used for validating segments of a Notebook.
* - `vscode-userdata` - Needed to spell check `.code-snippets`
* @scope window
* @default ["file", "gist", "sftp", "untitled", "vscode-notebook-cell", "vscode-userdata"]
* @default ["file", "gist", "sftp", "untitled", "vscode", "vscode-notebook-cell", "vscode-userdata"]
*/
allowedSchemas?: string[];

Expand Down Expand Up @@ -618,6 +618,7 @@ interface CSpellSettingsPackageProperties extends CSpellSettings {
* "restructuredtext",
* "rust",
* "scala",
* "scminput",
* "scss",
* "swift",
* "text",
Expand Down

0 comments on commit a14e732

Please sign in to comment.