Mercurial > vim-crosoft
annotate compiler/vimcrosoftsln.vim @ 15:cfcac4ed7d21 default tip
Improve loading of solution files
- New argument to force a rebuild of the cache
- Gracefully handle missing projects in a solution
- Handle more different xml namespaces
- Support more edge cases
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 29 Aug 2023 12:59:54 -0700 |
parents | 096e80c13781 |
children |
rev | line source |
---|---|
0 | 1 " Compiler file for Visual Studio |
2 " Compiler: Visual Studio | |
3 " Maintainer: Ludovic Chabant <https://ludovic.chabant.com> | |
4 | |
5 if exists("current_compiler") | |
6 finish | |
7 endif | |
8 let current_compiler = "vimcrosoftsln" | |
9 | |
10 let s:keepcpo = &cpo | |
11 | |
12 let s:prgargs = '' | |
13 if !empty(g:vimcrosoft_temp_compiler_args__) | |
14 let s:tmpargs = map( | |
15 \copy(g:vimcrosoft_temp_compiler_args__), | |
16 \{idx, val -> escape(val, ' \"')}) | |
17 let s:prgargs = '\ '.join(s:tmpargs, '\ ') | |
18 endif | |
19 | |
20 let s:prgcmdline = fnameescape('"'.g:vimcrosoft_msbuild_path.'"').s:prgargs | |
21 call vimcrosoft#trace("Setting makeprg to: ".s:prgcmdline) | |
22 execute "CompilerSet makeprg=".s:prgcmdline | |
23 | |
24 CompilerSet errorformat& | |
11
096e80c13781
Use the correct documentation extension.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
25 "execute "CompilerSet errorformat=".vimcrosoft#get_msbuild_errorformat() |
096e80c13781
Use the correct documentation extension.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
26 "echom "Set errorformat!" |
096e80c13781
Use the correct documentation extension.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
27 "echom &errorformat |
0 | 28 |
29 let &cpo = s:keepcpo | |
30 unlet s:keepcpo | |
31 |