Skip to content

Commit

Permalink
Add .editorconfig files to MSVC projects
Browse files Browse the repository at this point in the history
Visual Studio doesn't seem to respect them unless they're in the
project.
  • Loading branch information
andreasf-unity committed Apr 11, 2018
1 parent bcbe896 commit f0caf02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/tundra/ide/msvc-common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ local function make_project_data(units_raw, env, proj_extension, hints, ide_scri
end
local source_list = util.map(util.filter(accessed_lua_files, is_non_tundra_lua_file), make_src_node)

if native.stat_file('.editorconfig').exists then
source_list[#source_list + 1] = make_src_node('.editorconfig')
end

local solution_hints = hints.MsvcSolutions
if not solution_hints then
print("No IdeGenerationHints.MsvcSolutions specified - using defaults")
Expand Down

0 comments on commit f0caf02

Please sign in to comment.