IBM / zopeneditor-about

IBM Z Open Editor: File issues here!
https://ibm.github.io/zopeneditor-about
Apache License 2.0
50 stars 20 forks source link

COBOL - Option to disable renumber function #227

Open FALLAI-Denis opened 2 years ago

FALLAI-Denis commented 2 years ago

Description of the enhancement requested

Z Open Editor allows sequences to be renumbered on COBOL sources, indicating whether the sequence is in column 1 and/or column 73. We use these areas to place information used by our tools. We don't want users to be able to override this information by initiating a renumber.

We propose to add a 4th value to the zopeneditor.cobol.sequenceNumbers parameter: "none", to disable the renumbering function.

"zopeneditor.cobol.sequenceNumbers": {
    "scope": "window",
    "enum": [
        "column-1",
        "column-73",
        "column-1-and-73",
                "none"                              
    ],
    "enumDescriptions": [
        "%zopeneditor.cobol.sequenceNumbers.column1%",
        "%zopeneditor.cobol.sequenceNumbers.column73%",
        "%zopeneditor.cobol.sequenceNumbers.column1and73%"
        "%zopeneditor.cobol.sequenceNumbers.norenumber%"
    ],
    "default": "column-1",
    "description": "%zopeneditor.cobol.sequenceNumbers%"
},
  "zopeneditor.cobol.sequenceNumbers": "Choose which columns will have sequence numbers inserted and removed from a file by using the Renumber and Unnumber functions in the COBOL editor.",
  "zopeneditor.cobol.sequenceNumbers.column1": "Numbering starts at column 1",
  "zopeneditor.cobol.sequenceNumbers.column73": "Numbering starts at column 73",
  "zopeneditor.cobol.sequenceNumbers.column1and73": "Numbering starts at column 1 and 73",
  "zopeneditor.cobol.sequenceNumbers.norenumber": "Do not renumber",
davidkcoblentz commented 2 years ago

Agreed! Great Idea!