Skip to content

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

Merged
RyanCavanaugh merged 1 commit into
microsoft:masterfrom
RyanCavanaugh:noJsNewModuleCompletions
Sep 12, 2018
Merged

Don't offer module completions in non-module JS files#27004
RyanCavanaugh merged 1 commit into
microsoft:masterfrom
RyanCavanaugh:noJsNewModuleCompletions

Conversation

@RyanCavanaugh
Copy link
Copy Markdown
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
Copy Markdown
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
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
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.

2 participants