Feature: global search, keyboard shortcuts / hotkey support (#6449)
This commit is contained in:
@@ -90,6 +90,10 @@ export class OpenDocumentsService {
|
||||
return this.dirtyDocuments.size > 0
|
||||
}
|
||||
|
||||
isDirty(doc: Document): boolean {
|
||||
return this.dirtyDocuments.has(doc.id)
|
||||
}
|
||||
|
||||
closeDocument(doc: Document): Observable<boolean> {
|
||||
let index = this.openDocuments.findIndex((d) => d.id == doc.id)
|
||||
if (index == -1) return of(true)
|
||||
|
||||
Reference in New Issue
Block a user