Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Do not get definition info if not identifier #711

Merged
merged 1 commit into from
Jan 5, 2017

Conversation

ramya-rao-a
Copy link
Contributor

@ramya-rao-a ramya-rao-a commented Jan 5, 2017

The Go extension spawns a new process to get definition information each time the hover provider is triggered. This sometimes results in massive number of processes to spin up and cause perf issues.

When we know beforehand that the text under the cursor is not an identifier, then we can skip creating new processes to get definition information.

In this PR, we do this for the below cases:

  • Not a word
  • Is a keyword
  • Is a number
  • Is part of a string literal
  • Is part of a single line comment

@ramya-rao-a ramya-rao-a merged commit 148c744 into microsoft:master Jan 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants