Continuing the work on supporting LSP diagnostics and completions inside complicated multi-line handlers inside templates.