Avoid unnecessary recompiles between debug & test builds
This makes development much quicker when switching back and forth between compiling with RLS while editing and running tests with `cargo test`.
This commit is contained in:
parent
d45b98c7d9
commit
967da88371
4 changed files with 68 additions and 33 deletions
|
|
@ -18,18 +18,9 @@ typedef struct {
|
|||
Length new_end;
|
||||
} Edit;
|
||||
|
||||
#ifdef TREE_SITTER_TEST
|
||||
|
||||
#define TS_MAX_INLINE_TREE_LENGTH 2
|
||||
#define TS_MAX_TREE_POOL_SIZE 0
|
||||
|
||||
#else
|
||||
|
||||
#define TS_MAX_INLINE_TREE_LENGTH UINT8_MAX
|
||||
#define TS_MAX_TREE_POOL_SIZE 32
|
||||
|
||||
#endif
|
||||
|
||||
static const ExternalScannerState empty_state = {.length = 0, .short_data = {0}};
|
||||
|
||||
// ExternalScannerState
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue