Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite1ff7d4

Browse files
mizchiclaude
andcommitted
fix: correct MoonBit LSP configuration for proper server detection
- Change MoonBit LSP command from "moonbit-lsp" to "moonbit lsp"- Add proper binFindStrategy with correct structure for global moonbit binary- Add checkCommand to properly detect MoonBit installation- This should fix CI failures by properly detecting when MoonBit is not installed🤖 Generated with [Claude Code](https://claude.ai/code)Co-Authored-By: Claude <noreply@anthropic.com>
1 parentccd9d45 commite1ff7d4

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

‎scripts/check-examples.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ const LANGUAGE_CONFIGS: Record<string, LanguageConfig> = {
4747
"moonbit-project":{
4848
language:"moonbit",
4949
testFiles:["src/test/test_diagnostics.mbt"],
50-
lspCommand:"npx moonbit-lsp",
51-
// No checkCommand needed - npx will handle installation automatically
50+
lspCommand:"moonbit lsp",
51+
checkCommand:"moonbit --version",
52+
installHint:"Install from: https://www.moonbitlang.com/download",
5253
},
5354
"fsharp-project":{
5455
language:"fsharp",

‎src/presets/moonbit.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ import type { Preset } from "../config/schema.ts";
99
*/
1010
exportconstmoonbitAdapter:Preset={
1111
presetId:"moonbit",
12-
bin:"moonbit-lsp",
13-
args:[],
12+
bin:"moonbit",
13+
args:["lsp"],
1414
files:["**/*.mbt","**/*.mbti"],
15+
binFindStrategy:{
16+
strategies:[{type:"global",names:["moonbit"]}],
17+
},
1518
disable:[
1619
// "get_hover", // May be slow/timeout on some files
1720
],

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp