Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ghentschke committed Feb 7, 2025
1 parent 65f334a commit 42be18c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@

/**
* Caches the Language Server enable for a given resource URI. Used by {@link HasLanguageServerPropertyTester#test(Object, String, Object[], Object)}
* The cache is getting cleared on changes in the C/C++ related content types.
* The cache is getting cleared on changes in the C/C++ related content types. The cache gets restored for all opened files in the LSP based editor
* if their content type still matches a C/C++ source or header type.
*
* The cache is limited to 100 elements. The oldest entry will be removed.
* A resource URI shall be removed from the cache if it's getting closed in the editor.
* The enable Language Server is cached when the file has been opened in the LSP based C/C++ editor.
* The enable Language Server is cached when the file has been opened in the LSP based C/C++ editor and the opened file matches a C/C++ content type.
*/
public final class CLanguageServerEnableCache implements IContentTypeChangeListener, IPartListener, IWindowListener {

Expand Down

0 comments on commit 42be18c

Please sign in to comment.