aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2020-11-06 13:44:34 +0100
committerDanielGavin <danielgavin5@hotmail.com>2020-11-06 13:44:34 +0100
commit3f1027bd4003cdb9fdc80665548181df2fb60810 (patch)
treeffa92e9c9a1d62ddeef9933e171b024d7e5a33b6 /src
parent59c6ddd27a321c87a0da0a41e06b5559921a02e9 (diff)
typos + added workspace file to handle all the workspace related stuff
Diffstat (limited to 'src')
-rw-r--r--src/index.odin18
-rw-r--r--src/workspace.odin1
2 files changed, 18 insertions, 1 deletions
diff --git a/src/index.odin b/src/index.odin
index b14bfcb..7d2774f 100644
--- a/src/index.odin
+++ b/src/index.odin
@@ -6,7 +6,11 @@ import "core:strings"
/*
- File is responsible for implementing the indexing of symbols for static files.
+ Concept ideas:
+
+ static indexing:
+
+ is responsible for implementing the indexing of symbols for static files.
This is to solve the scaling problem of large projects with many files and symbols, as most of these files will be static.
@@ -19,6 +23,18 @@ import "core:strings"
Potential features:
Allow for saving the indexer, instead of recreating it everytime the lsp starts(but you would have to account for stale data).
+
+ dynamic indexing:
+
+ When the user modifies files we need some smaller index to handle everything the user is using right now. This will allow
+ us to rebuild parts of the index without too much of a performance hit.
+
+ This index is first searched and if nothing is found look in the static index.
+
+ interface ideas:
+
+ index_search_fuzzy(symbol: string, scope: [] string) -> [] SymbolResult
+
TODO(Daniel, Look into data structure for fuzzy searching)
*/
diff --git a/src/workspace.odin b/src/workspace.odin
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/src/workspace.odin
@@ -0,0 +1 @@
+