Skip to content

Verbose "extract local constant" #19839

@mjbvz

Description

@mjbvz

From @chrmarti on November 7, 2017 23:40

  • VSCode Version: Code - Insiders 1.18.0-insider (098bb77, 2017-11-04T04:35:35.044Z)
  • OS Version: Darwin x64 16.7.0
  • Extensions: Many
  1. In a function, extracting createReporter():
	const subscriptions = context.subscriptions;
	subscriptions.push(createReporter());
	subscriptions.push(createStatusBarItem(azureLogin.api));
  1. Results in:
	const subscriptions = context.subscriptions;
	const reporter: { dispose(): any; } = createReporter();

	subscriptions.push(reporter);
	subscriptions.push(createStatusBarItem(azureLogin.api));
  1. Unexpected: There is an extra line and a type declaration.

Copied from original issue: microsoft/vscode#37790

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions