rokucommunity / rokucommunity/vscode-brightscript-language

Enum formating issue with names matching parameter types

Open
#396 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
132
Forks
60
Avg merge
13h 53m
Merged PRs (30d)
20

Description

Befor format:

enum ro
	Array = "roArray"
	AssociativeArray = "roAssociativeArray"
	DeviceInfoEvent = "roDeviceInfoEvent"
	Double = "roDouble"
	Float = "roFloat"
	Function = "roFunction"
	Int = "roInt"
	Integer = "roInteger"
	IntrinsicDouble = "roIntrinsicDouble"
	Invalid = "roInvalid"
	MessagePort = "roMessagePort"
	SGNode = "roSGNode"
	SGNodeEvent = "roSGNodeEvent"
	String = "roString"
	UrlEvent = "roUrlEvent"
	UrlTransfer = "roUrlTransfer"
end enum

After format:

enum ro
	Array = "roArray"
	AssociativeArray = "roAssociativeArray"
	DeviceInfoEvent = "roDeviceInfoEvent"
	double = "roDouble"
	float = "roFloat"
	function = "roFunction"
		Int = "roInt"
		integer = "roInteger"
		IntrinsicDouble = "roIntrinsicDouble"
		Invalid = "roInvalid"
		MessagePort = "roMessagePort"
		SGNode = "roSGNode"
		SGNodeEvent = "roSGNodeEvent"
		string = "roString"
		UrlEvent = "roUrlEvent"
		UrlTransfer = "roUrlTransfer"
	end enum

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the formatter output using the enum example in the issue, then trace the formatting implementation in the TypeScript VS Code extension. Confirm that enum members named like parameter types retain their original casing and indentation, and add or update coverage if the formatter has existing tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.