File tree Expand file tree Collapse file tree 2 files changed +0
-22
lines changed
packages/pyright-scip/src Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ export interface IndexOptions {
5
5
projectName : string ;
6
6
projectVersion : string ;
7
7
projectNamespace ?: string ;
8
- snapshotDir : string ;
9
8
environment ?: string ;
10
9
dev : boolean ;
11
10
output : string ;
@@ -65,7 +64,6 @@ export function mainCommand(
65
64
. option ( '--cwd <path>' , 'working directory for executing scip-python' , process . cwd ( ) )
66
65
. option ( '--target-only <path>' , 'limit analysis to the following path' )
67
66
. option ( '--output <path>' , 'path to the output file' , DEFAULT_OUTPUT_FILE )
68
- . option ( '--snapshot-dir <path>' , 'the directory to output a snapshot of the SCIP dump' )
69
67
. option ( '--quiet' , 'run without logging and status information' , false )
70
68
. option (
71
69
'--show-progress-rate-limit <limit>' ,
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ function indexAction(options: IndexOptions): void {
17
17
}
18
18
19
19
const projectRoot = options . cwd ;
20
- const snapshotDir = options . snapshotDir ;
21
20
const environment = options . environment ;
22
21
23
22
const originalWorkdir = process . cwd ( ) ;
@@ -51,25 +50,6 @@ function indexAction(options: IndexOptions): void {
51
50
52
51
fs . close ( output ) ;
53
52
54
- if ( snapshotDir ) {
55
- sendStatus ( `Writing snapshot from index: ${ outputFile } ` ) ;
56
-
57
- const scipIndex = scip . Index . deserializeBinary ( fs . readFileSync ( outputFile ) ) ;
58
- for ( const doc of scipIndex . documents ) {
59
- if ( doc . relative_path . startsWith ( '..' ) ) {
60
- console . log ( 'Skipping Doc:' , doc . relative_path ) ;
61
- continue ;
62
- }
63
-
64
- const inputPath = path . join ( projectRoot , doc . relative_path ) ;
65
- const input = Input . fromFile ( inputPath ) ;
66
- const obtained = formatSnapshot ( input , doc , scipIndex . external_symbols ) ;
67
- const relativeToInputDirectory = path . relative ( projectRoot , inputPath ) ;
68
- const outputPath = path . resolve ( snapshotDir , relativeToInputDirectory ) ;
69
- writeSnapshot ( outputPath , obtained ) ;
70
- }
71
- }
72
-
73
53
process . chdir ( originalWorkdir ) ;
74
54
}
75
55
You can’t perform that action at this time.
0 commit comments