diff --git a/services/web/frontend/js/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.js b/services/web/frontend/js/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.js index 61a9021439..cbc7fa7983 100644 --- a/services/web/frontend/js/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.js +++ b/services/web/frontend/js/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.js @@ -105,7 +105,11 @@ define([ const commandName = match[1] const result = [] for (let file of Files.getTeXFiles()) { - if (file.id !== this.$scope.docId) { + if ( + file.id !== this.$scope.docId && + !file.deleted && + file.path + ) { const { path } = file let cleanPath = path.replace(/(.+)\.tex$/i, '$1') result.push({