Skip to content

Commit

Permalink
vscode params
Browse files Browse the repository at this point in the history
- improve settings forto hide submodule
- add task to manage submodule
  • Loading branch information
Kleak committed May 15, 2019
1 parent 59b32a1 commit 3d797a3
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
"--proto_path=${workspaceRoot}/proto/services",
"--proto_path=${workspaceRoot}/third_party",
]
}
},
"git.autoRepositoryDetection": false,
"git.detectSubmodules": false
}
42 changes: 42 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,48 @@
"google/protobuf/empty.proto",
"services/authentication_service.proto"
],
},
{
"label": "git submodule init",
"dependsOn": [
"git submodule sync",
"git submodule update"
],
"problemMatcher": []
},
{
"label": "git submodule sync",
"type": "shell",
"command": "git",
"args": [
"submodule",
"sync",
"--recursive"
]
},
{
"label": "git submodule update",
"type": "shell",
"command": "git",
"args": [
"submodule",
"update",
"--init",
"--recursive"
]
},
{
"label": "git submodule update",
"type": "shell",
"command": "git",
"args": [
"submodule",
"foreach",
"git",
"pull",
"origin",
"master"
]
}
]
}

0 comments on commit 3d797a3

Please sign in to comment.