atom-typescript-beta (4 deprecation) :

TextEditor.screenPositionForPixelPosition
 ->  This is now a view method.  Call `TextEditorElement::screenPositionForPixelPosition` instead.

TextEditor.getScrollTop
 ->  This is now a view method.  Call `TextEditorElement::getScrollTop` instead.

TextEditor.getScrollLeft
 ->  This is now a view method.  Call `TextEditorElement::getScrollLeft` instead.

in ~/.atom/packages/atom-typescript-beta/dist/main/atom/tooltipManager.js

21:  function attach(editorView, editor) {

...
40:   subscriber.subscribe(scroll, 'mousemove', (e) => {
        var pixelPt = pixelPositionFromMouseEvent(editorView, e);
        // var screenPt = editor.screenPositionForPixelPosition(pixelPt);
        var textEditorElement = atom.views.getView(editor);
        var screenPt = textEditorElement.screenPositionForPixelPosition(pixelPt);
     ...

56:   function showExpressionType(e) {
         ...
62:       // pixelPt.top += editor.getScrollTop();
            // pixelPt.left += editor.getScrollLeft();
            // var screenPt = editor.screenPositionForPixelPosition(pixelPt);
            var textEditorElement = atom.views.getView(editor);
            pixelPt.top += textEditorElement.getScrollTop();
            pixelPt.left += textEditorElement.getScrollLeft();
            var screenPt = textEditorElement.screenPositionForPixelPosition(pixelPt);
    ...

Leave a Reply