diff --git a/.vscode/settings.json b/.vscode/settings.json index fdd1248..bb24fba 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,5 +5,7 @@ "--proto_path=${workspaceRoot}/proto/services", "--proto_path=${workspaceRoot}/third_party", ] - } + }, + "git.autoRepositoryDetection": false, + "git.detectSubmodules": false } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 3a71866..d1dfc9a 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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" + ] } ] } \ No newline at end of file