Skip to content

[typespec-vscode] Fix openapi3 preview error when path contain space #7353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 52 commits into
base: main
Choose a base branch
from

Conversation

mzhongl524
Copy link
Member

Fix: #7281

OpenAPI3 preview reports error when the path contains space

@mzhongl524 mzhongl524 added the ide Issues for VS, VSCode, Monaco, etc. label May 15, 2025
@mzhongl524 mzhongl524 marked this pull request as draft May 15, 2025 03:24
Copy link
Contributor

github-actions bot commented May 15, 2025

❌ There is undocummented changes. Run chronus add to add a changeset or click here.

The following packages have changes but are not documented.

  • @typespec/internal-build-utils

The following packages have already been documented:

  • typespec-vscode
Show changes

typespec-vscode - fix ✏️

Fix openapi3 preview error when path contains space

@azure-sdk
Copy link
Collaborator

azure-sdk commented May 15, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@mzhongl524 mzhongl524 marked this pull request as ready for review May 16, 2025 08:21
@mzhongl524 mzhongl524 requested a review from witemple-msft as a code owner May 19, 2025 03:15
@@ -230,21 +231,18 @@ export function spawnExecution(
env?: NodeJS.ProcessEnv,
on?: spawnExecutionEvents,
): Promise<ExecOutput> {
const shell = process.platform === "win32";
const cmd = shell && exe.includes(" ") ? `"${exe}"` : exe;
let stdout = "";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the change will impact all the code spawn execution. please ask vender to run a test pass to make sure it doesnt break anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide Issues for VS, VSCode, Monaco, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[vscode] OpenAPI3 preview reports error when the path contains space
4 participants