|
116 | 116 | }, |
117 | 117 | "cwd": { |
118 | 118 | "type": "string", |
119 | | - "description": "Path of project" |
| 119 | + "description": "project path" |
120 | 120 | }, |
121 | 121 | "gdbpath": { |
122 | 122 | "type": "string", |
|
173 | 173 | "ssh": { |
174 | 174 | "required": [ |
175 | 175 | "host", |
176 | | - "cwd", |
177 | | - "user" |
| 176 | + "user", |
| 177 | + "cwd" |
178 | 178 | ], |
179 | 179 | "type": "object", |
180 | 180 | "description": "If this is set then the extension will connect to an ssh host and run GDB there", |
|
183 | 183 | "type": "string", |
184 | 184 | "description": "Remote host name/ip to connect to" |
185 | 185 | }, |
186 | | - "cwd": { |
187 | | - "type": "string", |
188 | | - "description": "Path of project on the remote" |
189 | | - }, |
190 | 186 | "port": { |
191 | 187 | "type": ["number", "string"], |
192 | 188 | "description": "Remote port number", |
|
209 | 205 | "description": "Auto-detect the running SSH agent (via SSH_AUTH_SOCK environment variable) and use it to perform authentication", |
210 | 206 | "default": false |
211 | 207 | }, |
| 208 | + "sourceFileMap": { |
| 209 | + "type": "object", |
| 210 | + "description": "Mapping of source paths (from GDB on ssh remote) to local (IDE) paths.", |
| 211 | + "default": { |
| 212 | + "<sourcePath>": "<localPath>" |
| 213 | + } |
| 214 | + }, |
| 215 | + "cwd": { |
| 216 | + "type": "string", |
| 217 | + "description": "Working directory for the debugger.\nIf `ssh.sourceFileMap` is not set, then this is also the project path on the remote for mapping with `cwd`." |
| 218 | + }, |
212 | 219 | "forwardX11": { |
213 | 220 | "type": "boolean", |
214 | 221 | "description": "If true, the server will redirect x11 to the local host", |
|
300 | 307 | }, |
301 | 308 | "cwd": { |
302 | 309 | "type": "string", |
303 | | - "description": "Path of project", |
| 310 | + "description": "project path", |
304 | 311 | "default": "${workspaceRoot}" |
305 | 312 | }, |
306 | 313 | "autorun": { |
|
331 | 338 | "type": "string", |
332 | 339 | "description": "Remote host name/ip to connect to" |
333 | 340 | }, |
334 | | - "cwd": { |
335 | | - "type": "string", |
336 | | - "description": "Path of project on the remote" |
337 | | - }, |
338 | 341 | "port": { |
339 | 342 | "type": ["number", "string"], |
340 | 343 | "description": "Remote port number", |
|
357 | 360 | "description": "Auto-detect the running SSH agent (via SSH_AUTH_SOCK environment variable) and use it to perform authentication", |
358 | 361 | "default": false |
359 | 362 | }, |
| 363 | + "sourceFileMap": { |
| 364 | + "type": "object", |
| 365 | + "description": "Mapping of source paths (from GDB on ssh remote) to local (IDE) paths.", |
| 366 | + "default": { |
| 367 | + "<sourcePath>": "<localPath>" |
| 368 | + } |
| 369 | + }, |
| 370 | + "cwd": { |
| 371 | + "type": "string", |
| 372 | + "description": "Working directory for the debugger.\nIf `ssh.sourceFileMap` is not set, then this is also the project path on the remote for mapping with `cwd`." |
| 373 | + }, |
360 | 374 | "forwardX11": { |
361 | 375 | "type": "boolean", |
362 | 376 | "description": "If true, the server will redirect x11 to the local host", |
|
446 | 460 | "cwd": "^\"\\${workspaceRoot}\"", |
447 | 461 | "ssh": { |
448 | 462 | "host": "${2:127.0.0.1}", |
449 | | - "cwd": "${3:/home/remote_user/project/}", |
| 463 | + "cwd": "${3:/tmp/working}", |
450 | 464 | "keyfile": "${4:/home/my_user/.ssh/id_rsa}", |
451 | | - "user": "${5:remote_user}" |
| 465 | + "user": "${5:remote_user}", |
| 466 | + "sourceFileMap": { |
| 467 | + "${6:/home/remote_user/project/}": "^\"\\${workspaceRoot}\"" |
| 468 | + } |
452 | 469 | }, |
453 | 470 | "valuesFormatting": "parseText" |
454 | 471 | } |
|
542 | 559 | }, |
543 | 560 | "cwd": { |
544 | 561 | "type": "string", |
545 | | - "description": "Path of project" |
| 562 | + "description": "project path" |
546 | 563 | }, |
547 | 564 | "lldbmipath": { |
548 | 565 | "type": "string", |
|
609 | 626 | "type": "string", |
610 | 627 | "description": "Remote host name/ip to connect to" |
611 | 628 | }, |
612 | | - "cwd": { |
613 | | - "type": "string", |
614 | | - "description": "Path of project on the remote" |
615 | | - }, |
616 | 629 | "port": { |
617 | 630 | "type": ["number", "string"], |
618 | 631 | "description": "Remote port number", |
|
635 | 648 | "description": "Auto-detect the running SSH agent (via SSH_AUTH_SOCK environment variable) and use it to perform authentication", |
636 | 649 | "default": false |
637 | 650 | }, |
| 651 | + "sourceFileMap": { |
| 652 | + "type": "object", |
| 653 | + "description": "Mapping of source paths (from GDB on ssh remote) to local (IDE) paths.", |
| 654 | + "default": { |
| 655 | + "<sourcePath>": "<localPath>" |
| 656 | + } |
| 657 | + }, |
| 658 | + "cwd": { |
| 659 | + "type": "string", |
| 660 | + "description": "Working directory for the debugger.\nIf `ssh.sourceFileMap` is not set, then this is also the project path on the remote for mapping with `cwd`." |
| 661 | + }, |
638 | 662 | "forwardX11": { |
639 | 663 | "type": "boolean", |
640 | 664 | "description": "If true, the server will redirect x11 to the local host", |
641 | 665 | "default": true |
642 | 666 | }, |
643 | | - "x11port": { |
644 | | - "type": ["number", "string"], |
645 | | - "description": "Port to redirect X11 data to (by default port = display + 6000)", |
646 | | - "default": 6000 |
647 | | - }, |
648 | 667 | "x11host": { |
649 | 668 | "type": "string", |
650 | 669 | "description": "Hostname/ip to redirect X11 data to", |
651 | 670 | "default": "localhost" |
652 | 671 | }, |
| 672 | + "x11port": { |
| 673 | + "type": ["number", "string"], |
| 674 | + "description": "Port to redirect X11 data to (by default port = display + 6000)", |
| 675 | + "default": 6000 |
| 676 | + }, |
653 | 677 | "remotex11screen": { |
654 | 678 | "type": "number", |
655 | 679 | "description": "Screen to start the application on the remote side", |
|
720 | 744 | }, |
721 | 745 | "cwd": { |
722 | 746 | "type": "string", |
723 | | - "description": "Path of project", |
| 747 | + "description": "project path", |
724 | 748 | "default": "${workspaceRoot}" |
725 | 749 | }, |
726 | 750 | "autorun": { |
|
842 | 866 | }, |
843 | 867 | "cwd": { |
844 | 868 | "type": "string", |
845 | | - "description": "Path of project" |
| 869 | + "description": "project path" |
846 | 870 | }, |
847 | 871 | "magomipath": { |
848 | 872 | "type": "string", |
|
936 | 960 | }, |
937 | 961 | "cwd": { |
938 | 962 | "type": "string", |
939 | | - "description": "Path of project", |
| 963 | + "description": "project path", |
940 | 964 | "default": "${workspaceRoot}" |
941 | 965 | }, |
942 | 966 | "autorun": { |
|
0 commit comments