Skip to content

Latest commit

 

History

History
74 lines (49 loc) · 2.02 KB

CONTRIBUTING.md

File metadata and controls

74 lines (49 loc) · 2.02 KB

Contributing

Contributions are very welcome.

How to create a new extension

Please fork this repository to add new dictionaries.

Using Yeoman script

The Yeoman script can help you create the dictionary template files seen in most of dictionary directories.

Install Yeoman

Install Yeoman and then link the generator.

npm install -g yo
cd generator-cspell-dicts-extensions
npm link
cd ..

Running the generator.

In the vscode-cspell-dict-extensions repository root.

yo cspell-dict-extensions <name>
Example Answers for Swedish

Swedish Generation Example

Yeoman will ask you a series of questions:

Field Description
name this is the dictionary. i.e. swedish, ruby, or rust
friendly name this is the friendly name, like Swedish
display name this is the name shown on the VS Code Extensions page.
description short description of the extension.
Source Dictionary This is the NPM install name of the source dictionary
Add Enable / Disable Commands This is used for adding helper commands for human language locals like fr for French or fr,fr_CA for Canadian French. This option is not necessary for word lists like companies or programming languages.
Base Name For Commands This is added as a suffix onto the command names.
Language Local This is the two letter language code supported by the dictionary included in the Source Dictionary step.
Target Directory Where to create the extension
NPM Package Name name added to the package.json

After all the information is entered, the extension should be generated.

Please fix any errors and make sure the following two commands run:

cd extensions/<name>
npm install
npm run build

Please update README.md, package.json and LICENSE files as necessary.

Testing Dictionary Extensions

Open VS Code

code extensions/<name>

Run

Within VS Code Debug -> Start Debugging with the Launch Extension configuration.