aboutsummaryrefslogtreecommitdiff
path: root/src/server/completion.odin
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2023-07-02 00:01:00 +0200
committerDanielGavin <danielgavin5@hotmail.com>2023-07-02 00:01:00 +0200
commit4a472b88d51807eb3cd58b01c0037443bf8a4404 (patch)
tree9f9a0312df3546f84470477fbbddda5ffa5fe7f0 /src/server/completion.odin
parent40f992f4f051e343331f44aa4c791e6f6abc8426 (diff)
Add new setting to enable fake methods for testing
Diffstat (limited to 'src/server/completion.odin')
-rw-r--r--src/server/completion.odin4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/completion.odin b/src/server/completion.odin
index 10a1583..ff37211 100644
--- a/src/server/completion.odin
+++ b/src/server/completion.odin
@@ -334,7 +334,9 @@ get_selector_completion :: proc(
}
}
- //append_method_completion(ast_context, selector, &items)
+ if common.config.enable_fake_method {
+ append_method_completion(ast_context, selector, &items)
+ }
#partial switch v in selector.value {
case SymbolFixedArrayValue: