Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public async getDatatip(
connection: LanguageClientConnection,
editor: TextEditor,
point: Point
): Promise {
const res = await super.getDatatip(connection, editor, point)
if (res) {
res.range = getWordAtPosition(editor, point)
}
return res
}
}