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++20",
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": "off",
57 "gitlens.autolinks": [
60 "url": "https://bugs.documentfoundation.org/show_bug.cgi?id=<num>"
63 "terminal.integrated.profiles.windows": {
65 "path": "@CYGWIN_BASH@",
69 // prevent changing to $(HOME)
75 "terminal.integrated.defaultProfile.windows": "Cygwin"
82 "detail": "runs make in builddir to update everything",
94 "label": "create compile-commands.json",
95 "detail": "runs make vim-ide-integration to create the compile-commands.json file",
102 // doesn't really depend on full make, but doesn't hurt
103 // updating the compile-commands is not needed all the time and also demonstrate
104 // how to use dependencies in tasks…
111 "problemMatcher": [] // don't ask when manually running the task
114 "label": "remove profile-dir",
115 "detail": "removes the temporary user-profile directory",
120 "@WORKDIR@/vs-code-temporary-user-profile"
136 "name": "run in debugger after make",
139 "program": "@INSTROOT@/program/soffice.bin",
141 "stopAtEntry": false,
145 // added in disabled form for convenience/as an example
146 // (proper name is just SAL_LOG),
147 // see https://docs.libreoffice.org/sal/html/sal_log.html
148 "name": "SAL_LOG_DISABLED",
149 "value": "+INFO.ucb+WARN"
152 "externalConsole": false,
155 "miDebuggerPath": "gdb",
158 "description": "Enable pretty-printing for gdb",
159 "text": "-enable-pretty-printing",
160 "ignoreFailures": true
163 "description": "Mark pretty-printers (in solenv/gdb) safe",
164 "text": "add-auto-load-safe-path @SRC_ROOT@/solenv/gdb",
165 "ignoreFailures": true
168 "description": "Mark pretty-printers bootstrap (in instdir/program) safe",
169 "text": "add-auto-load-safe-path @INSTROOT@",
170 "ignoreFailures": true
175 "program": "@INSTROOT@/MacOS/soffice",
179 "description": "load helpers for lldb",
180 "text": "command script import ${workspaceFolder:srcdir}/solenv/lldb/libreoffice/LO.py",
181 "ignoreFailures": false
188 "preLaunchTask": "full make"
191 // FIXME: not happy here when creating the profile while running in debugger
192 // no problem passing the profile dir once it was launched outside debugger once,
193 // but clearing out the user-profile dir needs to be triggered manually
194 "name": "run in gdb with clear userprofile",
195 // "preLaunchTask": "remove profile-dir",
198 "program": "@INSTROOT@/program/soffice.bin",
200 "-env:UserInstallation=file:///@WORKDIR@/vs-code-temporary-user-profile"
202 "stopAtEntry": false,
206 "name": "SAL_LOG_DISABLED",
207 "value": "+INFO.ucb+WARN"
210 "externalConsole": false,
213 "miDebuggerPath": "gdb",
216 "description": "Enable pretty-printing for gdb",
217 "text": "-enable-pretty-printing",
218 "ignoreFailures": true
221 "description": "Mark pretty-printers (in solenv/gdb) safe",
222 "text": "add-auto-load-safe-path @SRC_ROOT@/solenv/gdb",
223 "ignoreFailures": true
226 "description": "Mark pretty-printers bootstrap (in instdir/program) safe",
227 "text": "add-auto-load-safe-path @INSTROOT@",
228 "ignoreFailures": true
233 "program": "@INSTROOT@/MacOS/soffice",
237 "description": "load helpers for for lldb",
238 "text": "command script import ${workspaceFolder:srcdir}/solenv/lldb/libreoffice/LO.py",
239 "ignoreFailures": false