Fix off by one issue for getting endpoint for opening docs and tracking (#56364)

Fix security docs
This commit is contained in:
Jean-Louis Leysens 2020-01-30 16:00:42 +01:00 committed by GitHub
parent 2d3a656b75
commit 6bc9cde843
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 2 deletions

View file

@ -30,7 +30,10 @@ export function getEndpointFromPosition(editor: CoreEditor, pos: Position, parse
const context = {
...getCurrentMethodAndTokenPaths(
editor,
{ column: lineValue.length, lineNumber: pos.lineNumber },
{
column: lineValue.length + 1 /* Go to the very end of the line */,
lineNumber: pos.lineNumber,
},
parser,
true
),

View file

@ -12,7 +12,7 @@
"POST"
],
"patterns": [
"_security/privilege/"
"_security/privilege"
],
"documentation": "TODO"
}

View file

@ -1,3 +1,5 @@
{
"security.delete_privileges": {
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-privilege.html"
}
}

View file

@ -1,3 +1,5 @@
{
"security.put_privileges": {
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html"
}
}