Skip to content

Add a PatternMatcher API (similar to the one in Roslyn) for more advanced matching with features like NavigateTo.#2094

Merged
CyrusNajmabadi merged 4 commits into
masterfrom
patternMatcher
Feb 21, 2015
Merged

Add a PatternMatcher API (similar to the one in Roslyn) for more advanced matching with features like NavigateTo.#2094
CyrusNajmabadi merged 4 commits into
masterfrom
patternMatcher

Conversation

@CyrusNajmabadi

Copy link
Copy Markdown
Contributor

No description provided.

…nced matching with features like NavigateTo.
Comment thread src/compiler/types.ts Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment with the character - older crowds call this a "pound". Crazy, I know. 😉

@steveluc

Copy link
Copy Markdown
Contributor

Looks good. Do we still plan to add additional parameters to the API call, such as an optional max results? In addition to the max results, we may want flags that can turn on or off match kinds. For example, a client may only want non-prefix matches when the searchValue is over a threshold length.

@CyrusNajmabadi

Copy link
Copy Markdown
Contributor Author

@steveluc Hey Steve, #2084 tracks the work to limit the amount of data provided by NavigateTo.

Could you explain a bit more what you mean by "For example, a client may only want non-prefix matches when the searchValue is over a threshold length."

I'm not sure why you'd ever want to skip prefix-matches. Can you give an example?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When can candidate be undefined?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

candidate will also be falsy when it's the empty string

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Errr... I've never seen a loop shaped like this.

Conflicts:
	src/services/services.ts
CyrusNajmabadi added a commit that referenced this pull request Feb 21, 2015
Add a PatternMatcher API (similar to the one in Roslyn) for more advanced matching with features like NavigateTo.
@CyrusNajmabadi CyrusNajmabadi merged commit b3a74ae into master Feb 21, 2015
@CyrusNajmabadi CyrusNajmabadi deleted the patternMatcher branch February 21, 2015 22:56
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.

5 participants