[DaemonStage(StagesAfter = new[] { typeof(LanguageSpecificDaemonStage) })] public class RazorFileDaeMonStage : DaemonStageBase<IRazorFile> { protected override IDaemonStageProcess CreateDaemonProcess(IDaemonProcess process, DaemonProcessKind processKind, IRazorFile file, IContextBoundSettingsStore settingsStore) { return new Process(process, file, settingsStore); }
... ...
}
Oh, there was a typo in GetPsiFiles function. now I can capture RazorFile.
But another issue is:
I want to get string: "Use this area to provide additional information." which defined in *.cshtml.(please see the snapshot in below)
But I cannot get HTMLTOKEN whose nodetype is TEXT.
public override void ProcessBeforeInterior(ITreeNode element) { switch (element) { case IHtmlToken htmlToken: if (htmlToken.NodeType == LanguageManager.Instance.GetService<RazorTokenNodeTypes, RazorLanguage>().TEXT) { ... ... } break; } ... ... }