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 // FIXME: arguably the generator should place it in the builddir, not srcdir
39 "C_Cpp.default.compileCommands": "${workspaceFolder:srcdir}/compile_commands.json",
40 // only used if the file doesn't match anything in the compile_commands.json - aka externals
41 // libxml includes just added as example/for reference
42 "C_Cpp.default.includePath": [
43 "@WORKDIR@/UnpackedTarball/**",
44 "/usr/include/libxml2/"
46 "C_Cpp.default.browse.limitSymbolsToIncludedHeaders": true,
47 "C_Cpp.default.cppStandard": "c++17",
48 // point this to LibreOffice's version of clang-format 5.0.0,
49 // otherwise clang-format from the plugin is used, and that
50 // gives slightly different results
51 "C_Cpp.clang_format_path": "/opt/lo/bin/clang-format",
55 // files in the repo should in general have a newline at end-of-file
56 "files.insertFinalNewline": true,
57 "editor.renderFinalNewline": false,
58 "gitlens.autolinks": [
61 "url": "https://bugs.documentfoundation.org/show_bug.cgi?id=<num>"
70 "detail": "runs make in builddir to update everything",
82 "label": "create compile-commands.json",
83 "detail": "runs make vim-ide-integration to create the compile-commands.json file",
90 // doesn't really depend on full make, but doesn't hurt
91 // updating the compile-commands is not needed all the time and also demonstrate
92 // how to use dependencies in tasks…
99 "problemMatcher": [] // don't ask when manually running the task
102 "label": "remove profile-dir",
103 "detail": "removes the temporary user-profile directory",
108 "@WORKDIR@/vs-code-temporary-user-profile"
124 "name": "run in debugger after make",
127 "program": "@INSTROOT@/program/soffice.bin",
129 "stopAtEntry": false,
133 // added in disabled form for convenience/as an example
134 // (proper name is just SAL_LOG),
135 // see https://docs.libreoffice.org/sal/html/sal_log.html
136 "name": "SAL_LOG_DISABLED",
137 "value": "+INFO.ucb+WARN"
140 "externalConsole": false,
144 "description": "Enable pretty-printing for gdb",
145 "text": "-enable-pretty-printing",
146 "ignoreFailures": true
149 "description": "Mark pretty-printers (in solenv/gdb) safe",
150 "text": "add-auto-load-safe-path @INSTROOT@",
151 "ignoreFailures": true
154 "description": "Mark pretty-printers bootstrap (in instdir/program) safe",
155 "text": "add-auto-load-safe-path @INSTROOT@",
156 "ignoreFailures": true
160 "miDebuggerPath": "gdb"
163 "program": "@INSTROOT@/MacOS/soffice",
167 "description": "load helpers for lldb",
168 "text": "command script import ${workspaceFolder:srcdir}/solenv/lldb/libreoffice/LO.py",
169 "ignoreFailures": false
173 "preLaunchTask": "full make"
176 // FIXME: not happy here when creating the profile while running in debugger
177 // no problem passing the profile dir once it was launched outside debugger once,
178 // but clearing out the user-profile dir needs to be triggered manually
179 "name": "run in gdb with clear userprofile",
180 // "preLaunchTask": "remove profile-dir",
183 "program": "@INSTROOT@/program/soffice.bin",
185 "-env:UserInstallation=file:///@WORKDIR@/vs-code-temporary-user-profile"
187 "stopAtEntry": false,
191 "name": "SAL_LOG_DISABLED",
192 "value": "+INFO.ucb+WARN"
195 "externalConsole": false,
199 "description": "Enable pretty-printing for gdb",
200 "text": "-enable-pretty-printing",
201 "ignoreFailures": true
204 "description": "Mark pretty-printers (in solenv/gdb) safe",
205 "text": "add-auto-load-safe-path ${workspaceFolder:srcdir}",
206 "ignoreFailures": true
209 "description": "Mark pretty-printers bootstrap (in instdir/program) safe",
210 "text": "add-auto-load-safe-path @INSTROOT@",
211 "ignoreFailures": true
215 "miDebuggerPath": "gdb"
218 "program": "@INSTROOT@/MacOS/soffice",
222 "description": "load helpers for for lldb",
223 "text": "command script import ${workspaceFolder:srcdir}/solenv/lldb/libreoffice/LO.py",
224 "ignoreFailures": false