Skip to content

Fix lsp start on MacOS - #442

Closed
Hoa Nguyen (nguhoa) wants to merge 2 commits into
mainfrom
nguhoa/macos
Closed

Hoa Nguyen (nguhoa) wants to merge 2 commits into
mainfrom
nguhoa/macos

Conversation

@nguhoa

Copy link
Copy Markdown
Contributor

Fix lsp start on MacOS.
Fix: #432

Copilot AI balanced review requested due to automatic review settings October 3, 2026 01:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Explicit runtime overrides fail on unmapped hosts in both build and watch scripts.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Addresses #432 by packaging a native Apple Silicon language server and selecting host-matching runtimes for local development.

Changes:

  • Package osx-arm64 binaries for darwin-arm64.
  • Default build/watch scripts to the host runtime.
  • Add architecture regression tests and update documentation.
File Description
src/​vscode-extensions/​shared/​scripts/​hostRuntime.js Resolves host runtime identifiers.
src/​vscode-extensions/​microsoft-powerplatformlang-extension/​scripts/​watchLsp.js Uses the host runtime by default.
src/​vscode-extensions/​microsoft-powerplatformlang-extension/​scripts/​tests/​packageVsix.test.js Checks packaging runtime selection.
src/​vscode-extensions/​microsoft-powerplatformlang-extension/​scripts/​tests/​lspBuildScripts.test.js Checks build/watch defaults and overrides.
src/​vscode-extensions/​microsoft-powerplatformlang-extension/​scripts/​tests/​hostRuntime.test.js Tests host runtime mappings.
src/​vscode-extensions/​microsoft-powerplatformlang-extension/​scripts/​tests/​helpers/​targets.js Provides architecture comparison helpers.
src/​vscode-extensions/​microsoft-powerplatformlang-extension/​scripts/​tests/​extensionProj.test.js Checks MSBuild packaging architecture alignment.
src/​vscode-extensions/​microsoft-powerplatformlang-extension/​scripts/​packageVsix.js Selects ARM64 for Apple Silicon packages.
src/​vscode-extensions/​microsoft-powerplatformlang-extension/​scripts/​buildLsp.js Uses the host runtime by default.
src/​vscode-extensions/​microsoft-powerplatformlang-extension/​package.json Adds the packaging test command.
src/​vscode-extensions/​microsoft-powerplatformlang-extension/​extension.proj Stages ARM64 binaries before packaging.
src/​vscode-extensions/​microsoft-powerplatformlang-extension/​.vscodeignore Excludes packaging tests from VSIX files.
AGENTS.md Documents runtime selection and packaging tests.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

const rawArgs = process.argv.slice(2);

let target = 'win-x64';
let target = getHostRuntimeIdentifier();
Copilot AI balanced review requested due to automatic review settings October 3, 2026 03:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Watch mode rejects explicit runtime targets on unmapped hosts before parsing the override.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)

const rawArgs = process.argv.slice(2);

let target = 'win-x64';
let target = getHostRuntimeIdentifier();
@anderson-joyle

Copy link
Copy Markdown
Contributor

Fixed by #449

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copilot Studio VS Code extension fails to start the Language Server on Apple Silicon.

3 participants