[cp] hack to fix an MSP creation error
[LibreOffice.git] / .vscode / vs-code-template.code-workspace.in
blob87a6a27ac8654d3035274dfe15718190747f50e7
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
5         "extensions": {
6                 "recommendations": [
7                         "ms-vscode.cpptools"
8                 ]
9         },
10         "folders": [
11                 {
12                         "name": "srcdir",
13                         "path": "@SRC_ROOT@"
14                 },
15                 {
16                         // BUILDDIR may be configured separate from SRCDIR
17                         "name": "builddir",
18                         "path": "@BUILDDIR@"
19                 },
20         ],
21         "settings": {
22                 "search.exclude": {
23                         "/compile_commands.json": true,
24                         "/dictionaries/": true,
25                         "/helpcontent2/": true,
26                         "/icon-themes/": true,
27                         "/translations/": true
28                 },
29                 "files.watcherExclude": {
30                         "/dictionaries/": true,
31                         "/helpcontent2/": true,
32                         "/icon-themes/": true,
33                         "/translations/": true
34                 },
35                 "files.associations": {
36                         "*.patch.[0-9]": "diff"
37                 },
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/"
44                 ],
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",
51                 "editor.rulers": [
52                         100
53                 ],
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": [
58                         {
59                                 "prefix": "tdf#",
60                                 "url": "https://bugs.documentfoundation.org/show_bug.cgi?id=<num>"
61                         }
62                 ]
63         },
64         "tasks": {
65                 "version": "2.0.0",
66                 "tasks": [
67                         {
68                                 "label": "full make",
69                                 "detail": "runs make in builddir to update everything",
70                                 "type": "shell",
71                                 "command": "make",
72                                 "group": {
73                                         "kind": "build",
74                                         "isDefault": true
75                                 },
76                                 "options": {
77                                         "cwd": "@BUILDDIR@"
78                                 }
79                         },
80                         {
81                                 "label": "create compile-commands.json",
82                                 "detail": "runs make vim-ide-integration to create the compile-commands.json file",
83                                 "type": "shell",
84                                 "command": "make",
85                                 "args": [
86                                         "vim-ide-integration"
87                                 ],
88                                 "group": "build",
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…
92                                 "dependsOn": [
93                                         "full make"
94                                 ],
95                                 "options": {
96                                         "cwd": "@BUILDDIR@"
97                                 },
98                                 "problemMatcher": [] // don't ask when manually running the task
99                         },
100                         {
101                                 "label": "remove profile-dir",
102                                 "detail": "removes the temporary user-profile directory",
103                                 "type": "shell",
104                                 "command": "rm",
105                                 "args": [
106                                         "-rf",
107                                         "@WORKDIR@/vs-code-temporary-user-profile"
108                                 ],
109                                 "group": "none",
110                                 "dependsOn": [
111                                         "full make"
112                                 ],
113                                 "options": {
114                                         "cwd": "@BUILDDIR@"
115                                 },
116                                 "problemMatcher": []
117                         }
118                 ]
119         },
120         "launch": {
121                 "configurations": [
122                         {
123                                 "name": "run in debugger after make",
124                                 "type": "cppdbg",
125                                 "request": "launch",
126                                 "program": "@INSTROOT@/program/soffice.bin",
127                                 "args": [],
128                                 "stopAtEntry": false,
129                                 "cwd": "@BUILDDIR@",
130                                 "environment": [
131                                         {
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"
137                                         }
138                                 ],
139                                 "externalConsole": false,
140                                 "MIMode": "gdb",
141                                 "setupCommands": [
142                                         {
143                                                 "description": "Enable pretty-printing for gdb",
144                                                 "text": "-enable-pretty-printing",
145                                                 "ignoreFailures": true
146                                         },
147                                         {
148                                                 "description": "Mark pretty-printers (in solenv/gdb) safe",
149                                                 "text": "add-auto-load-safe-path @INSTROOT@",
150                                                 "ignoreFailures": true
151                                         },
152                                         {
153                                                 "description": "Mark pretty-printers bootstrap (in instdir/program) safe",
154                                                 "text": "add-auto-load-safe-path @INSTROOT@",
155                                                 "ignoreFailures": true
156                                         },
157                                 ],
158                                 "linux": {
159                                         "miDebuggerPath": "gdb"
160                                 },
161                                 "osx": {
162                                         "program": "@INSTROOT@/MacOS/soffice",
163                                         "MIMode": "lldb",
164                                         "setupCommands": [
165                                                 {
166                                                         "description": "load helpers for lldb",
167                                                         "text": "command script import ${workspaceFolder:srcdir}/solenv/lldb/libreoffice/LO.py",
168                                                         "ignoreFailures": false
169                                                 }
170                                         ]
171                                 },
172                                 "preLaunchTask": "full make"
173                         },
174                         {
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",
180                                 "type": "cppdbg",
181                                 "request": "launch",
182                                 "program": "@INSTROOT@/program/soffice.bin",
183                                 "args": [
184                                         "-env:UserInstallation=file:///@WORKDIR@/vs-code-temporary-user-profile"
185                                 ],
186                                 "stopAtEntry": false,
187                                 "cwd": "@BUILDDIR@",
188                                 "environment": [
189                                         {
190                                                 "name": "SAL_LOG_DISABLED",
191                                                 "value": "+INFO.ucb+WARN"
192                                         }
193                                 ],
194                                 "externalConsole": false,
195                                 "MIMode": "gdb",
196                                 "setupCommands": [
197                                         {
198                                                 "description": "Enable pretty-printing for gdb",
199                                                 "text": "-enable-pretty-printing",
200                                                 "ignoreFailures": true
201                                         },
202                                         {
203                                                 "description": "Mark pretty-printers (in solenv/gdb) safe",
204                                                 "text": "add-auto-load-safe-path ${workspaceFolder:srcdir}",
205                                                 "ignoreFailures": true
206                                         },
207                                         {
208                                                 "description": "Mark pretty-printers bootstrap (in instdir/program) safe",
209                                                 "text": "add-auto-load-safe-path @INSTROOT@",
210                                                 "ignoreFailures": true
211                                         },
212                                 ],
213                                 "linux": {
214                                         "miDebuggerPath": "gdb"
215                                 },
216                                 "osx": {
217                                         "program": "@INSTROOT@/MacOS/soffice",
218                                         "MIMode": "lldb",
219                                         "setupCommands": [
220                                                 {
221                                                         "description": "load helpers for for lldb",
222                                                         "text": "command script import ${workspaceFolder:srcdir}/solenv/lldb/libreoffice/LO.py",
223                                                         "ignoreFailures": false
224                                                 }
225                                         ]
226                                 }
227                         }
228                 ],
229                 "compounds": []
230         }