You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,20 @@ $ vscode/scripts/code-cli.sh --install-extension dist/vscode-codeql-*.vsix # if
77
77
78
78
You can use VS Code to debug the extension without explicitly installing it. Just open this directory as a workspace in VS Code, and hit `F5` to start a debugging session.
79
79
80
+
### Storybook
81
+
82
+
You can use [Storybook](https://storybook.js.org/) to preview React components outside VSCode. Inside the `extensions/ql-vscode` directory, run:
83
+
84
+
```shell
85
+
npm run storybook
86
+
```
87
+
88
+
Your browser should automatically open to the Storybook UI. Stories live in the `src/stories` directory.
89
+
90
+
Alternatively, you can start Storybook inside of VSCode. There is a VSCode launch configuration for starting Storybook. It can be found in the debug view.
91
+
92
+
More information about Storybook can be found inside the **Overview** page once you have launched Storybook.
93
+
80
94
### Running the unit tests and integration tests that do not require a CLI instance
81
95
82
96
Unit tests and many integration tests do not require a copy of the CodeQL CLI.
0 commit comments