Skip to content

Commit

Permalink
feat!: Remove allowCompoundWords: true (#1039)
Browse files Browse the repository at this point in the history
* feat!: Remove `allowCompoundWords: true`

BREAKING CHANGE

Do not set `allowCompoundWords: true` for
- cpp, c
- csharp
- go
- python

To add it back, use:

```json
    "languageSettings": [
        {
            "languageId": "c,cpp,csharp,go,python",
            "allowCompoundWords": true
        }
    ]
```

* Update python.txt
  • Loading branch information
Jason3S authored Apr 23, 2022
1 parent cc0b83b commit d0081ac
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 51 deletions.
1 change: 0 additions & 1 deletion dictionaries/cpp/cspell-ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
// VSCode languageId. i.e. typescript, java, go, cpp, javascript, markdown, latex
// * will match against any file type.
"languageId": "c,cpp",
"allowCompoundWords": true,
// Language local. i.e. en-US, de-AT, or ru. * will match all locals.
// Multiple locals can be specified like: "en, en-US" to match both English and English US.
"locale": "*",
Expand Down
27 changes: 5 additions & 22 deletions dictionaries/cpp/cspell.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,9 @@
{
"files": [
"**/*.{md,txt}"
],
"ignorePaths": [
"/cpp.txt"
],
"dictionaries": [
"cpp"
],
"import": [
"./cspell-ext.json"
],
"ignoreWords": [
"aaaabbbb",
"ffffeeee",
"xffff",
"yyyy",
"yyyymm",
"yyyymmdd",
"yyyymmddhhmmss",
"yyyymmddhhmmssz"
],
"files": ["**/*.{md,txt}"],
"ignorePaths": ["/cpp.txt"],
"dictionaries": ["cpp"],
"import": ["./cspell-ext.json"],
"ignoreWords": ["aaaabbbb", "ffffeeee", "xffff", "yyyy", "yyyymm", "yyyymmdd", "yyyymmddhhmmss", "yyyymmddhhmmssz"],
"overrides": [
{
"filename": "cpp.txt",
Expand Down
1 change: 0 additions & 1 deletion dictionaries/csharp/cspell-ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"description": "These are the language settings for C#",
"includeRegExpList": [],
"ignoreRegExpList": [],
"allowCompoundWords": true,
"patterns": [
{
"name": "string",
Expand Down
13 changes: 3 additions & 10 deletions dictionaries/csharp/cspell.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
{
"files": [
"**/*.{md,txt}",
"**/*.cs"
],
"dictionaries": [
"csharp"
],
"import": [
"./cspell-ext.json"
]
"files": ["**/*.{md,txt}", "**/*.cs"],
"dictionaries": ["csharp"],
"import": ["./cspell-ext.json"]
}
2 changes: 0 additions & 2 deletions dictionaries/golang/cspell-ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
// Language local. i.e. en-US, de-AT, or ru. * will match all locals.
// Multiple locals can be specified like: "en, en-US" to match both English and English US.
"locale": "*",
// It is common in Go to glue words together.
"allowCompoundWords": true,
// By default the whole text of a file is included for spell checking
// Adding patterns to the "includeRegExpList" to only include matching patterns
"includeRegExpList": [],
Expand Down
18 changes: 4 additions & 14 deletions dictionaries/golang/cspell.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
{
"files": [
"**/*.{md,txt}"
],
"dictionaries": [
"golang"
],
"import": [
"./cspell-ext.json"
],
"ignoreWords": [
"Alek",
"Alexey",
"Palazhchenko"
]
"files": ["**/*.{md,txt}"],
"dictionaries": ["golang"],
"import": ["./cspell-ext.json"],
"ignoreWords": ["Alek", "Alexey", "Palazhchenko"]
}
1 change: 0 additions & 1 deletion dictionaries/python/cspell-ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
// Matching Language
"languageId": "python",
// Apply settings
"allowCompoundWords": true,
"dictionaries": ["python"],
"ignoreRegExpList": ["ignore_string_literal_prefix"],
"patterns": [
Expand Down
7 changes: 7 additions & 0 deletions dictionaries/python/python.txt
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ fcntl
fdopen
file_util
filecmp
filedata
filedialog
FileExistsError
fileinput
Expand Down Expand Up @@ -370,6 +371,8 @@ getattr
getctime
getcwd
getenv
getheader
getheaders
getopt
getpass
gettext
Expand Down Expand Up @@ -453,6 +456,7 @@ islower
ismount
isnan
isnumeric
isoformat
isort
isprintable
isqrt
Expand Down Expand Up @@ -525,6 +529,7 @@ mimetypes
min
minidom
mkdir
mkstemp
mmap
mock
model
Expand Down Expand Up @@ -560,6 +565,7 @@ numpy
object
oct
open
openapi
operator
optparse
or
Expand Down Expand Up @@ -766,6 +772,7 @@ textpad
textwrap
threading
threading_helper
threadpool
tigetnum
time
timeit
Expand Down

0 comments on commit d0081ac

Please sign in to comment.