Skip to content

WI #2727 Improve insertText for variables located under OCCURS#2793

Merged
efr15 merged 4 commits into
developfrom
2727-improve-inserttext-for-variables-located-under-occurs
Jul 25, 2025
Merged

WI #2727 Improve insertText for variables located under OCCURS#2793
efr15 merged 4 commits into
developfrom
2727-improve-inserttext-for-variables-located-under-occurs

Conversation

@efr15

@efr15 efr15 commented Jul 21, 2025

Copy link
Copy Markdown
Contributor

Fixes #2727

One LSR completion test was targeting a variable in an OCCURS => adapt it

Subscript is added for every statement except SEARCH and SORT.

@efr15
efr15 requested a review from fm-117 July 21, 2025 15:26
@efr15 efr15 self-assigned this Jul 21, 2025
@efr15 efr15 linked an issue Jul 21, 2025 that may be closed by this pull request
Comment thread TypeCobol.LanguageServer/Processor/CompletionProcessor.cs
Comment thread TypeCobol.LanguageServer.Test/ProcessorTests/Completion/AfterIn/Occurs.txt Outdated
Comment thread TypeCobol.LanguageServer/Completion Factory/CompletionForInOrOf.cs
Comment thread TypeCobol.LanguageServer/Completion Factory/CompletionForInOrOf.cs
Comment thread TypeCobol.LanguageServer.Test/ProcessorTests/Completion/AfterSet/Occurs.txt Outdated
@fm-117

fm-117 commented Jul 22, 2025

Copy link
Copy Markdown
Contributor

My fear is that this PR won't help users much and it may even hinder them sometimes as we don't have robust logic to know whether to subscript or not.

@fm-117
fm-117 self-requested a review July 24, 2025 07:06
@efr15
efr15 merged commit 850e4dc into develop Jul 25, 2025
8 checks passed
@efr15
efr15 deleted the 2727-improve-inserttext-for-variables-located-under-occurs branch July 25, 2025 07:10
@fm-117 fm-117 mentioned this pull request Jul 25, 2025
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

Successfully merging this pull request may close these issues.

Improve insertText for variables located under OCCURS

2 participants