1 write to _currentVersionNumber
Microsoft.VisualStudio.LanguageServices (1)
EditorConfigSettings\Common\SettingsSnapshotFactoryBase.cs (1)
35
internal void NotifyOfUpdate() => Interlocked.Increment(ref
_currentVersionNumber
);
7 references to _currentVersionNumber
Microsoft.VisualStudio.LanguageServices (7)
EditorConfigSettings\Common\SettingsSnapshotFactoryBase.cs (7)
31
public override int CurrentVersionNumber =>
_currentVersionNumber
;
41
if (versionNumber ==
_currentVersionNumber
)
43
if (_lastSnapshotVersionNumber ==
_currentVersionNumber
)
50
var snapshot = CreateSnapshot(data,
_currentVersionNumber
);
53
_lastSnapshotVersionNumber =
_currentVersionNumber
;
58
else if (versionNumber <
_currentVersionNumber
)
66
throw new InvalidOperationException($"Invalid GetSnapshot request. Requested version: {versionNumber}. Current version: {
_currentVersionNumber
}");