Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Unity specific spell check dictionaries #1570

Merged
merged 17 commits into from
Jun 23, 2020

Conversation

citizenmatt
Copy link
Member

@citizenmatt citizenmatt commented Mar 15, 2020

This PR adds a Unity specific dictionary + abbreviation list to Rider + ReSharper.

  • Adds an internal action to look at all referenced assemblies and extract all visible symbols, split into words and produce lists of unknown words + abbreviations. Abbreviations are any symbol that is all uppercase and an unknown word of 2 characters or more. The minimum length of abbreviations might need reviewing
  • The unity.dic file is added as a frontend dictionary for Rider, which can be enabled/disabled as required.
  • The same unity.dic and an empty unity.aff files are used as a backend dictionary for ReSharper, which can also be enabled/disabled as required. Note that the unity.aff file is empty. It lists the rules for suffixes/prefixes, and is required, but is allowed to be empty.
  • Confirm threading rules

@citizenmatt citizenmatt self-assigned this Mar 15, 2020
@citizenmatt citizenmatt added this to the Rider 2020.1 milestone Mar 15, 2020
@citizenmatt citizenmatt marked this pull request as ready for review March 16, 2020 16:40
myLogger = logger;
}

public void InitialiseSolutionSettings(ISettingsStorageMountPoint mountPoint)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's called on startup on the Main thread it may increase startup time (reading of reasources). It's better to queue on a background thread (see HunspellBackend.cs for example)

@citizenmatt citizenmatt changed the title Add Unity specific spell check dictionaries [202] Add Unity specific spell check dictionaries Mar 25, 2020
@citizenmatt citizenmatt added the paused Paused for various reasons label Mar 25, 2020
@citizenmatt citizenmatt changed the base branch from net201 to net202 June 18, 2020 15:18
They don't work properly with plugins - the checks are designed to work with zone definitions defined in source code, not consumed from references.
There is also a module consistency check to ensure that zones for namespaces in different projects are consistent. This assumes all modules are related, and doesn't work with multiple modules that have no relationship. I.e. it tries to make the Rider and ReSharper modules consistent, which can't work because one will require VS zones, and the other will require Rider/ReSharperHost zones.
It has more to do with naming that spellcheck
@citizenmatt citizenmatt removed the paused Paused for various reasons label Jun 21, 2020
@citizenmatt citizenmatt merged commit 0cd647b into net202 Jun 23, 2020
@citizenmatt citizenmatt deleted the feature/unity-spellcheck branch June 23, 2020 21:06
@citizenmatt citizenmatt changed the title [202] Add Unity specific spell check dictionaries Add Unity specific spell check dictionaries Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants