Skip to content

Don't offer module completions in non-module JS files #27004

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

Merged

Conversation

RyanCavanaugh
Copy link
Member

Fixes an issue reported offline - in a JS program, other files having a module indicator is not a strong enough signal that the current file can be arbitrarily converted into a module.

@minestarks
Copy link
Member

One consideration, if the project is a configured project (i.e. has tsconfig or jsconfig) then should we keep going and check the compiler options (even if this is a JS file)? My assumption is that the user has fine-grained enough control over what they want when they're using a config file.

@RyanCavanaugh RyanCavanaugh force-pushed the noJsNewModuleCompletions branch from a66f2cd to 95ba73e Compare September 10, 2018 18:25
@RyanCavanaugh RyanCavanaugh merged commit 5a26747 into microsoft:master Sep 12, 2018
@RyanCavanaugh RyanCavanaugh deleted the noJsNewModuleCompletions branch September 12, 2018 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants