Skip to content

Correct Copybook scanning without extensions #84

@ChristianKernDev

Description

@ChristianKernDev

In my setup we have the file extension ".txt" on all COBOL files including copies. So i setup the extension in VS-Code the following way:

    "files.associations": {
        "**/*.SRCE.COBOL.*/*.txt": "cobol",
        "**/*.SRCE.COPY.*/*.txt": "cobol",
    },
    "cobol-lsp.cpy-manager.paths-local": [
        "Code/P009.SRCE.COPY.R004"
    ],    
    "cobol-lsp.cpy-manager.copybook-extensions": [
        ".txt"
    ],

The folder "Code/P009.SRCE.COPY.R004" contains all the copies, while all the COBOL code is in "Code/P009.SRCE.COBOL.R004".

But this leads to the behaviour, that i can't navigate to Copybooks from my COBOL files with a ".txt" extension. Probably all my files are detected as copies now.

One example:
File: "Code/P009.SRCE.COBOL.R004/P04T0000.txt"
Image
The Copies are not clickable and the plugin does not even register, that those should be copies.

Once i rename the file, it let's me navigate and even shows, that the copybook contains an error:
Image

Is there a fix or workaround available for this issue, without me needing to rename all files?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions