-
Is the logic for deciding what the triggering character was document somewhere? For a plugin I wrote it would be nice if the string I was able to bodge around this manually by registering both I poked around trying to find the logic for keyword/trigger detection but nothing immediately popped up. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yeah whenever we see a trigger character, we drop the existing context and create a new one, so there's no knowledge of the previous trigger character. This is by design to follow the LSP spec. I think for your case, having language specific keyword regexes (such as one that includes |
Beta Was this translation helpful? Give feedback.
Yeah whenever we see a trigger character, we drop the existing context and create a new one, so there's no knowledge of the previous trigger character. This is by design to follow the LSP spec. I think for your case, having language specific keyword regexes (such as one that includes
\
and^
) could work around this: #1599 (comment)