streetsidesoftware / vscode-cspell-dict-extensions

VS Code Spelling Dictionary Extensions
MIT License
119 stars 41 forks source link

Brazilian Portuguese Config #886

Open oliveirarafa opened 6 months ago

oliveirarafa commented 6 months ago

Hi. I'm trying to config cspell in my project, but i'm having some problems to make if find the same problems that the vscode extension does. I used the extension to create a cspell.json and made it like bellow but when i run using the cli many false positive problems are found. With the vscode extension this does not happen.

cspell.json

{
    "version": "0.2",
    "language": "en,pt,pt_BR",
    "ignorePaths": [],
    "dictionaryDefinitions": [],
    "dictionaries": [],
    "words": [],
    "ignoreWords": [],
}
Jason3S commented 6 months ago

@oliveirarafa,

CSpell does not have access to the Portuguese dictionary stored in the extension.

You have to install it:

npm i @cspell/dict-pt-br
{
    "version": "0.2",
    "language": "en,pt,pt_BR",
    "import": ["@cspell/dict-pt-br"],  // <-- this line tells cspell to import from node_modules
    "ignorePaths": [],
    "dictionaryDefinitions": [],
    "dictionaries": [],
    "words": [],
    "ignoreWords": [],
}
oliveirarafa commented 6 months ago

@oliveirarafa,

CSpell does not have access to the Portuguese dictionary stored in the extension.

You have to install it:

npm i @cspell/dict-pt-br
{
    "version": "0.2",
    "language": "en,pt,pt_BR",
    "import": ["@cspell/dict-pt-br"],  // <-- this line tells cspell to import from node_modules
    "ignorePaths": [],
    "dictionaryDefinitions": [],
    "dictionaries": [],
    "words": [],
    "ignoreWords": [],
}

Thank you @Jason3S> It helped me, but I still get some different words from the cspell cli and vscode extension. Some words are marked as wrong by cspell but not on vscode using the extension.