Skip to content

Commit 3e516d7

Browse files
authored
Merge pull request #7432 from dotnet/merge/main-to-prerelease
[automated] Merge branch 'main' => 'prerelease'
2 parents 1250fb9 + 74ca6c9 commit 3e516d7

File tree

7 files changed

+44
-9
lines changed

7 files changed

+44
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@
44
- Debug from .csproj and .sln [#5876](https://github.com/dotnet/vscode-csharp/issues/5876)
55

66
# Latest
7-
* Bump Roslyn to 4.12.0-2.24401.2 (PR: [#7413](https://github.com/dotnet/vscode-csharp/pull/7413))
7+
* Bump Roslyn to 4.12.0-2.24408.4 (PR: [#7429](https://github.com/dotnet/vscode-csharp/pull/7429))
88
* Reduce allocations in SyntaxEquivalence.AreEquivalent by using a more appropriate pooling mechanism for the stack it uses to walk trees. (PR: [#74610](https://github.com/dotnet/roslyn/pull/74610))
99
* Reduce allocations in SyntaxNodeExtensions.GetMembers to instead execute a given lambda over the collection. (PR: [#74628](https://github.com/dotnet/roslyn/pull/74628))
1010
* Modify ISyntaxFacts methods to allocate less (PR: [#74596](https://github.com/dotnet/roslyn/pull/74596))
1111
* Fix cases where unused private members were not grayed out (PR: [#74589](https://github.com/dotnet/roslyn/pull/74589))
1212
* Fix URI handling when comparing encoded and unencoded URIs (PR: [#74544](https://github.com/dotnet/roslyn/pull/74544))
13-
* Bump xamltools to 17.12.35131.21 (PR: [#7409](https://github.com/dotnet/vscode-csharp/pull/7409))
13+
* Only report project load events for initial load in VSCode (PR: [#74688](https://github.com/dotnet/roslyn/pull/74688))
14+
* Reduce allocations in AbstractSymbolCompletionProvider.CreateItems (PR: [#74670](https://github.com/dotnet/roslyn/pull/74670))
15+
* Bump xamltools to 17.12.35209.18 (PR: [#7428](https://github.com/dotnet/vscode-csharp/pull/7428))
16+
* Task 2187810: [VS Code] Add OnEnter rules to indent tags (PR: [#7426](https://github.com/dotnet/vscode-csharp/pull/7426))
17+
* Fix completion handler bug that causes language server to crash (#7401) (PR: [#7406](https://github.com/dotnet/vscode-csharp/pull/7406))
1418

1519
# 2.41.x
1620
* Bump Roslyn to 4.12.0-1.24376.3 (PR: [#7393](https://github.com/dotnet/vscode-csharp/pull/7393))

l10n/bundle.l10n.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@
191191
"Unexpected message received from debugger.": "Unexpected message received from debugger.",
192192
"[ERROR]: C# Extension failed to install the debugger package.": "[ERROR]: C# Extension failed to install the debugger package.",
193193
"Could not find a process id to attach.": "Could not find a process id to attach.",
194+
"Unable to launch Attach to Process dialog: ": "Unable to launch Attach to Process dialog: ",
194195
"[ERROR] The debugger cannot be installed. The debugger is not supported on '{0}'": "[ERROR] The debugger cannot be installed. The debugger is not supported on '{0}'",
195196
"[ERROR] The debugger cannot be installed. The debugger requires macOS 12 (Monterey) or newer.": "[ERROR] The debugger cannot be installed. The debugger requires macOS 12 (Monterey) or newer.",
196197
"[WARNING]: x86 Windows is not supported by the .NET debugger. Debugging will not be available.": "[WARNING]: x86 Windows is not supported by the .NET debugger. Debugging will not be available.",

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@
3737
}
3838
},
3939
"defaults": {
40-
"roslyn": "4.12.0-2.24407.3",
40+
"roslyn": "4.12.0-2.24408.4",
4141
"omniSharp": "1.39.11",
4242
"razor": "9.0.0-preview.24366.2",
4343
"razorOmnisharp": "7.0.0-preview.23363.1",
44-
"xamlTools": "17.12.35131.21"
44+
"xamlTools": "17.12.35209.18"
4545
},
4646
"main": "./dist/extension",
4747
"l10n": "./l10n",
@@ -5575,4 +5575,4 @@
55755575
}
55765576
]
55775577
}
5578-
}
5578+
}

src/coreclrDebug/activate.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ export async function activate(
2626
context: vscode.ExtensionContext,
2727
platformInformation: PlatformInformation,
2828
eventStream: EventStream,
29-
csharpOutputChannel: vscode.OutputChannel
29+
csharpOutputChannel: vscode.OutputChannel,
30+
languageServerStartedPromise: Promise<any> | undefined
3031
) {
3132
const disposables = new CompositeDisposable();
3233

@@ -66,6 +67,19 @@ export async function activate(
6667
// Register a command to fire attach to process for the coreclr debug engine.
6768
disposables.add(
6869
vscode.commands.registerCommand('csharp.attachToProcess', async () => {
70+
// Ensure dotnetWorkspaceConfigurationProvider is registered
71+
if (languageServerStartedPromise) {
72+
try {
73+
await languageServerStartedPromise;
74+
} catch (e: any) {
75+
if (e as Error) {
76+
throw new Error(vscode.l10n.t('Unable to launch Attach to Process dialog: ') + e.message);
77+
} else {
78+
throw e;
79+
}
80+
}
81+
}
82+
6983
vscode.debug.startDebugging(
7084
undefined,
7185
{

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ export async function activate(
323323
context,
324324
platformInfo,
325325
eventStream,
326-
csharpChannel
326+
csharpChannel,
327+
roslynLanguageServerStartedPromise ?? omnisharpLangServicePromise
327328
);
328329
}
329330

src/xaml/language-configuration.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,20 @@
5555
},
5656
"wordPattern": {
5757
"pattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\$\\%\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)"
58-
}
58+
},
59+
"onEnterRules": [
60+
{
61+
"beforeText": "^\\s*(<([A-Za-z0-9_.-]+)([^/>]*(?!/)>)[^<]*)(?!.*<\\/\\2>)$",
62+
"afterText": "^\\s*<\\/([A-Za-z0-9_.-]+)[^>]*>$",
63+
"action": {
64+
"indent": "indentOutdent"
65+
}
66+
},
67+
{
68+
"beforeText": "^\\s*(<([A-Za-z0-9_.-]+)[^</]*)$",
69+
"action": {
70+
"indent": "indent"
71+
}
72+
},
73+
]
5974
}

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "2.42",
3+
"version": "2.43",
44
"publicReleaseRefSpec": [
55
"^refs/heads/release$",
66
"^refs/heads/prerelease$",

0 commit comments

Comments
 (0)