@@ -71,7 +71,7 @@ const FileEditor = ({
7171 if ( monacoRef . current === null ) return ;
7272 return {
7373 startLineNumber : pylint . line ,
74- startColumn : pylint . column ,
74+ startColumn : pylint . column + 1 ,
7575 endLineNumber :
7676 pylint . endLine === null ? pylint . column : pylint . endLine ,
7777 endColumn :
@@ -169,37 +169,37 @@ const FileEditor = ({
169169
170170 monacoEditorSnippet ( monaco , commsManager ) ;
171171
172- editor . addCommand (
173- monaco . KeyMod . CtrlCmd | monaco . KeyMod . Shift | monaco . KeyCode . KeyI ,
174- function ( ) {
175- if ( language !== "python" )
176- //TODO: only format for python. We could add more later
177- return ;
178-
179- if ( commsManager && fileContent ) {
180- commsManager . code_format ( fileContent ) ;
181- }
182- }
183- ) ;
184-
185- editor . addCommand (
186- monaco . KeyMod . CtrlCmd | monaco . KeyMod . Shift | monaco . KeyCode . KeyL ,
187- function ( ) {
188- if ( language !== "python" )
189- //TODO: only format for python. We could add more later
190- return ;
191-
192- if ( commsManager && fileContent ) {
193- commsManager . code_analysis ( fileContent , [
194- ...pylint_error ,
195- ...pylint_warning ,
196- ...pylint_convention ,
197- ...pylint_refactor ,
198- ...pylint_fatal ,
199- ] ) ;
200- }
201- }
202- ) ;
172+ // editor.addCommand(
173+ // monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.KeyI,
174+ // function () {
175+ // if (language !== "python")
176+ // //TODO: only format for python. We could add more later
177+ // return;
178+
179+ // if (commsManager && fileContent) {
180+ // commsManager.code_format(fileContent);
181+ // }
182+ // }
183+ // );
184+
185+ // editor.addCommand(
186+ // monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.KeyL,
187+ // function () {
188+ // if (language !== "python")
189+ // //TODO: only format for python. We could add more later
190+ // return;
191+
192+ // if (commsManager && fileContent) {
193+ // commsManager.code_analysis(fileContent, [
194+ // ...pylint_error,
195+ // ...pylint_warning,
196+ // ...pylint_convention,
197+ // ...pylint_refactor,
198+ // ...pylint_fatal,
199+ // ]);
200+ // }
201+ // }
202+ // );
203203
204204 return ( ) => {
205205 editorRef . current
@@ -303,16 +303,6 @@ const FileEditor = ({
303303 }
304304 }
305305 ) ;
306-
307- // if (language !== "python") return;
308-
309- // commsManager.code_analysis(fileContent, [
310- // ...pylint_error,
311- // ...pylint_warning,
312- // ...pylint_convention,
313- // ...pylint_refactor,
314- // ...pylint_fatal,
315- // ]);
316306 } , [ fileContent ] ) ;
317307
318308 return (
0 commit comments