rokucommunity / rokucommunity/vscode-brightscript-language
Enum formating issue with names matching parameter types
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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