Creating a FileStream over a directory doesn't work very well

The root cause here is that we accidentally made a breaking change when
we removed the spell checking logic. We changed the
CONTEXT_DICTIONARY_FILE constant from "context.tlx" to string.Empty.
That means in the WriteSpellingContextDictionary() and
ReadSpellingContextDictionary() methods, we were resolving a dictionary
path as Path.Combine(SpellingContextDirectory, string.Empty); and then
tried to create a FileStream on a directory. The fix here is simple,
just change the dictionary filename back to "context.tlx".
This commit is contained in:
Will Duff 2015-12-21 22:40:22 -08:00
parent 5f0f110df6
commit dcc5d6bbfb
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ namespace OpenLiveWriter.PostEditor
//ToDo: OLW Spell Checker
// NOTE: hardcode to sentry spelling engine -- need to unroll this if we switch engines
private static readonly string CONTEXT_DICTIONARY_FILE = string.Empty; // SentrySpellingChecker.ContextDictionaryFileName ;
private static readonly string CONTEXT_DICTIONARY_FILE = "context.tlx";
private DirectoryInfo _storageDirectory;
}