Graph viewer: viewport does not fill entire pane

Open
#1,331 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript, vscode

Research direction

Start by reproducing the graph viewer in VS Code with a small three-node graph, then zoom and pan to compare the rendered area with the surrounding pane. Trace the graph viewer entry point and viewport handling, using the attached screenshot and issue description as the expected behavior; done means the graph can use the full pane while zooming and panning.

Written by the indexing model from the issue text.

Description

bug VSCode

The graph viewer for allows you to move and zoom around the graph, but it only draws within a very restricted viewport that matches the bounding box of the graph as it originally appeared.

Here's what it looks like when I zoom in on a small graph with only three nodes:
image

Version

VS Code: 1.66.2
CodeQL extension: 1.6.5

Dominant language
TypeScript
Stars
539
Forks
240
Avg merge
2d 6h
Merged PRs (30d)
29

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/vscode-codeql

All issues in github/vscode-codeql

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.