public int?GetDesiredIndentation(ITextSnapshotLine line) { if (_provider._pyService.LangPrefs.IndentMode == vsIndentStyle.vsIndentStyleSmart) { return(AutoIndent.GetLineIndentation(_provider._editorServices.GetBufferInfo(line.Snapshot.TextBuffer), line, _textView)); } else { return(null); } }
public int?GetDesiredIndentation(ITextSnapshotLine line) { if (_pyService.LangPrefs.IndentMode == vsIndentStyle.vsIndentStyleSmart) { return(AutoIndent.GetLineIndentation(PythonTextBufferInfo.ForBuffer(_pyService.Site, line.Snapshot.TextBuffer), line, _textView)); } else { return(null); } }