diff --git a/build.zig b/build.zig index e17355f..313e84b 100644 --- a/build.zig +++ b/build.zig @@ -505,7 +505,7 @@ pub fn build_exe( .{ .name = "thespian", .module = thespian_mod }, .{ .name = "Buffer", .module = Buffer_mod }, .{ .name = "tracy", .module = tracy_mod }, - .{ .name = "syntax", .module = syntax_mod }, + .{ .name = "file_type_config", .module = file_type_config_mod }, .{ .name = "dizzy", .module = dizzy_dep.module("dizzy") }, .{ .name = "fuzzig", .module = fuzzig_dep.module("fuzzig") }, .{ .name = "git", .module = git_mod }, diff --git a/src/project_manager.zig b/src/project_manager.zig index a9c5466..78dde81 100644 --- a/src/project_manager.zig +++ b/src/project_manager.zig @@ -3,7 +3,7 @@ const tp = @import("thespian"); const cbor = @import("cbor"); const log = @import("log"); const tracy = @import("tracy"); -const FileType = @import("syntax").FileType; +const file_type_config = @import("file_type_config"); const root = @import("root"); const Buffer = @import("Buffer"); const builtin = @import("builtin"); @@ -137,7 +137,7 @@ pub fn delete_task(task: []const u8) (ProjectManagerError || ProjectError)!void return send(.{ "delete_task", project, task }); } -pub fn did_open(file_path: []const u8, file_type: *const FileType, version: usize, text: []const u8, ephemeral: bool) (ProjectManagerError || ProjectError)!void { +pub fn did_open(file_path: []const u8, file_type: file_type_config, version: usize, text: []const u8, ephemeral: bool) (ProjectManagerError || ProjectError)!void { if (ephemeral) return; const project = tp.env.get().str("project"); if (project.len == 0)