Closed
Description
I am trying to implement emmet
functionality inside typescript template literals however there's a strange behavior regarding getCompletionsAtPosition. with the following code from the demo completions aren't triggered if the position is after the number
div*5
div*5>li
public getCompletionsAtPosition(context: TemplateContext, position: LineAndCharacter):
CompletionInfo {
const line = context.text.split(/\n/g)[position.line]
return {
isGlobalCompletion: false,
isMemberCompletion: false,
isNewIdentifierLocation: false,
entries: [
{
name: line,
kind: '',
kindModifiers: 'echo',
sortText: 'echo'
}
]
} as CompletionInfo
}
To replicate, just use the demo EchoServer and test with emmet abbreviations above.
Metadata
Metadata
Assignees
Labels
No labels