in Backend/RiderPlugin/JetBrains.TextTemplating/JetBrains/TextTemplatingEngineHost.cs [98:110]
public Type ResolveDirectiveProcessor(string processorName) =>
throw new Exception("Directive Processor not found");
public string ResolvePath(string path)
{
if (path == null) throw new ArgumentNullException(nameof(path));
if (path == string.Empty) return Path.GetDirectoryName(TemplateFile);
if (Path.IsPathRooted(path)) return path;
string directoryName = Path.GetDirectoryName(TemplateFile);
string candidate = Path.Combine(directoryName, path);
if (Path.IsPathRooted(candidate)) return candidate;
throw new FileNotFoundException();
}