This repository was archived by the owner on Feb 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +69
-12
lines changed Expand file tree Collapse file tree 5 files changed +69
-12
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ ENV DEBIAN_FRONTEND noninteractive
1717RUN cd /root \
1818 && ./install-apt-packages.sh \
1919 && useradd -m vscode -s /bin/bash \
20- && cp install-vscode-extension *.sh /home/vscode/ \
20+ && cp install-vscode-*.sh /home/vscode/ \
2121 && chown vscode:vscode /home/vscode/install-vscode-extension*.sh \
22- && su vscode -c /home/vscode/install-vscode-extensions .sh
22+ && su - vscode -c /home/vscode/install-vscode-Go .sh
2323
24- CMD su vscode -c "code -w /home/vscode"
24+ CMD su - vscode -c "code -w /home/vscode"
Original file line number Diff line number Diff line change 99 - /home/vscode/golang-vscode
1010macros :
1111 code :
12- usage : start vscode to edit this project
12+ usage : open this project in vscode
1313 actions :
14- - su vscode -c "code -w /home/vscode/golang-vscode"
14+ - su - vscode -c "code -w /home/vscode/golang-vscode"
15+ bash :
16+ usage : start bash
17+ actions :
18+ - su - vscode
19+
20+ # macros to open vscode for the dependencies
21+ gocode :
22+ usage : open gocode in vscode
23+ actions :
24+ - su - vscode -c "code -w /home/vscode/go/src/github.com/nsf/gocode"
25+ godef :
26+ usage : open godef in vscode
27+ actions :
28+ - su - vscode -c "code -w /home/vscode/go/src/github.com/rogpeppe/godef"
29+ golint :
30+ usage : open golint in vscode
31+ actions :
32+ - su - vscode -c "code -w /home/vscode/go/src/github.com/golang/lint/golint"
33+ go-outline :
34+ usage : open go-outline in vscode
35+ actions :
36+ - su - vscode -c "code -w /home/vscode/go/src/github.com/lukehoban/go-outline"
37+ goreturns :
38+ usage : open goreturns in vscode
39+ actions :
40+ - su - vscode -c "code -w /home/vscode/go/src/sourcegraph.com/sqs/goreturns"
41+ gorename :
42+ usage : open gorename in vscode
43+ actions :
44+ - su - vscode -c "code -w /home/vscode/go/src/golang.org/x/tools/cmd/gorename"
45+ gopkgs :
46+ usage : open gopkgs in vscode
47+ actions :
48+ - su - vscode -c "code -w /home/vscode/go/src/github.com/tpng/gopkgs"
49+ go-symbols :
50+ usage : open go-symbols in vscode
51+ actions :
52+ - su - vscode -c "code -w /home/vscode/go/src/github.com/newhook/go-symbols"
53+ guru :
54+ usage : open guru in vscode
55+ actions :
56+ - su - vscode -c "code -w /home/vscode/go/src/golang.org/x/tools/cmd/guru"
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ dir=$( cd ` dirname " $0 " ` && pwd)
3+ # publisher extension version
4+ $dir /install-vscode-extension.sh lukehoban Go 0.6.38
5+
6+ echo ' export GOPATH=$HOME/go' >> ~ /.bash_profile
7+ echo ' export PATH=$GOPATH/bin:/usr/local/go/bin:$PATH' >> ~ /.bash_profile
8+ . ~ /.bash_profile
9+
10+ # https://github.com/Microsoft/vscode-go#tools
11+ go get -u -v github.com/nsf/gocode
12+ go get -u -v github.com/rogpeppe/godef
13+ go get -u -v github.com/golang/lint/golint
14+ go get -u -v github.com/lukehoban/go-outline
15+ go get -u -v sourcegraph.com/sqs/goreturns
16+ go get -u -v golang.org/x/tools/cmd/gorename
17+ go get -u -v github.com/tpng/gopkgs
18+ go get -u -v github.com/newhook/go-symbols
19+ go get -u -v golang.org/x/tools/cmd/guru
20+
21+ # https://github.com/derekparker/delve/blob/master/Documentation/installation/linux/install.md
22+ go get github.com/derekparker/delve/cmd/dlv
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments