mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02:00
Merge pull request #2601 from overleaf/jpa-hotfix-autocomplete-deleted-docs
[autocomplete] ignore deleted docs for completion GitOrigin-RevId: 9f39bbb90d443e7a1691ff5558742e4d12f4eb4d
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user