If a GO statement is not preceded by a newline, e.g. is first text in a query window, the autocomplete suggestions for a subsequent ALTER will exclude FUNCTION, PROC, PROCEDURE, VIEW, and TRIGGER, even though they should be included.
For example, this works as expected:
-- anything
GO
ALTER
But this does not:
GO
ALTER
And this does not work either:
select top 10 * from sys.tables GO
ALTER
The popup from both cases should be the same.
For example, this works as expected:
But this does not:
And this does not work either:
The popup from both cases should be the same.