lightmelodies

Results 7 comments of lightmelodies

The semantic-highlighting implement use `vscode.extensions.all` to get color theme config. So nothing will be found in a remote environment. https://github.com/clangd/vscode-clangd/blob/d7879cb0cbac578d711f72c61c63e9c55427d4be/src/semantic-highlighting.ts#L320 https://github.com/clangd/vscode-clangd/blob/d7879cb0cbac578d711f72c61c63e9c55427d4be/src/semantic-highlighting.ts#L228

The current cache policy is keep up to 3 AST and drop it when file closed, which means rebuild AST happpend if you reopen some file, even without any change....

@HighCommander4 We can retain cache for preambles only. But instead of complex reuse checking, the lsp client will send notify when file is modified, which should keep preambles update to...

@Trass3r Some suggestion for https://github.com/Trass3r/llvm-project/commit/2d95594fe9787212da4b4cbe7254fdf1e650c67b - `getLocalTopLevelDecls` does not handle inner declarations. `getDocumentSymbols` will be a good choice. - `findReferences` does not work for type hierarchy since drived class may...

@Trass3r use `getDocumentSymbols` to get all declarations. For each declaration, return all possible code lenses(the same range, but different commmad). When resolving, use range and command info to get the...

Almost done. https://github.com/lightmelodies/llvm-project/commit/c142626d0e32031064b827357b93520612feb97c https://github.com/lightmelodies/vscode-clangd/commit/c00f74d0d2403a4753dab8b8a0a8dbc8bb6ffdf4 ![image](https://user-images.githubusercontent.com/20811066/91650874-c7c96200-eab7-11ea-8aff-8537a1492820.png)

If I understand correctly, the first block can only contain 4096 * 8 bits,which is not enough for larger block device (nr_used > 32768).