MCPcopy Create free account
hub / github.com/Exafunction/codeium-chrome / clearCompletion

Method clearCompletion

src/codemirror.ts:168–187  ·  view source on GitHub ↗
(reason: string)

Source from the content-addressed store, hash-verified

166 }
167
168 clearCompletion(reason: string): boolean {
169 const currentCompletion = this.currentCompletion;
170 if (currentCompletion === undefined) {
171 return false;
172 }
173 if (CODEIUM_DEBUG) {
174 console.log('Clearing completions because', reason);
175 }
176 currentCompletion.disposables.forEach((disposable) => {
177 disposable.dispose();
178 });
179 currentCompletion.lineWidgets.forEach((widget) => {
180 widget.clear();
181 });
182 currentCompletion.textMarkers.forEach((marker) => {
183 marker.marker.clear();
184 });
185 this.currentCompletion = undefined;
186 return true;
187 }
188
189 renderCompletion(
190 doc: CodeMirror.Doc,

Callers 5

triggerCompletionMethod · 0.95
renderCompletionMethod · 0.95
acceptCompletionMethod · 0.95
beforeMainKeyHandlerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected