1 // *** vs-code.code-workspace.template is an autogenerated file created by configure.ac ***
2 // any changes to the vs-code.code-workspace.template file WILL BE OVERRIDDEN
3 // use the vs-code.code-workspace file (make vscode-ide-integration) for your own edits
16 // BUILDDIR may be configured separate from SRCDIR
23 "/compile_commands.json": true,
24 "/dictionaries/": true,
25 "/helpcontent2/": true,
26 "/icon-themes/": true,
27 "/translations/": true
29 "files.watcherExclude": {
30 "/dictionaries/": true,
31 "/helpcontent2/": true,
32 "/icon-themes/": true,
33 "/translations/": true
35 "files.associations": {
36 "*.patch.[0-9]": "diff"
38 "C_Cpp.default.compileCommands": "@BUILDDIR@/compile_commands.json",
39 // only used if the file doesn't match anything in the compile_commands.json - aka externals
40 // libxml includes just added as example/for reference
41 "C_Cpp.default.includePath": [
42 "@WORKDIR@/UnpackedTarball/**",
43 "/usr/include/libxml2/"
45 "C_Cpp.default.browse.limitSymbolsToIncludedHeaders": true,
46 "C_Cpp.default.cppStandard": "c++17",
47 // point this to LibreOffice's version of clang-format 5.0.0,
48 // otherwise clang-format from the plugin is used, and that
49 // gives slightly different results
50 "C_Cpp.clang_format_path": "/opt/lo/bin/clang-format",
54 // files in the repo should in general have a newline at end-of-file
55 "files.insertFinalNewline": true,
56 "editor.renderFinalNewline": false,
57 "gitlens.autolinks": [
60 "url": "https://bugs.documentfoundation.org/show_bug.cgi?id=<num>"
69 "detail": "runs make in builddir to update everything",
81 "label": "create compile-commands.json",
82 "detail": "runs make vim-ide-integration to create the compile-commands.json file",
89 // doesn't really depend on full make, but doesn't hurt
90 // updating the compile-commands is not needed all the time and also demonstrate
91 // how to use dependencies in tasks…
98 "problemMatcher": [] // don't ask when manually running the task
101 "label": "remove profile-dir",
102 "detail": "removes the temporary user-profile directory",
107 "@WORKDIR@/vs-code-temporary-user-profile"
123 "name": "run in debugger after make",
126 "program": "@INSTROOT@/program/soffice.bin",
128 "stopAtEntry": false,
132 // added in disabled form for convenience/as an example
133 // (proper name is just SAL_LOG),
134 // see https://docs.libreoffice.org/sal/html/sal_log.html
135 "name": "SAL_LOG_DISABLED",
136 "value": "+INFO.ucb+WARN"
139 "externalConsole": false,
143 "description": "Enable pretty-printing for gdb",
144 "text": "-enable-pretty-printing",
145 "ignoreFailures": true
148 "description": "Mark pretty-printers (in solenv/gdb) safe",
149 "text": "add-auto-load-safe-path @INSTROOT@",
150 "ignoreFailures": true
153 "description": "Mark pretty-printers bootstrap (in instdir/program) safe",
154 "text": "add-auto-load-safe-path @INSTROOT@",
155 "ignoreFailures": true
159 "miDebuggerPath": "gdb"
162 "program": "@INSTROOT@/MacOS/soffice",
166 "description": "load helpers for lldb",
167 "text": "command script import ${workspaceFolder:srcdir}/solenv/lldb/libreoffice/LO.py",
168 "ignoreFailures": false
172 "preLaunchTask": "full make"
175 // FIXME: not happy here when creating the profile while running in debugger
176 // no problem passing the profile dir once it was launched outside debugger once,
177 // but clearing out the user-profile dir needs to be triggered manually
178 "name": "run in gdb with clear userprofile",
179 // "preLaunchTask": "remove profile-dir",
182 "program": "@INSTROOT@/program/soffice.bin",
184 "-env:UserInstallation=file:///@WORKDIR@/vs-code-temporary-user-profile"
186 "stopAtEntry": false,
190 "name": "SAL_LOG_DISABLED",
191 "value": "+INFO.ucb+WARN"
194 "externalConsole": false,
198 "description": "Enable pretty-printing for gdb",
199 "text": "-enable-pretty-printing",
200 "ignoreFailures": true
203 "description": "Mark pretty-printers (in solenv/gdb) safe",
204 "text": "add-auto-load-safe-path ${workspaceFolder:srcdir}",
205 "ignoreFailures": true
208 "description": "Mark pretty-printers bootstrap (in instdir/program) safe",
209 "text": "add-auto-load-safe-path @INSTROOT@",
210 "ignoreFailures": true
214 "miDebuggerPath": "gdb"
217 "program": "@INSTROOT@/MacOS/soffice",
221 "description": "load helpers for for lldb",
222 "text": "command script import ${workspaceFolder:srcdir}/solenv/lldb/libreoffice/LO.py",
223 "ignoreFailures": false