Browse Source

chore: biome formatting (import order, line wrapping)

ReqX 3 months ago
parent
commit
c00a588b71
3 changed files with 15 additions and 12 deletions
  1. 4 1
      scripts/verify-opencode-host-smoke.ts
  2. 1 1
      src/tools/ast-grep/index.ts
  3. 10 10
      src/tools/lsp/types.ts

+ 4 - 1
scripts/verify-opencode-host-smoke.ts

@@ -287,7 +287,10 @@ async function verifyHostSmoke(tarballPath: string) {
 
     try {
       await Promise.race([
-        waitForHealth(`http://127.0.0.1:${port}/global/health`, healthTimeoutMs),
+        waitForHealth(
+          `http://127.0.0.1:${port}/global/health`,
+          healthTimeoutMs,
+        ),
         exitPromise,
       ]);
     } catch (error) {

+ 1 - 1
src/tools/ast-grep/index.ts

@@ -6,7 +6,6 @@ export const builtinTools: Record<string, ToolDefinition> = {
   ast_grep_replace,
 };
 
-export { ast_grep_search, ast_grep_replace };
 export {
   ensureCliAvailable,
   getAstGrepPath,
@@ -22,3 +21,4 @@ export {
 } from './downloader';
 export type { CliLanguage, CliMatch, SgResult } from './types';
 export { CLI_LANGUAGES } from './types';
+export { ast_grep_replace, ast_grep_search };

+ 10 - 10
src/tools/lsp/types.ts

@@ -47,21 +47,21 @@ export type ServerLookupResult =
   | { status: 'not_installed'; server: ResolvedServer; installHint: string };
 
 export type {
-  Position,
-  Range,
+  CreateFile,
+  DeleteFile,
+  Diagnostic,
+  DocumentSymbol,
   Location,
   LocationLink,
-  Diagnostic,
+  Position,
+  Range,
+  RenameFile,
+  SymbolInfo,
+  TextDocumentEdit,
   TextDocumentIdentifier,
-  VersionedTextDocumentIdentifier,
   TextEdit,
-  TextDocumentEdit,
-  CreateFile,
-  RenameFile,
-  DeleteFile,
+  VersionedTextDocumentIdentifier,
   WorkspaceEdit,
-  SymbolInfo,
-  DocumentSymbol,
 };
 
 export interface DocumentDiagnosticReportFull {