Skip to content

Commit 88a47a3

Browse files
Merge branch 'master' into rajkumar42/wsl/changelog
2 parents 17cc67f + b6005a9 commit 88a47a3

File tree

8 files changed

+80
-46
lines changed

8 files changed

+80
-46
lines changed

.vscode/tasks.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
{
22
"version": "0.1.0",
3-
"command": "gulp",
4-
"isShellCommand": true,
53
"tasks": [
4+
{
5+
"taskName": "build",
6+
"command": "npm",
7+
"isShellCommand": true,
8+
"args": ["run", "compile"],
9+
"showOutput": "always",
10+
"isBuildCommand": true
11+
},
612
{
713
"taskName": "test",
14+
"command": "echo",
815
"showOutput": "always",
16+
"isShellCommand": true,
17+
"args": ["Run tests in VS Code by launching the debugg with the 'Launch Tests' configuration."],
918
"isTestCommand": true
1019
},
1120
{
1221
"taskName": "tslint",
13-
"args": [],
22+
"command": "gulp",
23+
"isShellCommand": true,
24+
"args": ["tslint"],
1425
"problemMatcher": {
1526
"owner": "tslint",
1627
"fileLocation": [

CHANGELOG.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,30 @@
88
### Project Support
99

1010
* Updated with the latest changes for .NET Core .csproj projects. ([omnisharp-roslyn#738](https://github.com/OmniSharp/omnisharp-roslyn/pull/738))
11-
* Properly handle .csproj projects in .sln files that were added via .NET CLI commands. ([omnisharp-roslyn#741](https://github.com/OmniSharp/omnisharp-roslyn/pull/741))
12-
* Respect `nowarn` in project.json projects ([omnisharp#734](https://github.com/OmniSharp/omnisharp-roslyn/pull/734)) _(Contributed by [@filipw](https://github.com/filipw))_
11+
* Automatic package restore and out-of-date notifications implemented for .NET Core .csproj projects. ([#770](https://github.com/OmniSharp/omnisharp-vscode/issues/770))
1312
* Correctly update project when dotnet restore is performed on a .NET Core .csproj project. ([#1114](https://github.com/OmniSharp/omnisharp-vscode/issues/1114))
13+
* Properly handle .csproj projects in .sln files that were added via .NET CLI commands. ([omnisharp-roslyn#741](https://github.com/OmniSharp/omnisharp-roslyn/pull/741))
14+
* Fix `dotnet restore` Visual Studio Code command to execute for .csproj .NET Core projects. ([#1175](https://github.com/OmniSharp/omnisharp-vscode/issues/1175))
15+
* Respect `nowarn` in project.json projects. ([omnisharp#734](https://github.com/OmniSharp/omnisharp-roslyn/pull/734)) _(Contributed by [@filipw](https://github.com/filipw))_
16+
* Fix problem with project.json projects that wrap assemblies. ([#424](https://github.com/OmniSharp/omnisharp-vscode/issues/424))
1417

1518
### Debugging
1619

17-
* Enable debugger support for Zorin OS 12 ([#1160](https://github.com/OmniSharp/omnisharp-vscode/issues/1160)) _(Contributed by [@mkaziz](https://github.com/mkaziz))_
20+
* Enable debugger support for Zorin OS 12. ([#1160](https://github.com/OmniSharp/omnisharp-vscode/issues/1160)) _(Contributed by [@mkaziz](https://github.com/mkaziz))_
1821
* Added off-road support for [Windows Subsystem for Linux](https://blogs.msdn.microsoft.com/wsl/2016/04/22/windows-subsystem-for-linux-overview/) (NOTE: requires newer version of Windows than have been publicly released yet)
1922
* Fixed issue with debugger pause and multithreaded call stacks ([#1107](https://github.com/OmniSharp/omnisharp-vscode/issues/1107) and [#1105](https://github.com/OmniSharp/omnisharp-vscode/issues/1105))
2023

21-
2224
### C# Scripting
2325

24-
* Support resolving `#r` references from the GAC ([omnisharp-roslyn#721](https://github.com/OmniSharp/omnisharp-roslyn/pull/721)) _(Contributed by [@filipw](https://github.com/filipw))_
25-
* Include System.ValueTuple in C# scripts implicitly ([omnisharp-roslyn#722](https://github.com/OmniSharp/omnisharp-roslyn/pull/722)) _(Contributed by [@filipw](https://github.com/filipw))_
26+
* Support resolving `#r` references from the GAC. ([omnisharp-roslyn#721](https://github.com/OmniSharp/omnisharp-roslyn/pull/721)) _(Contributed by [@filipw](https://github.com/filipw))_
27+
* Include System.ValueTuple in C# scripts implicitly. ([omnisharp-roslyn#722](https://github.com/OmniSharp/omnisharp-roslyn/pull/722)) _(Contributed by [@filipw](https://github.com/filipw))_
28+
29+
### Code Actions
30+
31+
* Fixed code actions that add files, such as "Move Type to File". ([#975](https://github.com/OmniSharp/omnisharp-vscode/issues/975))
32+
* Properly surface code actions that have "nested code actions". This allows "generate type" to work properly. ([#302](https://github.com/OmniSharp/omnisharp-vscode/issues/302))
33+
* Don't display the Remove Unnecessary Usings code action unless it is relevant. ([omnisharp-roslyn#742](https://github.com/OmniSharp/omnisharp-roslyn/issues/742))
34+
* Don't show the Extract Interface refactoring as it requires a dialog that does not exist in VS Code. ([#925](https://github.com/OmniSharp/omnisharp-vscode/issues/925))
2635

2736
### Completion List
2837

@@ -32,17 +41,18 @@
3241
### Other Updates and Fixes
3342

3443
* Add schema validation for omnisharp.json files. ([#1082](https://github.com/OmniSharp/omnisharp-vscode/pull/1082)) _(Contributed by [@Thaina](https://github.com/Thaina))_
44+
* Add support for auto-closing and surrounding characters. ([#749](https://github.com/OmniSharp/omnisharp-vscode/issues/749), [#842](https://github.com/OmniSharp/omnisharp-vscode/issues/842)) _(Contributed by [@filipw](https://github.com/filipw))_
3545
* Fix running and debugging of tests defined in nested classes. ([#743](https://github.com/OmniSharp/omnisharp-vscode/issues/743), [#1151](https://github.com/OmniSharp/omnisharp-vscode/issues/1151))
3646
* Fix error when 'tasks.json' does not contain a 'tasks' node, or contains os-specific 'tasks' nodes. ([#1140](https://github.com/OmniSharp/omnisharp-vscode/issues/1140))
3747
* Better detection of Windows architecture (x86 or x64) when determining extension dependencies to download. The detection logic now uses well-known environment variables rather than launching 'wmic'. ([#1110](https://github.com/OmniSharp/omnisharp-vscode/issues/1110), [#1125](https://github.com/OmniSharp/omnisharp-vscode/issues/1125))
3848
* Improvements to the OmniSharp Log ([#1155](https://github.com/OmniSharp/omnisharp-vscode/pull/1155))
3949
* Add new values to the `omnisharp.logginglevel` option to allow more granualar control of OmniSharp logging. ([#993](https://github.com/OmniSharp/omnisharp-vscode/issues/993)) _(Contributed by [@filipw](https://github.com/filipw))_
40-
* Fix `dotnet restore` Visual Studio Code command to handle .csproj .NET Core projects. ([#1175](https://github.com/OmniSharp/omnisharp-vscode/issues/1175))
50+
* Don't display the "some projects have trouble loading" message if projects only contain warnings. ([#707](https://github.com/OmniSharp/omnisharp-vscode/issues/707))
51+
* Update Mono detection logic to succeed even if another shell is set as the default (e.g. zsh). ([#1031](https://github.com/OmniSharp/omnisharp-vscode/issues/1031))
4152

4253
### Known Issues
4354

4455
* Running and debugging of tests are not supported in .csproj-based .NET Core projects. However, there will still be clickable "run test" and "debug test" indicators above test methods. ([#1100](https://github.com/OmniSharp/omnisharp-vscode/issues/1100))
45-
* Auto-restore for NuGet packages is not yet implemented. If you change a project file and need to restore packages, you should do so by running `dotnet restore` with the .NET CLI. Once packages are restored, you can force the C# extension to "see" the new references by restarting OmniSharp with the `OmniSharp: Restart OmniSharp` command. ([#770](https://github.com/OmniSharp/omnisharp-vscode/issues/770))
4656
* When opening a .csproj-based .NET Core project in VS Code, the C# extension will not activate until a C# file is opened in the editor. ([#1150](https://github.com/OmniSharp/omnisharp-vscode/issues/1150))
4757

4858
## 1.6.2 (December 24, 2016)

csharp.configuration.json

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
11
{
2-
"comments": {
3-
"lineComment": "//",
4-
"blockComment": ["/*", "*/"]
5-
},
6-
"brackets": [
7-
["{", "}"],
8-
["[", "]"],
9-
["(", ")"]
10-
]
2+
"comments": {
3+
"lineComment": "//",
4+
"blockComment": ["/*", "*/"]
5+
},
6+
"brackets": [
7+
["{", "}"],
8+
["[", "]"],
9+
["(", ")"]
10+
],
11+
"autoClosingPairs": [
12+
["{", "}"],
13+
["[", "]"],
14+
["(", ")"],
15+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
16+
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
17+
{ "open": "/*", "close": " */", "notIn": ["string"] }
18+
],
19+
"surroundingPairs": [
20+
["{", "}"],
21+
["[", "]"],
22+
["(", ")"],
23+
["<", ">"],
24+
["'", "'"],
25+
["\"", "\""]
26+
]
1127
}

gulpfile.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,6 @@ gulp.task('package:offline', ['clean'], () => {
145145
return promise;
146146
});
147147

148-
/// Test Task
149-
gulp.task('test', () => {
150-
gulp.src('out/test/**/*.tests.js')
151-
.pipe(mocha({ ui: "tdd" }))
152-
.once('error', () => {
153-
process.exit(1);
154-
})
155-
.once('end', () => {
156-
process.exit();
157-
});
158-
});
159-
160148
/// Misc Tasks
161149
const allTypeScript = [
162150
'src/**/*.ts',

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "csharp",
33
"publisher": "ms-vscode",
4-
"version": "1.7.0-beta3",
4+
"version": "1.7.0-beta4",
55
"description": "C# for Visual Studio Code (powered by OmniSharp).",
66
"displayName": "C#",
77
"author": "Microsoft Corporation",
@@ -117,7 +117,7 @@
117117
},
118118
{
119119
"description": "OmniSharp (.NET 4.6 / x86)",
120-
"url": "https://omnisharpdownload.blob.core.windows.net/ext/omnisharp-win-x86-1.9-beta24.zip",
120+
"url": "https://omnisharpdownload.blob.core.windows.net/ext/omnisharp-win-x86-1.9-beta25.zip",
121121
"installPath": "./bin/omnisharp",
122122
"platforms": [
123123
"win32"
@@ -128,7 +128,7 @@
128128
},
129129
{
130130
"description": "OmniSharp (.NET 4.6 / x64)",
131-
"url": "https://omnisharpdownload.blob.core.windows.net/ext/omnisharp-win-x64-1.9-beta24.zip",
131+
"url": "https://omnisharpdownload.blob.core.windows.net/ext/omnisharp-win-x64-1.9-beta25.zip",
132132
"installPath": "./bin/omnisharp",
133133
"platforms": [
134134
"win32"
@@ -139,7 +139,7 @@
139139
},
140140
{
141141
"description": "OmniSharp (Mono 4.6)",
142-
"url": "https://omnisharpdownload.blob.core.windows.net/ext/omnisharp-mono-1.9-beta24.zip",
142+
"url": "https://omnisharpdownload.blob.core.windows.net/ext/omnisharp-mono-1.9-beta25.zip",
143143
"installPath": "./bin/omnisharp",
144144
"platforms": [
145145
"darwin",

src/features/commands.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,16 @@ export function dotnetRestoreForProject(server: OmniSharpServer, fileName: strin
143143

144144
return serverUtils.requestWorkspaceInformation(server).then(info => {
145145

146-
if (!info.DotNet || info.DotNet.Projects.length < 1) {
146+
let projectDescriptors = protocol.getDotNetCoreProjectDescriptors(info);
147+
148+
if (projectDescriptors.length === 0) {
147149
return Promise.reject("No .NET Core projects found");
148150
}
149151

150152
let directory = path.dirname(fileName);
151153

152-
for (let project of info.DotNet.Projects) {
153-
if (project.Path === directory) {
154+
for (let projectDescriptor of projectDescriptors) {
155+
if (projectDescriptor.Path === fileName) {
154156
return dotnetRestore(directory, fileName);
155157
}
156158
}

src/features/status.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,10 @@ export function reportServerStatus(server: OmniSharpServer): vscode.Disposable{
241241
message.Errors.forEach(error => asErrorMessage);
242242
message.Warnings.forEach(warning => asWarningMessage);
243243
appendLine();
244-
showMessageSoon();
244+
245+
if (message.Errors.length > 0) {
246+
showMessageSoon();
247+
}
245248
}
246249
});
247250

syntaxes/csharp.tmLanguage

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,10 @@
13241324
<key>include</key>
13251325
<string>#punctuation-comma</string>
13261326
</dict>
1327+
<dict>
1328+
<key>include</key>
1329+
<string>#preprocessor</string>
1330+
</dict>
13271331
</array>
13281332
</dict>
13291333
<key>generic-constraints</key>
@@ -2246,7 +2250,7 @@
22462250
</dict>
22472251
</dict>
22482252
<key>end</key>
2249-
<string>(?=[,\);}])</string>
2253+
<string>(?=[,\)\];}])</string>
22502254
<key>patterns</key>
22512255
<array>
22522256
<dict>
@@ -4869,7 +4873,7 @@
48694873
</dict>
48704874
<dict>
48714875
<key>match</key>
4872-
<string>\s+([_[:alpha:]][_[:alnum:]]*)\s*(?=[,\]])</string>
4876+
<string>\s+([_[:alpha:]][_[:alnum:]]*)\s*(?=[=,\]])</string>
48734877
<key>captures</key>
48744878
<dict>
48754879
<key>1</key>
@@ -4935,7 +4939,7 @@
49354939
</dict>
49364940
<dict>
49374941
<key>match</key>
4938-
<string>\s+([_[:alpha:]][_[:alnum:]]*)\s*(?=[,)])</string>
4942+
<string>\b([_[:alpha:]][_[:alnum:]]*)\s*(?=[=,)])</string>
49394943
<key>captures</key>
49404944
<dict>
49414945
<key>1</key>
@@ -5532,7 +5536,7 @@
55325536
</dict>
55335537
</dict>
55345538
<key>end</key>
5535-
<string>(?=\)|;)</string>
5539+
<string>(?=\)|;|})</string>
55365540
<key>patterns</key>
55375541
<array>
55385542
<dict>
@@ -5575,7 +5579,7 @@
55755579
</dict>
55765580
</dict>
55775581
<key>end</key>
5578-
<string>(?=\)|;)</string>
5582+
<string>(?=\)|;|})</string>
55795583
<key>patterns</key>
55805584
<array>
55815585
<dict>
@@ -5607,7 +5611,7 @@
56075611
</dict>
56085612
</dict>
56095613
<key>end</key>
5610-
<string>(?=\)|;)</string>
5614+
<string>(?=\)|;|})</string>
56115615
<key>patterns</key>
56125616
<array>
56135617
<dict>

0 commit comments

Comments
 (0)