Break changes on 0.0.80 master branch #3530
chemzqm
started this conversation in
Show and tell
Replies: 1 comment
-
:h CocAction('codeActionRange')
<plug>(coc-fix-current) is recommended, which helps to fix diagnostic on
current line.
Tom MacWright ***@***.***> 于2022年5月31日周二 22:06写道:
… Thanks for all the amazing work on this plugin! I'm a little confused by
part of this. I was previously relying heavily on :CocFix, which would
pop up options for, for example, adding an import for a new variable. I've
tried all of the proposed replacements and none of them do quite that -
when they do a quickfix, there's no menu of options.
Is there a close to one-to-one replacement to CocFix, or one of those
options that aims to be sort of similar?
—
Reply to this email directly, view it on GitHub
<#3530 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB5MOWFKRBV765RXDGGARLVMYMG7ANCNFSM5KZ6IUVA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Break changes introduced on 0.0.80 you may need to notice:
Completion on backspace support are removed, since we don't know whether the character is removed by
<backspace>
or<C-e>
, you could manually trigger completion by invokecoc#refresh()
7f5cf02On type format won't work after
InsertEnter
, it was introduced to help format the line just added when user typeO
oro
, but there're cases that we should avoid format after lines changed (ex: user typed$
to delete the whole line). The suggestion is use vim's indentation mechanism like'indentexpr'
for indent new lines. 4edbd90Consider main filetype for multiple filetypes, buffer filetype that have dot like
html.swag
will now have languageId set tohtml
, this makes html language server just works for that buffer. Following features would be affected: 54447aconLanguage
field ofactivationEvents
in extension's package.json matches main filetype.filetype
field ofcontributes => rootPatterns
in extension's package.json matches main filetype.languageId
property.languageId
.filetypes
config matches for main filetype and sub filetype.g:coc_sources_disable_map support is removed, use variable
b:coc_disabled_sources
instead.codeLens.separator
now defaults to""
and will be placed above lines on neovim >= 0.6.0Configuration
coc.preferences.colorSupport
is removed, usecolors.filetypes
to enable colors for specific buffer.Removed deprecated method
workspace.resolveRootFolder
Semantic highlights changed to disabled by default configuration
coc.preferences.semanticTokensHighlights
is removed , usesemanticTokens.filetypes
to enable semantic tokens.Prefix of semantic tokens highlight groups changed from
CocSem_
toCocSem
.Remove configuration
suggest.numberSelect
, no such support anymore.Remove configurations
disableDiagnostics
disableCompletion
anddisableWorkspaceFolders
from language server configuration, usedisabledFeatures
instead.Change
:CocLocalConfig
open configuration file of current workspace folder.Change workspace configuration now throw error when workspace folder can't be resolved.
workspace.onDidChangeTextDocument
possible emit event withcontentChanges
as empty array, some extensions may broken.Change
list.matchHighlightGroup
default toCocSearch
instead ofSearch
which is a blue color by default.Removed command
CocFix
andCocAction
(could be confused for some users, and they're not quite useful), use<Plug>(coc-codeaction-selected)
,<Plug>(coc-codeaction-cursor)
and<Plug>(coc-fix-current)
is recommended, or create the command by use functionCocActionAsync('codeActionRange',...)
Beta Was this translation helpful? Give feedback.
All reactions