зеркало из https://github.com/dotnet/razor.git
Invalidate project engine when UseRoslynTokenizer changes
This commit is contained in:
Родитель
1e660568b6
Коммит
6702e25e53
|
@ -151,16 +151,17 @@ internal class ProjectState
|
|||
else
|
||||
{
|
||||
ProjectWorkspaceStateVersion = Version;
|
||||
}
|
||||
|
||||
if ((difference & ClearProjectWorkspaceStateVersionMask) != 0 &&
|
||||
CSharpLanguageVersion != older.CSharpLanguageVersion)
|
||||
// CSharpLanguageVersion and UseRoslynTokenizer are part of the ProjectWorkspaceState, but they affect the project engine
|
||||
// so we check for those specifically changing, and clear that.
|
||||
if (CSharpLanguageVersion != older.CSharpLanguageVersion ||
|
||||
ProjectWorkspaceState.UseRoslynTokenizer != older.ProjectWorkspaceState.UseRoslynTokenizer)
|
||||
{
|
||||
// C# language version changed. This impacts the ProjectEngine, reset it.
|
||||
_projectEngine = null;
|
||||
ConfigurationVersion = Version;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Internal set for testing.
|
||||
public ImmutableDictionary<string, DocumentState> Documents { get; internal set; }
|
||||
|
|
Загрузка…
Ссылка в новой задаче