Skip to content

Allow getting import completion details with misspelled name#23624

Merged
1 commit merged into
masterfrom
completionsImport_details_withMisspelledName
Apr 23, 2018
Merged

Allow getting import completion details with misspelled name#23624
1 commit merged into
masterfrom
completionsImport_details_withMisspelledName

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Apr 23, 2018

Fixes #23087

Comment thread src/harness/fourslash.ts
public applyCodeActionFromCompletion(markerName: string, options: FourSlashInterface.VerifyCompletionActionOptions) {
this.goToMarker(markerName);

const actualCompletion = this.getCompletionListAtCaret({ ...ts.defaultPreferences, includeCompletionsForModuleExports: true }).entries.find(e =>
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Had to remove this check because we don't provide the actual completion; in all the tests that call applyCodeActionFromCompletion we seem to be testing hasAction via completionListContains before this anyway.

@ghost ghost requested a review from mhegazy April 23, 2018 17:50
@ghost ghost merged commit 645258c into master Apr 23, 2018
@ghost ghost deleted the completionsImport_details_withMisspelledName branch April 23, 2018 18:24
@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
This pull request was closed.
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.

1 participant