Skip to content

Commit ebd57b6

Browse files
committed
Merge remote-tracking branch 'upstream/feature/net8' into InsertRazorNet8
2 parents e5cb4f1 + 0001979 commit ebd57b6

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@
44
- Debug from .csproj and .sln [#5876](https://github.com/dotnet/vscode-csharp/issues/5876)
55

66
## Latest
7-
* Update Roslyn to run on .NET 8 (PR: [#6840](https://github.com/dotnet/vscode-csharp/pull/6840))
7+
* Update Roslyn to run on .NET 8 (PR: [#<>](https://github.com/dotnet/vscode-csharp/pull/<>))
8+
* Upgrade language server to run on .NET 8 (PR: [#72247](https://github.com/dotnet/roslyn/pull/72247))
9+
* Refactors LSP server extension assembly loading (PR: [#71862](https://github.com/dotnet/roslyn/pull/71862))
10+
* Report better warnings and errors if build hosts exit abnormally (PR: [#71909](https://github.com/dotnet/roslyn/pull/71909))
11+
12+
## 2.19.13
13+
* Fix `Attribute` snippet (PR: [#6879](https://github.com/dotnet/vscode-csharp/pull/6879))
14+
* Add grammar support for new Razor directives: rendermode, preservewhitespace and typeparam (PR: [#6887](https://github.com/dotnet/vscode-csharp/pull/6887))
15+
* Ensure failures to connect to the named pipe are propagated (PR: [#6881](https://github.com/dotnet/vscode-csharp/pull/6881))
816
* Update Razor to 7.0.0-preview.24079.3 (PR: [#6841](https://github.com/dotnet/vscode-csharp/pull/6841))
917
* Fix an issue with component hover not showing enough information (PR: [dotnet/razor#9862](https://github.com/dotnet/razor/pull/9862))
18+
19+
# 2.18.15
1020
* Fix regression in override completion (PR: [#6869](https://github.com/dotnet/vscode-csharp/pull/6869))
1121
* Update debugger to 2.18.0 release (PR: [#6853](https://github.com/dotnet/vscode-csharp/pull/6853))
1222

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}
3838
},
3939
"defaults": {
40-
"roslyn": "4.10.0-2.24105.1",
40+
"roslyn": "4.10.0-2.24124.2",
4141
"omniSharp": "1.39.11",
4242
"razor": "7.0.0-preview.24123.5",
4343
"razorOmnisharp": "7.0.0-preview.23363.1",

src/lsptoolshost/commands.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export function registerCommands(
3131
context.subscriptions.push(
3232
vscode.commands.registerCommand(
3333
'roslyn.client.completionComplexEdit',
34-
async (uriStr, textEdit, isSnippetString, newOffset) =>
35-
completionComplexEdit(uriStr, textEdit, isSnippetString, newOffset, outputChannel)
34+
async (textDocument, textEdit, isSnippetString, newOffset) =>
35+
completionComplexEdit(textDocument, textEdit, isSnippetString, newOffset, outputChannel)
3636
)
3737
);
3838
context.subscriptions.push(
@@ -97,7 +97,7 @@ async function restartServer(languageServer: RoslynLanguageServer): Promise<void
9797
* @param newPosition The offset for new cursor position. -1 if the edit has not specified one.
9898
*/
9999
async function completionComplexEdit(
100-
uriStr: string,
100+
textDocument: languageClient.TextDocumentIdentifier,
101101
textEdit: vscode.TextEdit,
102102
isSnippetString: boolean,
103103
newOffset: number,
@@ -106,18 +106,21 @@ async function completionComplexEdit(
106106
const componentName = '[roslyn.client.completionComplexEdit]';
107107

108108
// Find TextDocument, opening if needed.
109-
const uri = UriConverter.deserialize(uriStr);
109+
const uri = UriConverter.deserialize(textDocument.uri);
110110
const document = await vscode.workspace.openTextDocument(uri);
111111
if (document === undefined) {
112-
outputAndThrow(outputChannel, `${componentName} Can't open document with path: '${uriStr}'`);
112+
outputAndThrow(outputChannel, `${componentName} Can't open document with path: '${textDocument.uri}'`);
113113
}
114114

115115
// Use editor if we need to deal with selection or snippets.
116116
let editor: vscode.TextEditor | undefined = undefined;
117117
if (isSnippetString || newOffset >= 0) {
118118
editor = await vscode.window.showTextDocument(document);
119119
if (editor === undefined) {
120-
outputAndThrow(outputChannel, `${componentName} Editor unavailable for document with path: '${uriStr}'`);
120+
outputAndThrow(
121+
outputChannel,
122+
`${componentName} Editor unavailable for document with path: '${textDocument.uri}'`
123+
);
121124
}
122125
}
123126

0 commit comments

Comments
 (0)