aboutsummaryrefslogtreecommitdiff
path: root/src/server/completion.odin
diff options
context:
space:
mode:
authorBradley Lewis <22850972+BradLewis@users.noreply.github.com>2026-02-12 15:08:43 +1100
committerGitHub <noreply@github.com>2026-02-12 15:08:43 +1100
commit4f309f96acc53f788dabf7a9d0cb7319dbe16ebd (patch)
treee8ad7fd5fd209adca67d6f4a9304da44116f99a1 /src/server/completion.odin
parent92b8c767d233c6556ebf46072f32a02d06277363 (diff)
parentb32550a87edcbd71d1084eec76c316161066bb06 (diff)
Merge pull request #1295 from BradLewis/feat/update-os-filepath
Update ols to use the new os and filepath packages
Diffstat (limited to 'src/server/completion.odin')
-rw-r--r--src/server/completion.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/completion.odin b/src/server/completion.odin
index 072d21b..31d75ca 100644
--- a/src/server/completion.odin
+++ b/src/server/completion.odin
@@ -1878,7 +1878,7 @@ get_package_completion :: proc(
c := without_quotes[0:colon_index]
if colon_index + 1 < len(without_quotes) {
- absolute_path = filepath.join(
+ absolute_path, _ = filepath.join(
elems = {
config.collections[c],
filepath.dir(without_quotes[colon_index + 1:], context.temp_allocator),
@@ -1891,7 +1891,7 @@ get_package_completion :: proc(
} else {
import_file_dir := filepath.dir(position_context.import_stmt.pos.file, context.temp_allocator)
import_dir := filepath.dir(without_quotes, context.temp_allocator)
- absolute_path = filepath.join(elems = {import_file_dir, import_dir}, allocator = context.temp_allocator)
+ absolute_path, _ = filepath.join(elems = {import_file_dir, import_dir}, allocator = context.temp_allocator)
}
if !strings.contains(position_context.import_stmt.fullpath, "/") &&
@@ -1941,7 +1941,7 @@ search_for_packages :: proc(fullpath: string) -> []string {
if files, err := os.read_dir(fh, 0, context.temp_allocator); err == 0 {
for file in files {
- if file.is_dir {
+ if file.type == .Directory {
append(&packages, file.fullpath)
}
}