chore: doc updated(Get an editor)

This commit is contained in:
lnu 2020-12-29 09:13:56 +01:00 committed by Jan De Dobbeleer
parent 36e69a1f7e
commit 9013a5b3d4
4 changed files with 20 additions and 5 deletions

View file

@ -65,8 +65,8 @@ Make sure to remove this before submitting a PR as there's [a check][pr-go-mod]
## Get the source code
The source is hosted on [Github][omp]. When you want to contribute, create a [fork][gh-fork] so you can make changes in your repository
and create pull request in the official Oh my Posh repository.
The source is hosted on [Github][omp]. When you want to contribute, create a [fork][gh-fork] so you can make changes in
your repository and create pull request in the official Oh my Posh repository.
Clone your fork of Oh my Posh locally, replace `<user>` with your Github username.
@ -108,6 +108,21 @@ your path to add your own Oh my Posh binary to and immediately see the changes a
go build -o $GOPATH/bin/oh-my-posh
```
## Get an editor
A default config(.vscode folder) for [Visual Studio Code](https://code.visualstudio.com) is available in the repo:
- golangci-lint is configured as the default linter.
- Recommended extensions available for a smooth bootstrap.
![recommended extensions](recommended_extensions.png "Recommended extensions" )
- Default run and debug configurations available.
Once the extensions are installed:
- Debug can be started by hitting F5.
- All tests can be run using the Test explorer.
## Up Next
With everything set up, you're ready to start making changes and create your first [PR][gh-pr]!

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

View file

@ -204,8 +204,8 @@ func (e *engine) debug() {
segmentTiming.stringDuration = time.Since(start)
// not pretty rendering could be refactored for a better separation of concern
e.previousActiveSegment = nil
e.activeSegment = segment
e.endPowerline()
e.activeSegment.Background = segment.props.background
e.activeSegment.Foreground = segment.props.foreground
e.renderSegmentText(segmentTiming.stringValue)

View file

@ -154,9 +154,9 @@ func main() {
if *args.Debug {
engine.debug()
} else {
engine.render()
return
}
engine.render()
}
func initShell(shell, config string) string {