MCPcopy Create free account
hub / github.com/Marus/cortex-debug / findSerialPortModuleHelp

Function findSerialPortModuleHelp

src/frontend/swo/sources/serial.ts:8–15  ·  view source on GitHub ↗
(extensionPath: string)

Source from the content-addressed store, hash-verified

6import * as path from 'path';
7
8export function findSerialPortModuleHelp(extensionPath: string) {
9 return 'Node/npm module "serialport" not found. You can install this in one of two ways\n' +
10 '1. Install "Serial Monitor" VSCode extension. https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-serial-monitor\n' +
11 '2. or, you can compile the serialport module locally on your computer. Follow these instructions on a shell prompt\n' +
12 ` cd ${extensionPath}/binary_modules\n` +
13 ` bash ./build.sh ${process.versions['electron']}\n` +
14 'If you chose to compile locally, make sure NodeJS is installed on your system. Visit https://nodejs.org/en/download/';
15}
16
17export function findSerialPortModule(extensionPath: string, useModule) {
18 const paths = [];

Callers 2

serialport.test.tsFile · 0.90
constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected