👉👉👉 This extension is still under development.
👉👉👉 Latest VS Code Insiders is required and at times this extension might be broken.
The VS Code GitHub Issue notebook extension enables you to run issue queries from within VS Code so that queries and results are displayed interleaved - just like in other notebook applications.
- use latest VS Code Insiders
- install this extension from the market place: https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-github-issue-notebooks
- create a
XYZ.github-issues
file and you are all set
The following features are currently supported
- Querying and rendering of GH issues and PR queries
- Language Support
- syntax highlighting
- validation
- completions
- code navigation (find references, to go definition)
- rename
- formatting
This extension supports to search for issues and pull requests using GitHub search queries (https://help.github.com/en/github/searching-for-information-on-github/searching-issues-and-pull-requests). In addition, variables can be defined and OR-queries can be used. Approximation of the grammer:
doc ::= query | or | def
query ::= <GH_QUERY>
or ::= query "OR" query | or
def ::= var "=" query
var ::= "$" [_a-zA-Z] [_a-zA-Z0-9]*
Note that new line characters always terminate an expression.
A few sample queries from the vscode-project, paste each into a separate code cell
Define variables for vscode and the current milestone (May 2020):
$vscode=repo:microsoft/vscode
$milestone=milestone:"May 2020"
All current bugs I have created that are closed but not yet verified (using above variables):
$vscode $milestone is:closed author:@me -assignee:@me label:bug -label:verified
All issues that affect performance (startup, freezing, leakage):
$vscode assignee:@me is:open label:freeze-slow-crash-leak
$vscode assignee:@me is:open label:perf
$vscode assignee:@me is:open label:perf-startup