Add text-based fastpaths into LS token matching (#41924)
Add text-based fastpaths into LS token matching (#41924)

* Add text-based fastpaths into LS token matching

* Update src/services/utilities.ts

Co-authored-by: Daniel Rosenwasser <5cfd0e6ebed95ee3fd93d8ca4667d489fe54459b@users.noreply.github.com>

* Update src/services/utilities.ts

Co-authored-by: Daniel Rosenwasser <5cfd0e6ebed95ee3fd93d8ca4667d489fe54459b@users.noreply.github.com>

* Update src/services/utilities.ts

Co-authored-by: Daniel Rosenwasser <5cfd0e6ebed95ee3fd93d8ca4667d489fe54459b@users.noreply.github.com>

* Limit search a bit

* Secretly, this was allowed to be `undefined` and was in fact used as such

Co-authored-by: Daniel Rosenwasser <5cfd0e6ebed95ee3fd93d8ca4667d489fe54459b@users.noreply.github.com>
kitsonk/TypeScript,RyanCavanaugh/TypeScript,kitsonk/TypeScript,SaschaNaz/TypeScript,Microsoft/TypeScript,kpreisser/TypeScript,microsoft/TypeScript,SaschaNaz/TypeScript,SaschaNaz/TypeScript,weswigham/TypeScript,RyanCavanaugh/TypeScript,microsoft/TypeScript,weswigham/TypeScript,Microsoft/TypeScript,RyanCavanaugh/TypeScript,kpreisser/TypeScript,microsoft/TypeScript,Microsoft/TypeScript,weswigham/TypeScript,kitsonk/TypeScript,kpreisser/TypeScript,SaschaNaz/TypeScript