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
- rG LLVM Github Monorepo
- Build Status
Buildable 37294 Build 37293: arc lint + arc unit
Event Timeline
clang-tools-extra/clangd/clients/clangd-vscode/src/semantic-highlighting.ts | ||
---|---|---|
60 | nit: call it subscriptions to better align with vscode pattern. | |
114 | 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 | The only thing remaining to dispose is the highlighter. Should we remove all highlightings if clangd restarts? |
nit: call it subscriptions to better align with vscode pattern.