Mercurial > vim
annotate runtime/ftplugin/cs.vim @ 34349:835fc06c4547 v9.1.0107
patch 9.1.0107: CI: Fix MacOS-14 tests
Commit: https://github.com/vim/vim/commit/49f2ba6d41d3c6142deaa4a50b0b16e03969a904
Author: Yee Cheng Chin <ychin.git@gmail.com>
Date: Wed Feb 14 20:34:58 2024 +0100
patch 9.1.0107: CI: Fix MacOS-14 tests
Problem: CI: Fix MacOS-14 tests (after 9.1.0070)
Solution: Re-enable sound tests by granting Mic access,
disable Test_diff_screen because of buggy MacOS diff
(non GNU version), re-enable Test_term_gettitle()
(Yee Cheng Chin)
macos-14 runner was turned on in #13943, but it had to turn off a few
tests in order for CI to run. Re-enable them and fix the underlying
issues.
* `Test_diff_screen`: The test failure is due to a bug in Apple's diff
utility. Apple introduced a new diff tool based on FreeBSD in macOS 13
and it has buggy behaviors when using unified diff (`-U0`) and the
diff is on the first line of the file. Simply disable this test for
now if we detect Apple diff (instead of the old GNU diff). Can
re-enable this in the future if Apple fixes the issue.
* `Test_play_event` / `Test_play_silent`: GitHub Actions currently has
an issue with playing sound in CI in macos-14 runners. It for some
reason triggers a microphone permission dialog popup which blocks the
CI action (see https://github.com/actions/runner-images/issues/9330).
To fix this, add a temporary step in macos-14 to manually allow
microphone permissions in the runner.
* `Test_term_gettitle`: I could not reproduce the failure, so I just
turned it on and it seems to run just fine. Maybe it's a timing issue
and whatnot but either way that should be fixed when we can reproduce
the issue.
closes: #14032
Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 14 Feb 2024 20:45:07 +0100 |
parents | 8ae680be2a51 |
children |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file |
29104 | 2 " Language: C# |
3 " Maintainer: Nick Jensen <nickspoon@gmail.com> | |
4 " Former Maintainer: Johannes Zellner <johannes@zellner.org> | |
31383 | 5 " Last Change: 2022-11-16 |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
31383
diff
changeset
|
6 " 2024 Jan 14 by Vim Project (browsefilter) |
29104 | 7 " License: Vim (see :h license) |
8 " Repository: https://github.com/nickspoons/vim-cs | |
7 | 9 |
29104 | 10 if exists('b:did_ftplugin') |
7 | 11 finish |
12 endif | |
29104 | 13 let b:did_ftplugin = 1 |
7 | 14 |
29104 | 15 let s:save_cpo = &cpoptions |
16 set cpoptions&vim | |
7 | 17 |
18 " Set 'formatoptions' to break comment lines but not other lines, | |
19 " and insert the comment leader when hitting <CR> or using "o". | |
29104 | 20 setlocal formatoptions-=t formatoptions+=croql |
7 | 21 |
22 " Set 'comments' to format dashed lists in comments. | |
23 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,:// | |
24 | |
29104 | 25 let b:undo_ftplugin = 'setl com< fo<' |
26 | |
27 if exists('loaded_matchit') && !exists('b:match_words') | |
28 " #if/#endif support included by default | |
31383 | 29 let b:match_ignorecase = 0 |
29104 | 30 let b:match_words = '\%(^\s*\)\@<=#\s*region\>:\%(^\s*\)\@<=#\s*endregion\>,' |
31383 | 31 let b:undo_ftplugin .= ' | unlet! b:match_ignorecase b:match_words' |
7 | 32 endif |
3526
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
233
diff
changeset
|
33 |
29104 | 34 if (has('gui_win32') || has('gui_gtk')) && !exists('b:browsefilter') |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
31383
diff
changeset
|
35 let b:browsefilter = "C# Source Files (*.cs, *.csx)\t*.cs;*.csx\n" . |
29104 | 36 \ "C# Project Files (*.csproj)\t*.csproj\n" . |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
31383
diff
changeset
|
37 \ "Visual Studio Solution Files (*.sln)\t*.sln\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
31383
diff
changeset
|
38 if has("win32") |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
31383
diff
changeset
|
39 let b:browsefilter ..= "All Files (*.*)\t*\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
31383
diff
changeset
|
40 else |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
31383
diff
changeset
|
41 let b:browsefilter ..= "All Files (*)\t*\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
31383
diff
changeset
|
42 endif |
29104 | 43 let b:undo_ftplugin .= ' | unlet! b:browsefilter' |
44 endif | |
45 | |
46 let &cpoptions = s:save_cpo | |
47 unlet s:save_cpo | |
48 | |
49 " vim:et:sw=2:sts=2 |