MCPcopy Create free account
hub / github.com/cs01/gdbgui / componentDidUpdate

Method componentDidUpdate

gdbgui/src/js/SourceCode.tsx:68–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 }
67
68 componentDidUpdate() {
69 let source_is_displayed =
70 this.state.source_code_state === constants.source_code_states.SOURCE_CACHED ||
71 this.state.source_code_state ===
72 constants.source_code_states.ASSM_AND_SOURCE_CACHED;
73 if (source_is_displayed) {
74 if (this.state.make_current_line_visible) {
75 let success = SourceCode.make_current_line_visible();
76 if (success) {
77 store.set("make_current_line_visible", false);
78 }
79 }
80 }
81 }
82
83 get_body() {
84 const states = constants.source_code_states;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected