File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -188,14 +188,15 @@ export class PythonDebugger extends DebugSession {
188
188
}
189
189
else {
190
190
// When using modules ensure the cwd has been provided
191
- if ( typeof args . cwd !== 'string' || args . cwd . length === 0 ) {
191
+ if ( typeof args . cwd !== 'string' || args . cwd . length === 0 ) {
192
192
return this . sendErrorResponse ( response , 2001 , `'cwd' in 'launch.json' needs to point to the working directory` ) ;
193
193
}
194
194
}
195
195
this . sendEvent ( new TelemetryEvent ( telemetryContracts . Debugger . Load , {
196
196
Debug_Console : args . console ,
197
197
Debug_DebugOptions : args . debugOptions . join ( "," ) ,
198
198
Debug_DJango : args . debugOptions . indexOf ( "DjangoDebugging" ) >= 0 ? "true" : "false" ,
199
+ Debug_PySpark : typeof args . pythonPath === 'string' && args . pythonPath . indexOf ( 'spark-submit' ) > 0 ? 'true' : 'false' ,
199
200
Debug_HasEnvVaraibles : args . env && typeof args . env === "object" ? "true" : "false"
200
201
} ) ) ;
201
202
Original file line number Diff line number Diff line change @@ -35,9 +35,11 @@ let jupMain: jup.Jupyter;
35
35
36
36
export function activate ( context : vscode . ExtensionContext ) {
37
37
let pythonSettings = settings . PythonSettings . getInstance ( ) ;
38
+ const hasPySparkInCompletionPath = pythonSettings . autoComplete . extraPaths . some ( p => p . toLowerCase ( ) . indexOf ( 'spark' ) >= 0 ) ;
38
39
telemetryHelper . sendTelemetryEvent ( telemetryContracts . EVENT_LOAD , {
39
40
CodeComplete_Has_ExtraPaths : pythonSettings . autoComplete . extraPaths . length > 0 ? 'true' : 'false' ,
40
- Format_Has_Custom_Python_Path : pythonSettings . pythonPath . length !== 'python' . length ? 'true' : 'false'
41
+ Format_Has_Custom_Python_Path : pythonSettings . pythonPath . length !== 'python' . length ? 'true' : 'false' ,
42
+ Has_PySpark_Path : hasPySparkInCompletionPath ? 'true' : 'false'
41
43
} ) ;
42
44
lintingOutChannel = vscode . window . createOutputChannel ( pythonSettings . linting . outputWindow ) ;
43
45
formatOutChannel = lintingOutChannel ;
You can’t perform that action at this time.
0 commit comments