Exemple #1
0
 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);
     }
 }
Exemple #2
0
 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);
     }
 }