MCPcopy Index your code
hub / github.com/DTStack/molecule / updateEditorLineColumnInfo

Method updateEditorLineColumnInfo

src/controller/editor.tsx:360–378  ·  view source on GitHub ↗
(
        editorInstance: MonacoEditor.IStandaloneCodeEditor
    )

Source from the content-addressed store, hash-verified

358 }
359
360 public updateEditorLineColumnInfo(
361 editorInstance: MonacoEditor.IStandaloneCodeEditor
362 ) {
363 if (editorInstance) {
364 const position = editorInstance.getPosition();
365
366 const { STATUS_EDITOR_INFO } = this.builtinService.getModules();
367 if (STATUS_EDITOR_INFO) {
368 this.statusBarService.update(
369 Object.assign(STATUS_EDITOR_INFO, {
370 data: {
371 ln: position?.lineNumber,
372 col: position?.column,
373 },
374 })
375 );
376 }
377 }
378 }
379
380 public onEditorInstanceMount(
381 editorInstance: MonacoEditor.IStandaloneCodeEditor

Callers 1

initEditorEventsMethod · 0.95

Calls 2

getModulesMethod · 0.65
updateMethod · 0.65

Tested by

no test coverage detected