We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const completionItems: languages.CompletionItem[] = unwrappedCompletions.map( (item) => ({ ...item, insertText: item.insertText ?? (typeof item.label === 'string' ? item.label : item.label.label), range: item.range ?? wordRange, insertTextRules: item.insertTextRules ?? languages.CompletionItemInsertTextRule.InsertAsSnippet }) );
monaco-editor 中没有设置 insertTextRules 的默认值,加上的话会需要在使用的地方明确传入 insertTextRules 的值,否则可能产生不明就里的问题,比如禅道 #81899。
monaco-editor
insertTextRules
补全表名时,表名含有 $ 特殊字符,此时就需要明确 insertTextRules 的值为 KeepWhitespace;对于函数名含有 $ 特殊字符时,需要对函数名中的 $ 字符进行转义 (\\$) 处理,insertTextRules 的值依旧为 InsertAsSnippet
$
KeepWhitespace
\\$
InsertAsSnippet
The text was updated successfully, but these errors were encountered:
建议把默认值去掉 这里写成这个默认值,导致Monaco SQL Languages 的补全项的默认行为与 Monaco 原生 API的行为不同,
Sorry, something went wrong.
fix: DTStack#132 optimize provideCompletionItems insertTextRules
0f189c6
802f4cd
liuxy0551
No branches or pull requests
monaco-editor
中没有设置insertTextRules
的默认值,加上的话会需要在使用的地方明确传入insertTextRules
的值,否则可能产生不明就里的问题,比如禅道 #81899。补全表名时,表名含有
$
特殊字符,此时就需要明确insertTextRules
的值为KeepWhitespace
;对于函数名含有$
特殊字符时,需要对函数名中的$
字符进行转义 (\\$
) 处理,insertTextRules
的值依旧为InsertAsSnippet
The text was updated successfully, but these errors were encountered: