File tree Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 12
12
13
13
"settings" : {
14
14
// Loading projects on demand is better for larger codebases
15
- "omnisharp.enableMsBuildLoadProjectsOnDemand" : true
15
+ "omnisharp.enableMsBuildLoadProjectsOnDemand" : true ,
16
+ "omnisharp.enableRoslynAnalyzers" : true ,
17
+ "omnisharp.enableEditorConfigSupport" : true ,
18
+ "omnisharp.enableAsyncCompletion" : true ,
19
+ "omnisharp.testRunSettings" : " ${containerWorkspaceFolder}/artifacts/obj/vscode/.runsettings"
16
20
},
17
21
18
22
// Add the IDs of extensions you want installed when the container is created.
Original file line number Diff line number Diff line change 4
4
5
5
# prebuild the repo, so it is ready for development
6
6
./build.sh libs+clr -rc Release
7
+ # restore libs tests so that the project is ready to be loaded by OmniSharp
8
+ ./build.sh libs.tests -restore
7
9
8
10
# save the commit hash of the currently built assemblies, so developers know which version was built
9
11
git rev-parse HEAD > ./artifacts/prebuild.sha
Original file line number Diff line number Diff line change 7
7
<CreateIntermediateRunSettingsFile Condition =" '$(CreateIntermediateRunSettingsFile)' == ''" >false</CreateIntermediateRunSettingsFile >
8
8
<RunSettingsOutputFilePath Condition =" '$(CreateIntermediateRunSettingsFile)' == 'true'" >$(RunSettingsIntermediateOutputFilePath)</RunSettingsOutputFilePath >
9
9
<RunSettingsOutputFilePath Condition =" '$(CreateIntermediateRunSettingsFile)' != 'true'" >$(RunSettingsAppOutputFilePath)</RunSettingsOutputFilePath >
10
+ <VsCodeRunSettingsOutputFilePath >$(ArtifactsObjDir)vscode/.runsettings</VsCodeRunSettingsOutputFilePath >
10
11
11
12
<!-- Set RunSettingsFilePath property which is read by VSTest. -->
12
13
<RunSettingsFilePath Condition =" Exists('$(RunSettingsAppOutputFilePath)')" >$(RunSettingsAppOutputFilePath)</RunSettingsFilePath >
46
47
WriteOnlyWhenDifferent =" true"
47
48
Overwrite =" true" />
48
49
50
+ <WriteLinesToFile File =" $(VsCodeRunSettingsOutputFilePath)"
51
+ Lines =" $(RunSettingsFileContent)"
52
+ WriteOnlyWhenDifferent =" true"
53
+ Overwrite =" true"
54
+ Condition =" '$(CreateVsCodeRunSettingsFile)' == 'true'" />
55
+
49
56
<!-- Set RunSettingsFilePath property which is read by VSTest. -->
50
57
<PropertyGroup >
51
58
<RunSettingsFilePath >$(RunSettingsOutputFilePath)</RunSettingsFilePath >
Original file line number Diff line number Diff line change 5
5
<!-- Create an intermediate runsettings file to enable VSTest discovery. -->
6
6
<EnableRunSettingsSupport >true</EnableRunSettingsSupport >
7
7
<CreateIntermediateRunSettingsFile >true</CreateIntermediateRunSettingsFile >
8
+ <CreateVsCodeRunSettingsFile >true</CreateVsCodeRunSettingsFile >
8
9
</PropertyGroup >
9
10
10
11
<PropertyGroup >
You can’t perform that action at this time.
0 commit comments