Check the text buffer before parsing.

The tokenizer service was attempting to parse non-PowerShell files.
Fixed that. Started the foundation for Go To Definition.