Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go里面不使用补全的话会被自动添加多余的字符 #123

Closed
stepdc opened this issue May 20, 2022 · 9 comments
Closed

go里面不使用补全的话会被自动添加多余的字符 #123

stepdc opened this issue May 20, 2022 · 9 comments

Comments

@stepdc
Copy link

stepdc commented May 20, 2022

20220520171345-convert

直接敲 make 会被自动补全成 makemak

@manateelazycat
Copy link
Owner

好的,晚上看看

@zy9306
Copy link
Contributor

zy9306 commented May 20, 2022

我这边有类似现象,但不能稳定重现

@manateelazycat
Copy link
Owner

(when (memq status '(finished exact))

这个地方的 status 值是什么?

(let* ((newest-candidates (lsp-bridge-extract-candidates))

这个地方 let* 里面所有的值都打印出来。

当你遇到上面问题的时候,请提供一下上面两个问题的日志,应该是有线索修复的,我目前 golang 的补全还没法工作,没法本地测试。

@manateelazycat
Copy link
Owner

我早上把 golang 环境配置了一下,没有重现出来。

@manateelazycat
Copy link
Owner

@stepdc @zy9306 更新尝试一下。

jixiuf pushed a commit to jixiuf/lsp-bridge that referenced this issue May 21, 2022
@stepdc
Copy link
Author

stepdc commented May 21, 2022

更新到最新了还是可以复现,我重新创建了一个 .emacs.d

emacs: brew install emacs-plus@28 --with-native-comp

配置:

(add-to-list 'load-path "/Users/bgd/.emacs.d/site-lisp/lsp-bridge")

(require 'yasnippet)
(require 'lsp-bridge)             ;; load lsp-bridge
;;(require 'lsp-bridge-jdtls)       ;; provide Java third-party library jump and -data directory support, optional
(yas-global-mode 1)

;; For corfu users:
(setq lsp-bridge-completion-provider 'corfu)
(require 'corfu)
(require 'corfu-info)
(require 'corfu-history)
(require 'lsp-bridge-icon)        ;; show icons for completion items, optional
(require 'lsp-bridge-orderless)   ;; make lsp-bridge support fuzzy match, optional
(global-corfu-mode)               ;; use corfu as completion ui
(corfu-history-mode t)
(global-lsp-bridge-mode)

安装的包:

~/.e/elpa » ls
all-the-icons-20220427.1911  corfu-0.24     markdown-mode-2.5  posframe-1.1.7
archives                     go-mode-1.6.0  orderless-0.7      yasnippet-0.14.0

打印值:

"memq status status: finished "

"newest-candidates:"

(#("append" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(slice[]Type,elems...Type)[]Type" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "append(${1:slice []Type}, ${2:elems ...Type})")))) #("bool" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "bool")))) #("byte" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "byte")))) #("cap" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(vType)int" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "cap(${1:v Type})")))) #("close" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(cchan<-Type)" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "close(${1:c chan<- Type})")))) #("complex" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(rfloat64,ifloat64)complex128" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "complex(${1:r float64}, ${2:i float64})")))) #("complex128" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "complex128")))) #("complex64" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "complex64")))) #("copy" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(dst[]Type,src[]Type)int" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "copy(${1:dst []Type}, ${2:src []Type})")))) #("delete" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(mmap[Type]Type1,keyType)" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "delete(${1:m map[Type]Type1}, ${2:key Type})")))) #("error" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Interface" :annotation "Interface" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "error")))) #("false" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Constant" :annotation "Constant" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "false")))) #("float32" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "float32")))) #("float64" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "float64")))) #("imag" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(ccomplex128)float64" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "imag(${1:c complex128})")))) #("int" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "int")))) #("int16" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "int16")))) #("int32" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "int32")))) #("int64" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "int64")))) #("int8" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "int8")))) #("len" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(vType)int" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "len(${1:v Type})")))) #("make" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(tType,size...int)Type" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "make(${1:t Type}, ${2:size ...int})")))) #("new" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(Type)*Type" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "new(${1:Type})")))) #("panic" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(vany)" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "panic(${1:v any})")))) #("print" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(args...Type)" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "print(${1:args ...Type})")))) #("println" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(args...Type)" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "println(${1:args ...Type})")))) #("real" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(ccomplex128)float64" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "real(${1:c complex128})")))) #("recover" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func()any" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "recover()")))) #("rune" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "rune")))) #("string" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "string")))) #("true" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Constant" :annotation "Constant" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "true")))) #("uint" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "uint")))) #("uint16" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "uint16")))) #("uint32" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "uint32")))) #("uint64" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "uint64")))) #("uint8" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "uint8")))) #("uintptr" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "uintptr")))) #("main" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func()" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "main()")))) #("nil" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Variable" :annotation "Variable" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "nil")))))

"item:"

(:label #("make" 0 1 (lsp-bridge--lsp-item #0)) :tags nil :insertText nil :kind "Function" :annotation "func(tType,size...int)Type" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "make(${1:t Type}, ${2:size ...int})"))

"label:"

#("make" 0 1 (lsp-bridge--lsp-item (:label #0 :tags nil :insertText nil :kind "Function" :annotation "func(tType,size...int)Type" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "make(${1:t Type}, ${2:size ...int})"))))

"insert-text:"

nil

"insert-text-format:"

2

"textEdit:"

(:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "make(${1:t Type}, ${2:size ...int})")

"additionalTextEdits:"

nil

"kind:"

"Function"

"markers:"

(38 #<marker (moves after insertion) at 42 in main.go>)

"snippet-fn:"

yas-expand-snippet

Auto-saving...done
previous-line: Beginning of buffer [3 times]
Mark set

现在也不是每次都会复现了:
20220521132150

@stepdc
Copy link
Author

stepdc commented May 21, 2022

下面的是 0cd130 的打印:

[yas] Prepared just-in-time loading of snippets (but no snippets found).
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
main.go has auto save data; consider M-x recover-this-file
[LSP-Bridge] Start LSP server (gopls) for /Users/bgd/play/sine/main.go...
[LSP-Bridge] Start LSP server (gopls) for /Users/bgd/play/sine/main.go complete, enjoy hacking!

"memq status status: finished "

Error in post-command-hook (corfu--post-command): (args-out-of-range 0 0)
byte-code: The mark is not set now, so there is no region

"memq status status: finished "

"newest-candidates:"

(#("append" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(slice[]Type,elems...Type)[]Type" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "append(${1:})")))) #("bool" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "bool")))) #("byte" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "byte")))) #("cap" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(vType)int" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "cap(${1:})")))) #("close" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(cchan<-Type)" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "close(${1:})")))) #("complex" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(rfloat64,ifloat64)complex128" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "complex(${1:})")))) #("complex128" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "complex128")))) #("complex64" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "complex64")))) #("copy" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(dst[]Type,src[]Type)int" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "copy(${1:})")))) #("delete" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(mmap[Type]Type1,keyType)" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "delete(${1:})")))) #("error" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Interface" :annotation "Interface" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "error")))) #("false" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Constant" :annotation "Constant" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "false")))) #("float32" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "float32")))) #("float64" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "float64")))) #("imag" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(ccomplex128)float64" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "imag(${1:})")))) #("int" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "int")))) #("int16" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "int16")))) #("int32" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "int32")))) #("int64" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "int64")))) #("int8" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "int8")))) #("len" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(vType)int" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "len(${1:})")))) #("make" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(tType,size...int)Type" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "make(${1:})")))) #("new" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(Type)*Type" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "new(${1:})")))) #("panic" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(vany)" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "panic(${1:})")))) #("print" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(args...Type)" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "print(${1:})")))) #("println" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(args...Type)" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "println(${1:})")))) #("real" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func(ccomplex128)float64" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "real(${1:})")))) #("recover" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func()any" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "recover()")))) #("rune" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "rune")))) #("string" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "string")))) #("true" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Constant" :annotation "Constant" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "true")))) #("uint" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "uint")))) #("uint16" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "uint16")))) #("uint32" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "uint32")))) #("uint64" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "uint64")))) #("uint8" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "uint8")))) #("uintptr" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Class" :annotation "Class" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "uintptr")))) #("main" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Function" :annotation "func()" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "main()")))) #("nil" 0 1 (lsp-bridge--lsp-item (:label #1 :tags nil :insertText nil :kind "Variable" :annotation "Variable" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "nil")))))

"item:"

(:label #("make" 0 1 (lsp-bridge--lsp-item #0)) :tags nil :insertText nil :kind "Function" :annotation "func(tType,size...int)Type" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "make(${1:})"))

"label:"

#("make" 0 1 (lsp-bridge--lsp-item (:label #0 :tags nil :insertText nil :kind "Function" :annotation "func(tType,size...int)Type" :insertTextFormat 2 :textEdit (:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "make(${1:})"))))

"insert-text:"

nil

"insert-text-format:"

2

"textEdit:"

(:range (:start (:line 3 :character 9) :end (:line 3 :character 9)) :newText "make(${1:})")

"additionalTextEdits:"

nil

"kind:"

"Function"

"markers:"

(38 #<marker (moves after insertion) at 42 in main.go>)

"snippet-fn:"

yas-expand-snippet

Auto-saving...

@manateelazycat
Copy link
Owner

我可以重现了

manateelazycat added a commit that referenced this issue May 21, 2022
… use lsp-bridge-prefix instead prefix hacking in capf function.
@manateelazycat
Copy link
Owner

补丁 302faf1 已经修复这个问题了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants