Skip to content

Commit ba5eb84

Browse files
authored
Merge pull request #7193 from dibarbet/merge_main
Merge main into prerelease
2 parents 817e245 + ab9a8ee commit ba5eb84

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

CHANGELOG.md

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

66
# Latest
7+
* Update xamlTools to 17.11.34924.19 (PR: [#7192](https://github.com/dotnet/vscode-csharp/pull/7192))
8+
* Include process environment variables when running shell commands (PR: [#7152](https://github.com/dotnet/vscode-csharp/pull/7152))
9+
10+
# 2.32.14
711
* Use XML settings for XAML language-configuration.json (PR: https://github.com/dotnet/vscode-csharp/pull/7162)
812
* Bump xamlTools to the latest (PR: https://github.com/dotnet/vscode-csharp/pull/7161)
913
* Update Debugger to v2.30.1 (PR: https://github.com/dotnet/vscode-csharp/pull/7145)
1014

11-
# 2.30.28
12-
* Update Roslyn to 4.11.0-2.24266.3 (PR: [#7135](https://github.com/dotnet/vscode-csharp/pull/7135))
15+
# 2.31.28
16+
* Update Razor to use source generator shipped in extension instead of the SDK (PR: [#7134](https://github.com/dotnet/vscode-csharp/pull/7134))
17+
* Fixes incorrect 'Amibuity between' errors displaying in Razor files (Issue: [#10351](https://github.com/dotnet/razor/issues/10351))
18+
* Update Roslyn to 4.11.0-2.24267.3 (PR: [#7134](https://github.com/dotnet/vscode-csharp/pull/7134))
19+
* Allow Razor to use source generator shipped with tooling (PR: [#73524](https://github.com/dotnet/roslyn/pull/73524))
1320
* Various performance improvements and allocation reductions
1421
* Reduce allocations in retrieving text from parsed trees (PR: [#73512](https://github.com/dotnet/roslyn/pull/73512))
1522
* Improve code action performance (PR: [#73493](https://github.com/dotnet/roslyn/pull/73493))

src/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ export function safeLength<T>(arr: T[] | undefined) {
5858

5959
export async function execChildProcess(
6060
command: string,
61-
workingDirectory: string = getExtensionPath(),
62-
env: NodeJS.ProcessEnv = {}
61+
workingDirectory: string,
62+
env: NodeJS.ProcessEnv
6363
): Promise<string> {
6464
return new Promise<string>((resolve, reject) => {
6565
cp.exec(command, { cwd: workingDirectory, maxBuffer: 500 * 1024, env: env }, (error, stdout, stderr) => {

src/shared/platform.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export class PlatformInformation {
173173
}
174174

175175
private static async GetUnixArchitecture(): Promise<string> {
176-
const architecture = (await util.execChildProcess('uname -m', __dirname)).trim();
176+
const architecture = (await util.execChildProcess('uname -m', __dirname, process.env)).trim();
177177
if (architecture === 'aarch64') {
178178
return 'arm64';
179179
}
@@ -183,7 +183,7 @@ export class PlatformInformation {
183183
// Emulates https://github.com/dotnet/install-scripts/blob/3c6cc06/src/dotnet-install.sh#L187-L189.
184184
private static async GetIsMusl(): Promise<boolean> {
185185
try {
186-
const output = await util.execChildProcess('ldd --version', __dirname);
186+
const output = await util.execChildProcess('ldd --version', __dirname, process.env);
187187
return output.includes('musl');
188188
} catch (err) {
189189
return err instanceof Error ? err.message.includes('musl') : false;

test/vscodeLauncher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async function main() {
6969
}
7070

7171
const dotnetPath = path.join(process.env.DOTNET_ROOT, 'dotnet');
72-
await execChildProcess(`${dotnetPath} build ${sln}`, workspacePath);
72+
await execChildProcess(`${dotnetPath} build ${sln}`, workspacePath, process.env);
7373
}
7474

7575
// Download VS Code, unzip it and run the integration test

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.32",
3+
"version": "2.33",
44
"publicReleaseRefSpec": [
55
"^refs/heads/release$",
66
"^refs/heads/prerelease$",

0 commit comments

Comments
 (0)