Skip to content

LSP: add lsp hints for better copybook handling #488

@GitMensch

Description

@GitMensch

The LSP currently only works very partially if there is a copybook used.
Examples:

copy1 -> part of WORKING-STORAGE, uses constant-names
copy2 -> constant names used in copy1
copy3 -> constant names used in copy3
copy4 -> part of PROCEDURE DIVISION
copy5 -> sections used in copy4

There was an old discussion on "the other cobol extension" before it dropped GnuCOBOL, I think we should support its syntax and add something on top. The following would be coded in copy1

*> @source-dependency copy2.cpy

while copy2 may have something like

*> @source-dependency common/copy3.lib

and so on.

The LSP would parse for those and try to resolve them if it is in "copybook mode" (= not for copybooks parsed from within a program)

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