You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: Expose original source text for TSqlFragment (Debugger & API usability) #203
Working with Microsoft.SqlServer.TransactSql.ScriptDom is unnecessarily hard in practice,
especially during debugging.
TSqlFragment objects do not expose the original source text they represent.
Instead, consumers must manually reconstruct the SQL text via:
FirstTokenIndex / LastTokenIndex
ScriptTokenStream
or StartOffset / FragmentLength
This makes debugging extremely cumbersome:
in Visual Studio, inspecting a fragment does not show the SQL code,
only a large object graph with token indices.
This significantly affects developer productivity and discoverability of the AST.
Current workaround (non-trivial)
Every consumer needs to implement helper code such as:
Activity