mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 03:06:00 +00:00
code completion context is only current query
This commit is contained in:
@@ -39,7 +39,12 @@
|
||||
$: effect = useEffect(() => {
|
||||
const editor = domEditor?.getEditor();
|
||||
if ($tabVisible && conid && database && !readOnly && editor) {
|
||||
return mountCodeCompletion({ conid, database, editor });
|
||||
return mountCodeCompletion({
|
||||
conid,
|
||||
database,
|
||||
editor,
|
||||
getText: () => domEditor.getCodeCompletionCommandText(),
|
||||
});
|
||||
}
|
||||
return () => {};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user