Skip to content

Correct Copybook scanning without extensions #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ChristianKernDev opened this issue Jan 24, 2025 · 0 comments
Open

Correct Copybook scanning without extensions #84

ChristianKernDev opened this issue Jan 24, 2025 · 0 comments

Comments

@ChristianKernDev
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant