diff --git a/src/plugins/console/public/lib/autocomplete/autocomplete.ts b/src/plugins/console/public/lib/autocomplete/autocomplete.ts index d89a9f3d2e5e2..d22f7796ba48d 100644 --- a/src/plugins/console/public/lib/autocomplete/autocomplete.ts +++ b/src/plugins/console/public/lib/autocomplete/autocomplete.ts @@ -930,8 +930,8 @@ export default function ({ } if ( - lastEvaluatedToken.position.column !== currentToken.position.column || - lastEvaluatedToken.position.lineNumber !== currentToken.position.lineNumber || + (lastEvaluatedToken.position.column !== currentToken.position.column || + lastEvaluatedToken.position.lineNumber !== currentToken.position.lineNumber) && lastEvaluatedToken.value === currentToken.value ) { // not on the same place or nothing changed, cache and wait for the next time diff --git a/src/plugins/console/public/lib/autocomplete/components/url_pattern_matcher.js b/src/plugins/console/public/lib/autocomplete/components/url_pattern_matcher.js index 24cc510f65acf..b2ddbd2d9d8d1 100644 --- a/src/plugins/console/public/lib/autocomplete/components/url_pattern_matcher.js +++ b/src/plugins/console/public/lib/autocomplete/components/url_pattern_matcher.js @@ -115,6 +115,7 @@ export class UrlPatternMatcher { } getTopLevelComponents = function (method) { + method = method.toUpperCase(); const methodRoot = this[method]; if (!methodRoot) { return [];