-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix folders 0.8.1 handlUri as separate class add get started 0.8.4 - bug fixes trigger redeploy
- Loading branch information
1 parent
7fba3b3
commit cf16916
Showing
9 changed files
with
191 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
### Prerequisites | ||
|
||
- [Git](https://git-scm.com/), `>= 2.7.2` | ||
- [NodeJS](https://nodejs.org/), `14.16.0` | ||
- [yarn](https://yarnpkg.com/), `>= 1.22.5` | ||
|
||
### Dependencies | ||
|
||
From a terminal, where you have cloned the repository, execute the following command to install the required dependencies: | ||
|
||
``` | ||
yarn | ||
``` | ||
|
||
### Build | ||
|
||
From a terminal, where you have cloned the repository, execute the following command to re-build the project from scratch: | ||
|
||
``` | ||
yarn run rebuild | ||
``` | ||
|
||
👉 **NOTE!** This will run a complete rebuild of the project. | ||
|
||
Or to just run a quick build, use: | ||
|
||
``` | ||
yarn run build | ||
``` | ||
|
||
### Watch | ||
|
||
During development you can use a watcher to make builds on changes quick and easy. From a terminal, where you have cloned the repository, execute the following command: | ||
|
||
``` | ||
yarn run watch | ||
``` | ||
|
||
Or use the provided `watch` task in VS Code, execute the following from the command palette (be sure there is no `>` at the start): | ||
|
||
``` | ||
task watch | ||
``` | ||
|
||
This will first do an initial full build and then watch for file changes, compiling those changes incrementally, enabling a fast, iterative coding experience. | ||
|
||
👉 **Tip!** You can press <kbd>CMD+SHIFT+B</kbd> (<kbd>CTRL+SHIFT+B</kbd> on Windows, Linux) to start the watch task. | ||
|
||
👉 **Tip!** You don't need to stop and restart the development version of Code after each change. You can just execute `Reload Window` from the command palette. | ||
|
||
### Formatting | ||
|
||
This project uses [prettier](https://prettier.io/) for code formatting. You can run prettier across the code by calling `yarn run pretty` from a terminal. | ||
|
||
To format the code as you make changes you can install the [Prettier - Code formatter](https://marketplace.visualstudio.com/items/esbenp.prettier-vscode) extension. | ||
|
||
Add the following to your User Settings to run prettier: | ||
|
||
``` | ||
"editor.formatOnSave": true, | ||
``` | ||
|
||
### Linting | ||
|
||
This project uses [ESLint](https://eslint.org/) for code linting. You can run ESLint across the code by calling `yarn run lint` from a terminal. Warnings from ESLint show up in the `Errors and Warnings` quick box and you can navigate to them from inside VS Code. | ||
|
||
To lint the code as you make changes you can install the [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) extension. | ||
|
||
### Bundling | ||
|
||
To generate a production bundle (without packaging) run the following from a terminal: | ||
|
||
``` | ||
yarn run bundle | ||
``` | ||
|
||
To generate a VSIX (installation package) run the following from a terminal: | ||
|
||
``` | ||
yarn run package | ||
``` | ||
|
||
### Debugging | ||
|
||
#### Using VS Code | ||
|
||
1. Open the `vscode-gitlens` folder | ||
2. Ensure the required [dependencies](#dependencies) are installed | ||
3. Choose the `Watch & Run` launch configuration from the launch dropdown in the Run and Debug viewlet and press `F5`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters