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

fix(typescript-estree): add support for extra file extensions #1833

Merged
merged 3 commits into from Apr 1, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -314,6 +314,10 @@ function createWatchProgram(
);
oldOnDirectoryStructureHostCreate(host);
};
// This works only on 3.9
(watchCompilerHost as any).extraFileExtensions = extra.extraFileExtensions.map(
sheetalkamat marked this conversation as resolved.
Show resolved Hide resolved
extension => ({ extension, scriptKind: ts.ScriptKind.Deferred }),
);
watchCompilerHost.trace = log;

// Since we don't want to asynchronously update program we want to disable timeout methods
Expand Down