File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Packages/com.unity.ide.visualstudio/Editor Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -226,14 +226,13 @@ private static void CreateLaunchFile(string vscodeDirectory)
226226 File . WriteAllText ( launchFile , content ) ;
227227 }
228228
229- private static void CreateSettingsFile ( string vscodeDirectory )
229+ private void CreateSettingsFile ( string vscodeDirectory )
230230 {
231231 var settingsFile = IOPath . Combine ( vscodeDirectory , "settings.json" ) ;
232232 if ( File . Exists ( settingsFile ) )
233233 return ;
234234
235- const string content = @"{
236- ""files.exclude"":
235+ const string excludes = @" ""files.exclude"":
237236 {
238237 ""**/.DS_Store"":true,
239238 ""**/.git"":true,
@@ -290,8 +289,11 @@ private static void CreateSettingsFile(string vscodeDirectory)
290289 ""UserSettings/"":true,
291290 ""temp/"":true,
292291 ""Temp/"":true
293- },
294- ""omnisharp.enableRoslynAnalyzers"": true
292+ }" ;
293+
294+ var content = @"{
295+ " + excludes + @",
296+ ""dotnet.defaultSolution"": """ + IOPath . GetFileName ( ProjectGenerator . SolutionFile ( ) ) + @"""
295297}" ;
296298
297299 File . WriteAllText ( settingsFile , content ) ;
You can’t perform that action at this time.
0 commit comments