mirror of
https://github.com/microsoft/pyright.git
synced 2024-10-05 20:38:25 +03:00
Fixed debugging of command-line tool.
This commit is contained in:
parent
64708ce30b
commit
01204a1db2
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
@ -5,10 +5,10 @@
|
||||
"name": "Pyright CLI",
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"program": "${workspaceRoot}/index.js",
|
||||
"program": "${workspaceRoot}/index.debug.js",
|
||||
"protocol": "inspector",
|
||||
"cwd": "${workspaceRoot}",
|
||||
"preLaunchTask": "npm: build:pyright",
|
||||
"preLaunchTask": "npm: build:analyzer",
|
||||
"args": [
|
||||
"-p",
|
||||
"${workspaceRoot}/../brain",
|
||||
|
6
index.debug.js
Normal file
6
index.debug.js
Normal file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
// Stash the base directory into a global variable.
|
||||
global.__rootDirectory = __dirname + '/dist/';
|
||||
|
||||
require('./client/server/pyright')
|
Loading…
Reference in New Issue
Block a user