Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit94ea6fb

Browse files
committed
Fix for: Issue 899333
[Watson] clr20r3: CLR_EXCEPTION_SYSTEM.IO.FILENOTFOUNDEXCEPTION_80070002_FSharp.Editor.dll!Microsoft.VisualStudio.FSharp.Editor.SmartIndent.Microsoft-VisualStudio-Text-Editor-ISmartIndent-GetDesiredIndentationBugLincoln AtkinsonActiveif textManager.GetUserPreferences returns an error that error will be translated to an exception, always. The fix is to default the value if an error occurs, otherwis use the value retrieved from preferences. (changeset 1305824)
1 parent908ab16 commit94ea6fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎vsintegration/src/vs/FsPkgs/FSharp.Editor/SmartIndent.fs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ type SmartIndent (textView : ITextView, textManager : IVsTextManager) =
5050
memberthis.GetDesiredIndentation(line:ITextSnapshotLine)=
5151

5252
letlp=[| LANGPREFERENCES(guidLang= Guid(FSharpCommonConstants.languageServiceGuidString))|]
53-
ErrorHandler.ThrowOnFailure(textManager.GetUserPreferences(null,null, lp,null))|> ignore
53+
letindentStyle=ifErrorHandler.Succeeded(textManager.GetUserPreferences(null,null, lp,null))then lp.[0].IndentStyleelse vsIndentStyle.vsIndentStyleDefault
5454

55-
if(lp.[0].IndentStyle= vsIndentStyle.vsIndentStyleNone||_textView=null||_textView.IsClosed)then
55+
if(indentStyle= vsIndentStyle.vsIndentStyleNone||_textView=null||_textView.IsClosed)then
5656
Nullable<int>()
5757
else
5858

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp