When a Razor file is opened, Roslyn at first is unable to find the Razor document, i.e. context.Document is null. However, the problem eventually resolves itself after a period of time. We should determine the core issue and implement a long-term solution.