diff --git a/src/components/common/App/index.tsx b/src/components/common/App/index.tsx index 93bdf6bca..235f4c610 100644 --- a/src/components/common/App/index.tsx +++ b/src/components/common/App/index.tsx @@ -332,9 +332,7 @@ export const App = ({ theme, children, id }: AppProps) => { }; scope = newScope; - if (newScope.method?.methodId) { - setGlobalErrorsSearch(newScope.method?.methodId); - } + setGlobalErrorsSearch(newScope.context.payload.codeLens.codeMethod); } setScope(scope); diff --git a/src/components/common/App/types.ts b/src/components/common/App/types.ts index 8c15ac810..764fcb66a 100644 --- a/src/components/common/App/types.ts +++ b/src/components/common/App/types.ts @@ -57,14 +57,8 @@ export interface ScopeSpan { role: ScopeSpanRole | null; } -export interface MethodScope { - methodId: string; - displayName: string | null; -} - export interface Scope { span: ScopeSpan | null; - method?: MethodScope; code: { relatedCodeDetailsList: CodeDetails[]; codeDetailsList: CodeDetails[];