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

Commit293b115

Browse files
vasily-kirichenkoKevinRansom
authored andcommitted
Turn off closed files diagnostic analysis & fix creating IncrementalBuilder when a file opens (dotnet#2395)
* turn off closed files diagnostic analysisuse predefined BlockForCompletionItems option instead of hand made one* fixed: IncrementalBuilder is created every time a file in project opened / reopened
1 parent5739335 commit293b115

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

‎vsintegration/src/FSharp.Editor/Common/LanguageService.fs‎

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -299,14 +299,11 @@ and
299299
let recsetup(site:IProjectSite)=
300300
letprojectGuid= Guid(site.ProjectGuid)
301301
letprojectFileName= site.ProjectFileName()
302-
303302
letprojectDisplayName= projectDisplayNameOf projectFileName
304-
305303
letprojectId= workspace.ProjectTracker.GetOrCreateProjectIdForPath(projectFileName, projectDisplayName)
306304

307-
projectInfoManager.UpdateProjectInfo(projectId, site, workspace)
308-
309305
if isNull(workspace.ProjectTracker.GetProject projectId)then
306+
projectInfoManager.UpdateProjectInfo(projectId, site, workspace)
310307
letprojectContextFactory= package.ComponentModel.GetService<IWorkspaceProjectContextFactory>();
311308
leterrorReporter= ProjectExternalErrorReporter(projectId,"FS", this.SystemServiceProvider)
312309

@@ -369,12 +366,8 @@ and
369366
workspace.Options<- workspace.Options.WithChangedOption(NavigationBarOptions.ShowNavigationBar, FSharpCommonConstants.FSharpLanguageName,true)
370367
lettextViewAdapter= package.ComponentModel.GetService<IVsEditorAdaptersFactoryService>()
371368

372-
letblockForCompletionOption=
373-
PerLanguageOption<bool>(
374-
"CompletionOptions","BlockForCompletionItems", defaultValue=true,
375-
storageLocations=[| RoamingProfileStorageLocation("TextEditor.%%LANGUAGE%%.Specific.CompletionOptions - BlockForCompletionItems")|])
376-
377-
workspace.Options<- workspace.Options.WithChangedOption(blockForCompletionOption, FSharpCommonConstants.FSharpLanguageName,false)
369+
workspace.Options<- workspace.Options.WithChangedOption(Completion.CompletionOptions.BlockForCompletionItems, FSharpCommonConstants.FSharpLanguageName,false)
370+
workspace.Options<- workspace.Options.WithChangedOption(Shared.Options.ServiceFeatureOnOffOptions.ClosedFileDiagnostic, FSharpCommonConstants.FSharpLanguageName, Nullablefalse)
378371

379372
match textView.GetBuffer()with
380373
|(VSConstants.S_OK, textLines)->

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp