Skip to content

Commit

Permalink
Fixes #18 - trigger autocomplete regardless after @@ regardless of th…
Browse files Browse the repository at this point in the history
…e following symbols
  • Loading branch information
roman-r-m committed Mar 21, 2024
1 parent 21692bc commit 241087e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contentScript/codeMirror5Plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default function codeMirror5Plugin(context: PluginContext, CodeMirror: an
if (!value) return;

cm.on('inputRead', async function (cm1, change) {
if (!cm1.state.completionActive && cm.getTokenAt(cm.getCursor()).string === '@@') {
if (!cm1.state.completionActive && cm.getTokenAt(cm.getCursor()).string.startsWith('@@')) {
const start = {line: change.from.line, ch: change.from.ch + 1};

const hint = function(cm, callback) {
Expand Down

0 comments on commit 241087e

Please sign in to comment.