• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nguyenhuuit / adventofcode-runner / #4

10 Jun 2025 04:49PM UTC coverage: 9.492%. Remained the same
#4

push

nguyenhuuit
ci: publish coverage

20 of 137 branches covered (14.6%)

Branch coverage included in aggregate %.

36 of 453 relevant lines covered (7.95%)

0.2 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/hooks/useVsCode.ts
1
import { exec } from 'child_process';
2

3
import { useCallback } from 'react';
4

5
export const useVsCode = () => {
×
6
  const openFile = useCallback((filePath: string): void => {
×
7
    if (process.env['TERM_PROGRAM'] === 'vscode') {
×
8
      const command = `code --reuse-window ${filePath}`;
×
9
      exec(command, () => {
×
10
        // Fire and forget
11
      });
12
    }
13
  }, []);
14
  return {
×
15
    openFile,
16
  };
17
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc