Jacob Dufault
bb25640d91
Rename instantiations to instances.
2017-04-21 00:03:33 -07:00
Jacob Dufault
bdd433abd4
Fix vscode complaining about overlapping text edits for rename
2017-04-20 23:56:42 -07:00
Jacob Dufault
1fcefb5262
Misc changes
2017-04-20 23:47:17 -07:00
Jacob Dufault
5ef4f55053
Fix code lens for variable instantiations
2017-04-20 23:46:53 -07:00
Jacob Dufault
11d6623938
Update WorkingFile indexed content correctly.
...
We copy the file contents we indexed over to the index cache folder. Then we load those file contents into the WorkingFile instance as needed.
This means code lens should never get out of sync, as the index buffer cache will always be correct.
2017-04-20 23:32:18 -07:00
Jacob Dufault
16dc2971a6
Automatically compute a good value for number of indexer threads to start.
2017-04-20 22:16:52 -07:00
Jacob Dufault
145bf87d70
Add 'cquery: Freshen Index' command.
...
This validates every file is indexed to its current state. It is very useful after, ie, a git checkout.
2017-04-20 21:50:31 -07:00
Jacob Dufault
ead75bb7a3
Force ctor usage on Index_DoIndex
2017-04-20 21:09:54 -07:00
Jacob Dufault
14b47de1db
Cleanup import pipeline, store arguments in indexed file.
...
We no longer store any runtime state (ie, file arguments) in project.cc; we store it and then query it from the cached index file.
2017-04-20 21:06:15 -07:00
Jacob Dufault
d1fe600fcf
Better goto-definition on constructors.
2017-04-20 17:27:21 -07:00
Jacob Dufault
2f691e5365
Fix compile error
2017-04-20 17:16:54 -07:00
Jacob Dufault
f25a603708
Implement GetLastModificationTime for linux
2017-04-20 09:47:24 -07:00
Jacob Dufault
7326b861ac
Simplify dependency management when updating index for a file.
2017-04-20 01:05:19 -07:00
Jacob Dufault
1f6da81009
Preserve dependencies across multiple index runs.
2017-04-20 00:53:33 -07:00
Jacob Dufault
4d9567a0c2
Fix reindexing for header files
2017-04-20 00:25:38 -07:00
Jacob Dufault
d83b1591a4
Serialized indexes are now versioned. Old versions are not imported.
2017-04-19 23:02:24 -07:00
Jacob Dufault
9338bcfd0e
Improvements to loading project.
...
- Don't reindex the file if the modification time has not changed.
- Import file dependencies before importing other files, which might be a full-on index operation.
2017-04-19 22:46:10 -07:00
Jacob Dufault
2780e18040
CompilationEntry -> Project::Entry
2017-04-19 22:01:36 -07:00
Jacob Dufault
b4fb350140
Include file modification time in index
2017-04-19 21:57:44 -07:00
Jacob Dufault
9cb45c0ea0
Update README.md
...
Remove sparsehash build section.
2017-04-19 15:46:18 -07:00
Jacob Dufault
c60fae5abb
Fix import crash
2017-04-19 10:55:54 -07:00
Jacob Dufault
bc838822a5
Fix compile under waf and pass modified settings to extension
2017-04-19 10:06:39 -07:00
Jacob Dufault
ea045499b6
When looking up symbols map buffer line to index line.
...
This makes editing experience a bit smoother, as you can goto definition before saving.
2017-04-19 00:52:48 -07:00
Jacob Dufault
20864e422a
Fix recursion when loading cache and indexing are both enabled.
...
Also added config options to disable indexing, disable cache writing, and disable cache reading from settings file.
2017-04-19 00:32:59 -07:00
Jacob Dufault
cbe308c0f9
Try to have better behavior when types are defined across multiple files.
2017-04-18 23:56:37 -07:00
Jacob Dufault
eb83ba26e1
Add sparsepp as a replacement for sparsehash
2017-04-18 22:45:54 -07:00
Jacob Dufault
cd50eb9e35
Positions are now 32 bits (down from 96ish)
2017-04-18 22:38:39 -07:00
Jacob Dufault
95b567838c
Remove concept of 'interesting' usage.
...
It never worked well enough. Showing variable instantations for the type will be more useful.
2017-04-18 22:28:33 -07:00
Jacob Dufault
3ce446d202
Do not output interesting usage.
2017-04-18 21:58:39 -07:00
Jacob Dufault
5b70982c04
Fix permissions when creating files on linux
2017-04-18 21:56:02 -07:00
Jacob Dufault
85734278d8
Misc fixes
2017-04-18 17:05:14 -07:00
Jacob Dufault
2e8e3d29c5
Indexer spelling lookup cannot fail
2017-04-18 16:49:55 -07:00
Jacob Dufault
121336c976
Fix build on OSX, update README.md
2017-04-18 10:21:53 -07:00
Jacob Dufault
2462d5a1ba
Update README.md
2017-04-17 22:18:46 -07:00
Jacob Dufault
c5151a4795
Update README.md
2017-04-17 22:03:48 -07:00
Jacob Dufault
17d7ceea53
Readd image
2017-04-17 21:59:57 -07:00
Jacob Dufault
268c6e76c3
Set png to binary
2017-04-17 21:59:57 -07:00
Jacob Dufault
486b7cc2e6
Update README.md
2017-04-17 21:57:16 -07:00
Jacob Dufault
d638097884
Add README
2017-04-17 21:53:34 -07:00
Jacob Dufault
c615535d33
vscode settings can now include an additional set of clang arguments to apply.
2017-04-17 21:06:01 -07:00
Jacob Dufault
2b6f4b7cdf
Enable configuration of max workspace search results.
2017-04-17 20:54:20 -07:00
Jacob Dufault
c86dd569c1
Enable configuration for the number of indexer threads.
2017-04-17 20:23:52 -07:00
Jacob Dufault
2d4b910836
Allow configuration of cache directory. Use a good default value as well.
2017-04-17 20:02:41 -07:00
Jacob Dufault
26c0bfe71d
Misc fixes
2017-04-17 13:40:50 -07:00
Jacob Dufault
7f4d902dcf
Add alternative compile_commands.json loader using rapidjson.
...
It may be faster than clang. I haven't tested it yet.
2017-04-17 00:06:01 -07:00
Jacob Dufault
5e8e13380d
First iteration of code completion off the main thread. Still one race condition but hopefully it shouldn't happen too often.
2017-04-16 18:22:59 -07:00
Jacob Dufault
c6dead848e
Remove some TODOs, reduce output sleep from 10ms to 2ms
2017-04-16 16:57:31 -07:00
Jacob Dufault
8e18e7a8ad
Add support for project filtering
2017-04-16 16:52:42 -07:00
Jacob Dufault
9d8c027cfb
Set thread names. Fix initialization race condition when not using shared memory.
2017-04-16 15:48:54 -07:00
Jacob Dufault
741e357053
Remove clang-c dependency from command_line.cc
2017-04-16 14:51:47 -07:00