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

Commita662e18

Browse files
committed
Code review feedback, and add clickable URLs setting
1 parentb6697a7 commita662e18

File tree

1 file changed

+11
-8
lines changed
  • vsintegration/src/vs/FsPkgs/FSharp.LanguageService

1 file changed

+11
-8
lines changed

‎vsintegration/src/vs/FsPkgs/FSharp.LanguageService/servicem.fs‎

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,6 +2025,7 @@ type FSharpPackage() as self =
20252025
letfsharpSpecificProfileSettings=
20262026
[|"TextEditor.F#.Insert Tabs", boxfalse
20272027
"TextEditor.F#.Brace Completion", boxtrue
2028+
"TextEditor.F#.Make URLs Hot", boxfalse
20282029
"TextEditor.F#.Indent Style", box1u|]
20292030

20302031
overrideself.Initialize()=
@@ -2038,14 +2039,16 @@ type FSharpPackage() as self =
20382039
/// We specify our customizations in the General profile for VS, but we have found that in some cases
20392040
/// those customizations are incorrectly ignored.
20402041
memberprivatethis.EstablishDefaultSettingsIfMissing()=
2041-
letsettingsManager= this.GetService(typeof<SVsSettingsPersistenceManager>):?> Microsoft.VisualStudio.Settings.ISettingsManager
2042-
for settingName,defaultValuein fsharpSpecificProfileSettingsdo
2043-
// Only take action if the setting has no current custom value
2044-
// If cloud-synced settings have already been applied or the user has made an explicit change, do nothing
2045-
match settingsManager.TryGetValue(settingName)with
2046-
| Microsoft.VisualStudio.Settings.GetValueResult.Missing,_->
2047-
settingsManager.SetValueAsync(settingName, defaultValue,false)|> ignore
2048-
|_->()
2042+
match this.GetService(typeof<SVsSettingsPersistenceManager>)with
2043+
|:? Microsoft.VisualStudio.Settings.ISettingsManageras settingsManager->
2044+
for settingName,defaultValuein fsharpSpecificProfileSettingsdo
2045+
// Only take action if the setting has no current custom value
2046+
// If cloud-synced settings have already been applied or the user has made an explicit change, do nothing
2047+
match settingsManager.TryGetValue(settingName)with
2048+
| Microsoft.VisualStudio.Settings.GetValueResult.Missing,_->
2049+
settingsManager.SetValueAsync(settingName, defaultValue,false)|> ignore
2050+
|_->()
2051+
|_->()
20492052

20502053
memberself.RegisterForIdleTime()=
20512054
mgr<-(self.GetService(typeof<SOleComponentManager>):?> IOleComponentManager)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp