Skip to content

Commit 38dce0d

Browse files
committed
[release] package.json: skip godlvdap debug config in the stable version
We want to do more polishing on the Go Delve DAP debug option. Until then, hide this in the stable version of the extension. I hoped that I could disable that from the quick pick option but I couldn't find how. (Not registering the debug config provider didn't do the job). I left goMain.ts untouched - it seems like it doesn't affect visibility of the configuration. This is a patch only applied to the release, and latest branches. Not the main branch where nightly is built from. Nightly will keep presenting the godlvdap option. Fixes #960 Change-Id: I1afe8104a4e1b0e654727ec1fa574acccbd43605 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/273046 Trust: Hyang-Ah Hana Kim <[email protected]> Reviewed-by: Suzy Mueller <[email protected]>
1 parent aeea154 commit 38dce0d

File tree

1 file changed

+1
-376
lines changed

1 file changed

+1
-376
lines changed

package.json

+1-376
Original file line numberDiff line numberDiff line change
@@ -783,382 +783,7 @@
783783
}
784784
}
785785
}
786-
}
787-
},
788-
{
789-
"type": "godlvdap",
790-
"label": "Go Dlv Dap (Experimental)",
791-
"program": "./dist/debugAdapter2.js",
792-
"runtime": "node",
793-
"languages": [
794-
"go"
795-
],
796-
"configurationSnippets": [
797-
{
798-
"label": "Go: Launch package",
799-
"description": "Debug the package in the program attribute",
800-
"body": {
801-
"name": "${2:Launch Package}",
802-
"type": "godlvdap",
803-
"request": "launch",
804-
"mode": "debug",
805-
"program": "^\"\\${workspaceFolder}${1:}\""
806-
}
807-
},
808-
{
809-
"label": "Go: Launch file",
810-
"description": "Debug the file in the program attribute",
811-
"body": {
812-
"name": "${2:Launch file}",
813-
"type": "godlvdap",
814-
"request": "launch",
815-
"mode": "debug",
816-
"program": "^\"${1:\\${file\\}}\""
817-
}
818-
},
819-
{
820-
"label": "Go: Launch test package",
821-
"description": "Debug the test package in the program attribute",
822-
"body": {
823-
"name": "${2:Launch test package}",
824-
"type": "godlvdap",
825-
"request": "launch",
826-
"mode": "test",
827-
"program": "^\"\\${workspaceFolder}${1:}\""
828-
}
829-
},
830-
{
831-
"label": "Go: Launch test function",
832-
"description": "Debug the test function in the args, ensure program attributes points to right package",
833-
"body": {
834-
"name": "${3:Launch test function}",
835-
"type": "godlvdap",
836-
"request": "launch",
837-
"mode": "test",
838-
"program": "^\"\\${workspaceFolder}${1:}\"",
839-
"args": [
840-
"-test.run",
841-
"${2:MyTestFunction}"
842-
]
843-
}
844-
},
845-
{
846-
"label": "Go: Attach to local process",
847-
"description": "Attach to an existing process by process ID",
848-
"body": {
849-
"name": "${1:Attach to Process}",
850-
"type": "godlvdap",
851-
"request": "attach",
852-
"mode": "local",
853-
"processId": 0
854-
}
855-
},
856-
{
857-
"label": "Go: Connect to server",
858-
"description": "Connect to a remote headless debug server",
859-
"body": {
860-
"name": "${1:Connect to server}",
861-
"type": "godlvdap",
862-
"request": "attach",
863-
"mode": "remote",
864-
"remotePath": "^\"\\${workspaceFolder}\"",
865-
"port": 2345,
866-
"host": "127.0.0.1"
867-
}
868-
}
869-
],
870-
"configurationAttributes": {
871-
"launch": {
872-
"required": [],
873-
"properties": {
874-
"program": {
875-
"type": "string",
876-
"description": "Path to the program folder (or any file within that folder) when in 'debug' or 'test' mode, and to the pre-built binary file to debug in 'exec' mode.",
877-
"default": "${workspaceFolder}"
878-
},
879-
"mode": {
880-
"enum": [
881-
"auto",
882-
"debug",
883-
"test",
884-
"exec"
885-
],
886-
"description": "One of 'auto', 'debug', 'test', 'exec'.",
887-
"default": "auto"
888-
},
889-
"stopOnEntry": {
890-
"type": "boolean",
891-
"description": "Automatically stop program after launch.",
892-
"default": false
893-
},
894-
"args": {
895-
"type": "array",
896-
"description": "Command line arguments passed to the program.",
897-
"items": {
898-
"type": "string"
899-
},
900-
"default": []
901-
},
902-
"showLog": {
903-
"type": "boolean",
904-
"description": "Show log output from the delve debugger.",
905-
"default": false
906-
},
907-
"cwd": {
908-
"type": "string",
909-
"description": "Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace.",
910-
"default": "."
911-
},
912-
"env": {
913-
"type": "object",
914-
"description": "Environment variables passed to the program.",
915-
"default": {}
916-
},
917-
"buildFlags": {
918-
"type": "string",
919-
"description": "Build flags, to be passed to the Go compiler.",
920-
"default": ""
921-
},
922-
"init": {
923-
"type": "string",
924-
"description": "Init file, executed by the terminal client.",
925-
"default": ""
926-
},
927-
"remotePath": {
928-
"type": "string",
929-
"description": "Absolute path to the file being debugged on the remote machine in case of remote debugging.",
930-
"default": ""
931-
},
932-
"port": {
933-
"type": "number",
934-
"description": "The port that the delve debugger will be listening on.",
935-
"default": 2345
936-
},
937-
"host": {
938-
"type": "string",
939-
"description": "The host name of the machine the delve debugger will be listening on.",
940-
"default": "127.0.0.1"
941-
},
942-
"trace": {
943-
"type": "string",
944-
"enum": [
945-
"log",
946-
"verbose",
947-
"error"
948-
],
949-
"default": "error",
950-
"description": "Various levels of logging shown in the debug console. When set to 'log' or 'verbose', the logs will also be written to a file."
951-
},
952-
"envFile": {
953-
"type": [
954-
"string",
955-
"array"
956-
],
957-
"items": {
958-
"type": "string"
959-
},
960-
"description": "Absolute path to a file containing environment variable definitions. Multiple files can be specified by provided an array of absolute paths",
961-
"default": "${workspaceFolder}/.env"
962-
},
963-
"backend": {
964-
"type": "string",
965-
"enum": [
966-
"default",
967-
"native",
968-
"lldb"
969-
],
970-
"description": "Backend used by delve. Only available in delve version 0.12.2 and above."
971-
},
972-
"output": {
973-
"type": "string",
974-
"description": "Output path for the binary of delve",
975-
"default": "debug"
976-
},
977-
"logOutput": {
978-
"type": "string",
979-
"enum": [
980-
"debugger",
981-
"gdbwire",
982-
"lldbout",
983-
"debuglineerr",
984-
"dap"
985-
],
986-
"description": "Comma separated list of components that should produce debug output.",
987-
"default": "debugger"
988-
},
989-
"dlvLoadConfig": {
990-
"type": "object",
991-
"properties": {
992-
"followPointers": {
993-
"type": "boolean",
994-
"description": "FollowPointers requests pointers to be automatically dereferenced",
995-
"default": true
996-
},
997-
"maxVariableRecurse": {
998-
"type": "number",
999-
"description": "MaxVariableRecurse is how far to recurse when evaluating nested types",
1000-
"default": 1
1001-
},
1002-
"maxStringLen": {
1003-
"type": "number",
1004-
"description": "MaxStringLen is the maximum number of bytes read from a string",
1005-
"default": 64
1006-
},
1007-
"maxArrayValues": {
1008-
"type": "number",
1009-
"description": "MaxArrayValues is the maximum number of elements read from an array, a slice or a map",
1010-
"default": 64
1011-
},
1012-
"maxStructFields": {
1013-
"type": "number",
1014-
"description": "MaxStructFields is the maximum number of fields read from a struct, -1 will read all fields",
1015-
"default": -1
1016-
}
1017-
},
1018-
"description": "LoadConfig describes to delve, how to load values from target's memory",
1019-
"default": {
1020-
"followPointers": true,
1021-
"maxVariableRecurse": 1,
1022-
"maxStringLen": 64,
1023-
"maxArrayValues": 64,
1024-
"maxStructFields": -1
1025-
}
1026-
},
1027-
"stackTraceDepth": {
1028-
"type": "number",
1029-
"description": "Maximum depth of stack trace collected from Delve",
1030-
"default": 50
1031-
},
1032-
"showGlobalVariables": {
1033-
"type": "boolean",
1034-
"default": false,
1035-
"description": "Boolean value to indicate whether global package variables should be shown in the variables pane or not."
1036-
}
1037-
}
1038-
},
1039-
"attach": {
1040-
"required": [],
1041-
"properties": {
1042-
"processId": {
1043-
"type": "number",
1044-
"description": "The ID of the process to be debugged."
1045-
},
1046-
"mode": {
1047-
"enum": [
1048-
"local",
1049-
"remote"
1050-
],
1051-
"description": "Indicates local or remote debugging. Local maps to the dlv 'attach' command, remote maps to 'connect'.",
1052-
"default": "local"
1053-
},
1054-
"showLog": {
1055-
"type": "boolean",
1056-
"description": "Show log output from the delve debugger.",
1057-
"default": false
1058-
},
1059-
"cwd": {
1060-
"type": "string",
1061-
"description": "Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace.",
1062-
"default": "${workspaceFolder}"
1063-
},
1064-
"remotePath": {
1065-
"type": "string",
1066-
"description": "If remote debugging, the path to the source code on the remote machine, if different from the local machine.",
1067-
"default": ""
1068-
},
1069-
"port": {
1070-
"type": "number",
1071-
"description": "The port that the delve debugger will be listening on.",
1072-
"default": 2345
1073-
},
1074-
"host": {
1075-
"type": "string",
1076-
"description": "The host name of the machine the delve debugger will be listening on.",
1077-
"default": "127.0.0.1"
1078-
},
1079-
"trace": {
1080-
"type": "string",
1081-
"enum": [
1082-
"log",
1083-
"verbose",
1084-
"error"
1085-
],
1086-
"default": "error",
1087-
"description": "Various levels of logging shown in the debug console. When set to 'log' or 'verbose', the logs will also be written to a file."
1088-
},
1089-
"backend": {
1090-
"type": "string",
1091-
"enum": [
1092-
"default",
1093-
"native",
1094-
"lldb"
1095-
],
1096-
"description": "Backend used by delve. Only available in delve version 0.12.2 and above."
1097-
},
1098-
"logOutput": {
1099-
"type": "string",
1100-
"enum": [
1101-
"debugger",
1102-
"gdbwire",
1103-
"lldbout",
1104-
"debuglineerr",
1105-
"dap",
1106-
"rpc"
1107-
],
1108-
"description": "Comma separated list of components that should produce debug output.",
1109-
"default": "debugger"
1110-
},
1111-
"dlvLoadConfig": {
1112-
"type": "object",
1113-
"properties": {
1114-
"followPointers": {
1115-
"type": "boolean",
1116-
"description": "FollowPointers requests pointers to be automatically dereferenced",
1117-
"default": true
1118-
},
1119-
"maxVariableRecurse": {
1120-
"type": "number",
1121-
"description": "MaxVariableRecurse is how far to recurse when evaluating nested types",
1122-
"default": 1
1123-
},
1124-
"maxStringLen": {
1125-
"type": "number",
1126-
"description": "MaxStringLen is the maximum number of bytes read from a string",
1127-
"default": 64
1128-
},
1129-
"maxArrayValues": {
1130-
"type": "number",
1131-
"description": "MaxArrayValues is the maximum number of elements read from an array, a slice or a map",
1132-
"default": 64
1133-
},
1134-
"maxStructFields": {
1135-
"type": "number",
1136-
"description": "MaxStructFields is the maximum number of fields read from a struct, -1 will read all fields",
1137-
"default": -1
1138-
}
1139-
},
1140-
"description": "LoadConfig describes to delve, how to load values from target's memory",
1141-
"default": {
1142-
"followPointers": true,
1143-
"maxVariableRecurse": 1,
1144-
"maxStringLen": 64,
1145-
"maxArrayValues": 64,
1146-
"maxStructFields": -1
1147-
}
1148-
},
1149-
"stackTraceDepth": {
1150-
"type": "number",
1151-
"description": "Maximum depth of stack trace collected from Delve",
1152-
"default": 50
1153-
},
1154-
"showGlobalVariables": {
1155-
"type": "boolean",
1156-
"default": false,
1157-
"description": "Boolean value to indicate whether global package variables should be shown in the variables pane or not."
1158-
}
1159-
}
1160-
}
1161-
}
786+
}
1162787
}
1163788
],
1164789
"configuration": {

0 commit comments

Comments
 (0)