Skip to content

Commit 95dd60b

Browse files
committed
fix: fixes graph view not using the system path
1 parent 92ca721 commit 95dd60b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

vscode-extension/src/views/GraphWebview.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,15 @@ export class GraphWebview {
4848
this._panel = panel;
4949
this._extensionUri = extensionUri;
5050

51-
// Get CLI path from configuration or use bundled binary
51+
// Get CLI path from configuration or use system binary
5252
const configuredPath = vscode.workspace.getConfiguration('reactAnalyzer').get<string>('cliPath');
5353
if (configuredPath && configuredPath.length > 0) {
5454
this._cliPath = configuredPath;
5555
console.log('Using configured CLI path:', this._cliPath);
5656
} else {
57-
// Use bundled binary from parent directory during development
58-
this._cliPath = path.join(path.dirname(extensionUri.fsPath), 'react-analyzer');
57+
// Use react-analyzer from system PATH
58+
// Users should install the CLI separately (see extension README)
59+
this._cliPath = 'react-analyzer';
5960
console.log('Using default CLI path:', this._cliPath);
6061
}
6162

0 commit comments

Comments
 (0)