mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 03:23:10 +00: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:
parent
cae6cf6efa
commit
3b70e080b1
1 changed files with 5 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue