diff options
| author | João Távora | 2024-04-18 08:03:10 -0500 |
|---|---|---|
| committer | João Távora | 2024-04-18 09:33:32 -0500 |
| commit | 3228c1222c99e672ca0cd7599c07ea1db852aa1a (patch) | |
| tree | f7f79414778516a627ae9b122c249d10bd246f20 /java | |
| parent | 306feb7d967ecea9c916dd6e25b2e84a3f1c714e (diff) | |
| download | emacs-3228c1222c99e672ca0cd7599c07ea1db852aa1a.tar.gz emacs-3228c1222c99e672ca0cd7599c07ea1db852aa1a.zip | |
Better way to fix bug#70036
Cache a new eglot--cached-tdi var per buffer, which contains value to
return from eglot--TextDocumentIdentifier.
This avoids frequent expensive recomputation of a value that requires
potentially many 'file-truename' calls. This technique is used in a
number of other cases already, like eglot--recent-changes or
eglot--versioned-identifier.
* lisp/progmodes/eglot.el (eglot--cached-tdi): New variable.
(eglot--TextDocumentIdentifier): Tweak.
(eglot--signal-textDocument/didOpen): Clear eglot--cached-tdi.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions