Skip to content
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

sticky scroll shouldn't show comments #437

Open
4 tasks
alexbodn opened this issue Sep 2, 2024 · 3 comments
Open
4 tasks

sticky scroll shouldn't show comments #437

alexbodn opened this issue Sep 2, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@alexbodn
Copy link

alexbodn commented Sep 2, 2024

Development environment used

  • Z Open Editor version:
  • Editor Platform
    • [* ] Visual Studio Code
    • Red Hat CodeReady Workspaces
    • Eclipse Che
    • Standalone Theia
  • Editor Platform Version:
  • Operating System (on which VS Code runs such as Windows 10 2004, otherwise name and version of platform such as OpenShift v4.3): debian 12 bookworm
  • Java Version (when using VS Code or Theia, execute java -version and paste the details here): openjdk 17
  • Related to RSE API?
    • RSE API Plugin version:
    • Zowe CLI version: 7.29
    • Node.js version: 18 lts
  • Logs attached (see here how to get them): yes/no

Problem Description

Detailed steps for reproducing the problem:

  1. First step

Observed behavior

  • while the sticky scroll is enabled, and the sticky part contains a comment,
  • that comment takes precious space of the document hierarchic location indication.
  • it happens at least with a comment on the first line in the editor.

Expected behavior

  • i think only the current division / section / paragraph, as part of the structure of the program
  • should show in the prime location of the top of the editor.

a big thank for the editor already,
alex

@alexbodn
Copy link
Author

alexbodn commented Sep 2, 2024

while i'm firm about the need of space,
after removing the comment on the first line,
the sticky behaviour was quite messy.

i'll attach a cobol file that may be tested with or without
the comment on it's first line.

      *-----------------------
       IDENTIFICATION DIVISION.
      *-----------------------
       PROGRAM-ID.    SRCHSER.
       AUTHOR.        Otto B. Boolean.
      *--------------------
       ENVIRONMENT DIVISION.
      *--------------------
       INPUT-OUTPUT SECTION.
       FILE-CONTROL.
           SELECT ACCT-REC   ASSIGN TO ACCTREC.
      *-------------
       DATA DIVISION.
      *-------------
       FILE SECTION.
       FD  ACCT-REC RECORDING MODE F.
       01  ACCT-FIELDS        PIC X(170).
      *
       WORKING-STORAGE SECTION.
       01  FLAGS.
           05  LASTREC            PIC X VALUE SPACE.
               88  END-OF-FILE          VALUE 'Y'.
           05  TABLE-VAR          PIC S9(4) COMP.
           05  TABLE-MAX          PIC S9(4) COMP VALUE 45.
      *
       01  ACCT-TABLE.
           05  ACCT-TABLE-ITEM OCCURS 45 TIMES ASCENDING KEY IS ACCT-NO
               INDEXED BY TABLE-IDX.
               10  ACCT-NO            PIC X(8).
               10  ACCT-LIMIT         PIC S9(7)V99 COMP-3.
               10  ACCT-BALANCE       PIC S9(7)V99 COMP-3.
               10  LAST-NAME          PIC X(20).
               10  FIRST-NAME         PIC X(15).
               10  CLIENT-ADDR.
                   15  STREET-ADDR    PIC X(25).
                   15  CITY-COUNTY    PIC X(20).
                   15  USA-STATE      PIC X(15).
               10  RESERVED           PIC X(7).
               10  COMMENTS           PIC X(50).
      *
      *------------------
       PROCEDURE DIVISION.
      *------------------
       OPEN-FILES.
           OPEN INPUT ACCT-REC.
      *
       LOAD-TABLES.
           PERFORM READ-RECORD.
           PERFORM VARYING TABLE-VAR FROM 1 BY 1
             UNTIL TABLE-VAR = TABLE-MAX OR END-OF-FILE
               MOVE ACCT-FIELDS TO ACCT-TABLE-ITEM (TABLE-VAR)
               PERFORM READ-RECORD
           END-PERFORM.
      *
       SEARCH-RECORD.
           SET TABLE-IDX TO 1.
           SEARCH ALL ACCT-TABLE-ITEM
               AT END DISPLAY "Not Found"
               WHEN ACCT-NO (TABLE-IDX) = 18011809
                   DISPLAY "User with Acct No 18011809 is found!".
      *
       CLOSE-STOP.
           CLOSE ACCT-REC.
           STOP RUN.
      *
       READ-RECORD.
           READ ACCT-REC
           AT END MOVE 'Y' TO LASTREC
           END-READ.
      *

@phaumer phaumer added the enhancement New feature or request label Sep 6, 2024
@phaumer
Copy link
Member

phaumer commented Sep 6, 2024

Thanks. We have to investigate if and how we can control that.

@alexbodn
Copy link
Author

alexbodn commented Sep 6, 2024

i have to mention the breadcrumbs seem to be precise

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

No branches or pull requests

2 participants