From 96622e30e317156018a2a4c0f41095a87058d6ac Mon Sep 17 00:00:00 2001 From: Muhammad Ibragimov Date: Mon, 13 Dec 2021 15:52:56 +0500 Subject: [PATCH] Uppercase method --- src/plugins/console/public/lib/autocomplete/autocomplete.ts | 2 +- .../public/lib/autocomplete/components/url_pattern_matcher.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/console/public/lib/autocomplete/autocomplete.ts b/src/plugins/console/public/lib/autocomplete/autocomplete.ts index d22f7796ba48d..08efd1152da8a 100644 --- a/src/plugins/console/public/lib/autocomplete/autocomplete.ts +++ b/src/plugins/console/public/lib/autocomplete/autocomplete.ts @@ -802,7 +802,7 @@ export default function ({ function addPathAutoCompleteSetToContext(context: AutoCompleteContext, pos: Position) { const ret = getCurrentMethodAndTokenPaths(editor, pos, parser); - context.method = ret.method; + context.method = ret.method?.toUpperCase(); context.token = ret.token; context.otherTokenValues = ret.otherTokenValues; context.urlTokenPath = ret.urlTokenPath; 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 b2ddbd2d9d8d1..24cc510f65acf 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,7 +115,6 @@ export class UrlPatternMatcher { } getTopLevelComponents = function (method) { - method = method.toUpperCase(); const methodRoot = this[method]; if (!methodRoot) { return [];