Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add isKnownTypesPackageName option #909

Merged
merged 1 commit into from
Jan 31, 2021

Conversation

chenjigeng
Copy link
Contributor

This PR is to fix this problem.
When the host. isKnownTypesPackageName is undefined, languageService.getCodeFixesAtPosition will throw a error

@@ -65,7 +68,8 @@ export function createHosts(options: CreateHostsOptions) {
);
}
},
useCaseSensitiveFileNames: () => true,
isKnownTypesPackageName: isKnownTypesPackageName || returnTrue,
Copy link
Owner

Choose a reason for hiding this comment

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

I seem to not be able to push commits to this PR, so I'm going to merge this as-is, but afterwards I'm going to remove this || returnTrue since I'd rather have undefined be the default as is done in the compiler api.

@dsherret dsherret merged commit 398d946 into dsherret:latest Jan 31, 2021
@dsherret
Copy link
Owner

Thanks @chenjigeng!

dsherret added a commit that referenced this pull request Jan 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants