First attempt to make vscode-go work
This commit is contained in:
parent
77e250bc6e
commit
adfce8d30e
4 changed files with 51 additions and 9 deletions
|
|
@ -43,8 +43,8 @@ GADGETS = {
|
|||
'vscode-cpptools': {
|
||||
'language': 'c',
|
||||
'download': {
|
||||
'url': ( 'https://github.com/Microsoft/vscode-cpptools/releases/download/'
|
||||
'${version}/${file_name}' ),
|
||||
'url': 'https://github.com/Microsoft/vscode-cpptools/releases/download/'
|
||||
'${version}/${file_name}',
|
||||
},
|
||||
'do': lambda name, root: InstallCppTools( name, root ),
|
||||
'all': {
|
||||
|
|
@ -80,8 +80,8 @@ GADGETS = {
|
|||
'vscode-python': {
|
||||
'language': 'python',
|
||||
'download': {
|
||||
'url': ( 'https://github.com/Microsoft/vscode-python/releases/download/'
|
||||
'${version}/${file_name}' ),
|
||||
'url': 'https://github.com/Microsoft/vscode-python/releases/download/'
|
||||
'${version}/${file_name}',
|
||||
},
|
||||
'all': {
|
||||
'version': '2019.5.17059',
|
||||
|
|
@ -111,8 +111,8 @@ GADGETS = {
|
|||
'language': 'csharp',
|
||||
'enabled': False,
|
||||
'download': {
|
||||
'url': ( 'https://github.com/Samsung/netcoredbg/releases/download/latest/'
|
||||
'${file_name}' ),
|
||||
'url': 'https://github.com/Samsung/netcoredbg/releases/download/latest/'
|
||||
'${file_name}',
|
||||
'format': 'tar',
|
||||
},
|
||||
'all': {
|
||||
|
|
@ -175,15 +175,36 @@ GADGETS = {
|
|||
'vscode-bash-debug': {
|
||||
'language': 'bash',
|
||||
'download': {
|
||||
'url': ( 'https://github.com/rogalmic/vscode-bash-debug/releases/'
|
||||
'download/${version}/${file_name}' ),
|
||||
'url': 'https://github.com/rogalmic/vscode-bash-debug/releases/'
|
||||
'download/${version}/${file_name}',
|
||||
},
|
||||
'all': {
|
||||
'file_name': 'bash-debug-0.3.5.vsix',
|
||||
'version': 'v0.3.5',
|
||||
'checksum': '',
|
||||
}
|
||||
}
|
||||
},
|
||||
'vscode-go': {
|
||||
'language': 'go',
|
||||
'download': {
|
||||
'url': 'https://github.com/microsoft/vscode-go/releases/download/'
|
||||
'${version}/${file_name}'
|
||||
},
|
||||
'all': {
|
||||
'version': '0.11.4',
|
||||
'file_name': 'Go-0.11.4.vsix',
|
||||
'checksum': ''
|
||||
},
|
||||
'adapters': {
|
||||
'vscode-go': {
|
||||
'name': 'delve',
|
||||
'command': [
|
||||
'node',
|
||||
'${gadgetDir}/vscode-go/out/src/debugAdapter/goDebug.js'
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
1
support/test/go/hello_world/.gitignore
vendored
Normal file
1
support/test/go/hello_world/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
hello_world
|
||||
14
support/test/go/hello_world/.vimspector.json
Normal file
14
support/test/go/hello_world/.vimspector.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"configurations": {
|
||||
"run": {
|
||||
"adapter": "vscode-go",
|
||||
"configuration": {
|
||||
"request": "launch",
|
||||
"program": "${workspaceRoot}/hello-world.go",
|
||||
"mode": "debug",
|
||||
"dlvToolPath": "$HOME/go/bin/dlv",
|
||||
"trace": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
6
support/test/go/hello_world/hello-world.go
Normal file
6
support/test/go/hello_world/hello-world.go
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
package main
|
||||
import "fmt"
|
||||
func main() {
|
||||
var v = "test"
|
||||
fmt.Println("hello world: " + v)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue