diff options
Diffstat (limited to '.vscode/vs-code-template.code-workspace.in')
-rw-r--r-- | .vscode/vs-code-template.code-workspace.in | 98 |
1 files changed, 70 insertions, 28 deletions
diff --git a/.vscode/vs-code-template.code-workspace.in b/.vscode/vs-code-template.code-workspace.in index 4f5d25cc3899..067f46faa9e2 100644 --- a/.vscode/vs-code-template.code-workspace.in +++ b/.vscode/vs-code-template.code-workspace.in @@ -1,6 +1,6 @@ -// *** Autogenerated file - created by configure.ac *** -// you should save the auto-generated vs-code-templates.code-workspace to a separate file -// to prevent your changes from being overwritten +// *** vs-code.code-workspace.template is an autogenerated file created by configure.ac *** +// any changes to the vs-code.code-workspace.template file WILL BE OVERRIDDEN +// use the vs-code.code-workspace file (make vscode-ide-integration) for your own edits { "extensions": { "recommendations": [ @@ -13,9 +13,10 @@ "path": "@SRC_ROOT@" }, { + // BUILDDIR may be configured separate from SRCDIR "name": "builddir", "path": "@BUILDDIR@" - } + }, ], "settings": { "search.exclude": { @@ -34,8 +35,7 @@ "files.associations": { "*.patch.[0-9]": "diff" }, - // FIXME: arguably the generator should place it in the builddir, not srcdir - "C_Cpp.default.compileCommands": "${workspaceFolder:srcdir}/compile_commands.json", + "C_Cpp.default.compileCommands": "@BUILDDIR@/compile_commands.json", // only used if the file doesn't match anything in the compile_commands.json - aka externals // libxml includes just added as example/for reference "C_Cpp.default.includePath": [ @@ -43,7 +43,7 @@ "/usr/include/libxml2/" ], "C_Cpp.default.browse.limitSymbolsToIncludedHeaders": true, - "C_Cpp.default.cppStandard": "c++17", + "C_Cpp.default.cppStandard": "c++20", // point this to LibreOffice's version of clang-format 5.0.0, // otherwise clang-format from the plugin is used, and that // gives slightly different results @@ -51,12 +51,28 @@ "editor.rulers": [ 100 ], + // files in the repo should in general have a newline at end-of-file + "files.insertFinalNewline": true, + "editor.renderFinalNewline": "off", "gitlens.autolinks": [ { "prefix": "tdf#", "url": "https://bugs.documentfoundation.org/show_bug.cgi?id=<num>" } - ] + ], + "terminal.integrated.profiles.windows": { + "Cygwin": { + "path": "@CYGWIN_BASH@", + "args": [ + "--login" + ], + // prevent changing to $(HOME) + "env": { + "CHERE_INVOKING": "1" + } + } + }, + "terminal.integrated.defaultProfile.windows": "Cygwin" }, "tasks": { "version": "2.0.0", @@ -134,28 +150,41 @@ } ], "externalConsole": false, - "MIMode": "gdb", - "setupCommands": [ - { - "description": "Enable prett-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - } - ], "linux": { - "miDebuggerPath": "/usr/libexec/gdb" + "MIMode": "gdb", + "miDebuggerPath": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Mark pretty-printers (in solenv/gdb) safe", + "text": "add-auto-load-safe-path @SRC_ROOT@/solenv/gdb", + "ignoreFailures": true + }, + { + "description": "Mark pretty-printers bootstrap (in instdir/program) safe", + "text": "add-auto-load-safe-path @INSTROOT@", + "ignoreFailures": true + }, + ] }, "osx": { "program": "@INSTROOT@/MacOS/soffice", "MIMode": "lldb", "setupCommands": [ { - "description": "load helpers for for lldb", + "description": "load helpers for lldb", "text": "command script import ${workspaceFolder:srcdir}/solenv/lldb/libreoffice/LO.py", "ignoreFailures": false } ] }, + "windows": { + "type": "cppvsdbg" + }, "preLaunchTask": "full make" }, { @@ -179,16 +208,26 @@ } ], "externalConsole": false, - "MIMode": "gdb", - "setupCommands": [ - { - "description": "Enable pretty-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - } - ], "linux": { - "miDebuggerPath": "/usr/libexec/gdb" + "MIMode": "gdb", + "miDebuggerPath": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Mark pretty-printers (in solenv/gdb) safe", + "text": "add-auto-load-safe-path @SRC_ROOT@/solenv/gdb", + "ignoreFailures": true + }, + { + "description": "Mark pretty-printers bootstrap (in instdir/program) safe", + "text": "add-auto-load-safe-path @INSTROOT@", + "ignoreFailures": true + }, + ] }, "osx": { "program": "@INSTROOT@/MacOS/soffice", @@ -200,9 +239,12 @@ "ignoreFailures": false } ] + }, + "windows": { + "type": "cppvsdbg" } } ], "compounds": [] } -}
\ No newline at end of file +} |