Skip to content

Commit

Permalink
Fix autocomplete suggestions for lowercase methods and other related bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Ibragimov committed Dec 13, 2021
1 parent c4e8cb3 commit 87585dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/console/public/lib/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export class UrlPatternMatcher {
}

getTopLevelComponents = function (method) {
method = method.toUpperCase();
const methodRoot = this[method];
if (!methodRoot) {
return [];
Expand Down

0 comments on commit 87585dd

Please sign in to comment.