"Edit Query Text" query text doesn't match the actual query in 2017 RTM
In 2016 & prior versions, when looking at a stored procedure's execution plan, if you right-click on the plan and click Edit Query Text, you get the full text of a stored procedure. In 2017, it's clipping out parts of a stored procedure, and formatting the query differently.
Closing as “By Design”.
Gabriele D'Onufrio commented
in Edit Query Text you get the query truncated if it's too long