windows signing: use sha256 (instead of the default sha1)
[LibreOffice.git] / .vscode / vs-code-template.code-workspace.in
blobf6078155e8dcd104a5af0143e650ee3b4ec78e66
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                 // 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/"
45                 ],
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",
52                 "editor.rulers": [
53                         100
54                 ],
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": [
59                         {
60                                 "prefix": "tdf#",
61                                 "url": "https://bugs.documentfoundation.org/show_bug.cgi?id=<num>"
62                         }
63                 ]
64         },
65         "tasks": {
66                 "version": "2.0.0",
67                 "tasks": [
68                         {
69                                 "label": "full make",
70                                 "detail": "runs make in builddir to update everything",
71                                 "type": "shell",
72                                 "command": "make",
73                                 "group": {
74                                         "kind": "build",
75                                         "isDefault": true
76                                 },
77                                 "options": {
78                                         "cwd": "@BUILDDIR@"
79                                 }
80                         },
81                         {
82                                 "label": "create compile-commands.json",
83                                 "detail": "runs make vim-ide-integration to create the compile-commands.json file",
84                                 "type": "shell",
85                                 "command": "make",
86                                 "args": [
87                                         "vim-ide-integration"
88                                 ],
89                                 "group": "build",
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…
93                                 "dependsOn": [
94                                         "full make"
95                                 ],
96                                 "options": {
97                                         "cwd": "@BUILDDIR@"
98                                 },
99                                 "problemMatcher": [] // don't ask when manually running the task
100                         },
101                         {
102                                 "label": "remove profile-dir",
103                                 "detail": "removes the temporary user-profile directory",
104                                 "type": "shell",
105                                 "command": "rm",
106                                 "args": [
107                                         "-rf",
108                                         "@WORKDIR@/vs-code-temporary-user-profile"
109                                 ],
110                                 "group": "none",
111                                 "dependsOn": [
112                                         "full make"
113                                 ],
114                                 "options": {
115                                         "cwd": "@BUILDDIR@"
116                                 },
117                                 "problemMatcher": []
118                         }
119                 ]
120         },
121         "launch": {
122                 "configurations": [
123                         {
124                                 "name": "run in debugger after make",
125                                 "type": "cppdbg",
126                                 "request": "launch",
127                                 "program": "@INSTROOT@/program/soffice.bin",
128                                 "args": [],
129                                 "stopAtEntry": false,
130                                 "cwd": "@BUILDDIR@",
131                                 "environment": [
132                                         {
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"
138                                         }
139                                 ],
140                                 "externalConsole": false,
141                                 "MIMode": "gdb",
142                                 "setupCommands": [
143                                         {
144                                                 "description": "Enable pretty-printing for gdb",
145                                                 "text": "-enable-pretty-printing",
146                                                 "ignoreFailures": true
147                                         },
148                                         {
149                                                 "description": "Mark pretty-printers (in solenv/gdb) safe",
150                                                 "text": "add-auto-load-safe-path @INSTROOT@",
151                                                 "ignoreFailures": true
152                                         },
153                                         {
154                                                 "description": "Mark pretty-printers bootstrap (in instdir/program) safe",
155                                                 "text": "add-auto-load-safe-path @INSTROOT@",
156                                                 "ignoreFailures": true
157                                         },
158                                 ],
159                                 "linux": {
160                                         "miDebuggerPath": "gdb"
161                                 },
162                                 "osx": {
163                                         "program": "@INSTROOT@/MacOS/soffice",
164                                         "MIMode": "lldb",
165                                         "setupCommands": [
166                                                 {
167                                                         "description": "load helpers for lldb",
168                                                         "text": "command script import ${workspaceFolder:srcdir}/solenv/lldb/libreoffice/LO.py",
169                                                         "ignoreFailures": false
170                                                 }
171                                         ]
172                                 },
173                                 "preLaunchTask": "full make"
174                         },
175                         {
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",
181                                 "type": "cppdbg",
182                                 "request": "launch",
183                                 "program": "@INSTROOT@/program/soffice.bin",
184                                 "args": [
185                                         "-env:UserInstallation=file:///@WORKDIR@/vs-code-temporary-user-profile"
186                                 ],
187                                 "stopAtEntry": false,
188                                 "cwd": "@BUILDDIR@",
189                                 "environment": [
190                                         {
191                                                 "name": "SAL_LOG_DISABLED",
192                                                 "value": "+INFO.ucb+WARN"
193                                         }
194                                 ],
195                                 "externalConsole": false,
196                                 "MIMode": "gdb",
197                                 "setupCommands": [
198                                         {
199                                                 "description": "Enable pretty-printing for gdb",
200                                                 "text": "-enable-pretty-printing",
201                                                 "ignoreFailures": true
202                                         },
203                                         {
204                                                 "description": "Mark pretty-printers (in solenv/gdb) safe",
205                                                 "text": "add-auto-load-safe-path ${workspaceFolder:srcdir}",
206                                                 "ignoreFailures": true
207                                         },
208                                         {
209                                                 "description": "Mark pretty-printers bootstrap (in instdir/program) safe",
210                                                 "text": "add-auto-load-safe-path @INSTROOT@",
211                                                 "ignoreFailures": true
212                                         },
213                                 ],
214                                 "linux": {
215                                         "miDebuggerPath": "gdb"
216                                 },
217                                 "osx": {
218                                         "program": "@INSTROOT@/MacOS/soffice",
219                                         "MIMode": "lldb",
220                                         "setupCommands": [
221                                                 {
222                                                         "description": "load helpers for for lldb",
223                                                         "text": "command script import ${workspaceFolder:srcdir}/solenv/lldb/libreoffice/LO.py",
224                                                         "ignoreFailures": false
225                                                 }
226                                         ]
227                                 }
228                         }
229                 ],
230                 "compounds": []
231         }