microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.19k stars 29.29k forks source link

Vertical Line Appears in Editor for Specific Project, Not Present in Other Projects, Even After Restarting VS Code #229124

Closed ryo-kozin closed 1 month ago

ryo-kozin commented 1 month ago

Environment:

Description:

A vertical line consistently appears in the editor for a specific project, regardless of restarting VS Code or reloading the window. However, this issue does not occur in other repositories. I have tried disabling all extensions, but the line persists only in this particular project.

This issue is unique to this project, as restarting VS Code or switching to other projects does not reproduce the problem. It only affects this one repository, even after multiple restarts.

Steps to Reproduce:

  1. Open the specific project (repository) in VS Code.
  2. A vertical line appears in the editor.
  3. Restart VS Code or reload the window.
  4. The vertical line still appears in the same project.
  5. Open other repositories—no vertical line is visible.
  6. Disabling all extensions does not resolve the issue.

Expected Behavior:

No vertical line should appear unless explicitly configured in project or workspace settings.

Actual Behavior:

A vertical line appears in the editor for a specific project, even after restarting VS Code. This behavior is not observed in other projects or repositories.

Additional Information:

Extensions:

OS Details:

macOS Sequoia 15.0, running on a MacBook Air M2 (16 GB RAM)

VS Code:

Version 1.93.1

gjsjohnmurray commented 1 month ago

Probably a "editor.rulers" setting in the project's .vscode/settings.json file.

gjsjohnmurray commented 1 month ago

See https://code.visualstudio.com/docs/getstarted/tips-and-tricks#_vertical-rulers

ryo-kozin commented 1 month ago

@gjsjohnmurray Thank you for pointing out the ruler setting as the cause of the vertical line in the editor! I reviewed the information at Vertical Rulers in VS Code, and it resolved the issue.

I appreciate your help. I will go ahead and close this issue now.