Disposes of the vscode listeners when clangd crashes and reuses the old highlighter when it restarts. The reason for reusing the highlighter is because this way the highlightings will not disappear as we won't have to dispose of them.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang-tools-extra/clangd/clients/clangd-vscode/src/semantic-highlighting.ts | ||
---|---|---|
60 ↗ | (On Diff #217152) | nit: call it subscriptions to better align with vscode pattern. |
114 ↗ | (On Diff #217152) | we just dispose some class members (leading the class to an intermediate state), I'd suggest that we dispose the whole class. nit: please remove the "clangd crashes" bit in the API. |
clang-tools-extra/clangd/clients/clangd-vscode/src/semantic-highlighting.ts | ||
---|---|---|
114 ↗ | (On Diff #217152) | The only thing remaining to dispose is the highlighter. Should we remove all highlightings if clangd restarts? |