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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
29104
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
2 " Language: C#
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
3 " Maintainer: Nick Jensen <nickspoon@gmail.com>
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
4 " Former Maintainer: Johannes Zellner <johannes@zellner.org>
31383
15c80d8bc515 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29104
diff changeset
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
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
7 " License: Vim (see :h license)
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
8 " Repository: https://github.com/nickspoons/vim-cs
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
29104
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
10 if exists('b:did_ftplugin')
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
29104
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
13 let b:did_ftplugin = 1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
29104
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
15 let s:save_cpo = &cpoptions
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
16 set cpoptions&vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Set 'formatoptions' to break comment lines but not other lines,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " and insert the comment leader when hitting <CR> or using "o".
29104
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
20 setlocal formatoptions-=t formatoptions+=croql
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " Set 'comments' to format dashed lists in comments.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
29104
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
25 let b:undo_ftplugin = 'setl com< fo<'
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
26
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
27 if exists('loaded_matchit') && !exists('b:match_words')
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
28 " #if/#endif support included by default
31383
15c80d8bc515 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29104
diff changeset
29 let b:match_ignorecase = 0
29104
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
30 let b:match_words = '\%(^\s*\)\@<=#\s*region\>:\%(^\s*\)\@<=#\s*endregion\>,'
31383
15c80d8bc515 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29104
diff changeset
31 let b:undo_ftplugin .= ' | unlet! b:match_ignorecase b:match_words'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 endif
3526
dd6c2497c997 Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents: 233
diff changeset
33
29104
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
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
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
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
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
43 let b:undo_ftplugin .= ' | unlet! b:browsefilter'
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
44 endif
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
45
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
46 let &cpoptions = s:save_cpo
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
47 unlet s:save_cpo
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
48
c58baa6d6dda Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3526
diff changeset
49 " vim:et:sw=2:sts=2