File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
vsintegration/src/FSharp.Editor/LanguageService Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 359359 override this.Initialize () =
360360 base .Initialize()
361361
362-
363362 let workspaceChanged ( args : WorkspaceChangeEventArgs ) =
364363 match args.Kind with
365364 | WorkspaceChangeKind.ProjectAdded -> this.OnProjectAdded( args.ProjectId)
@@ -586,13 +585,12 @@ type
586585 match hier with
587586 | :? IProvideProjectSite as siteProvider when not ( IsScript( filename)) ->
588587 this.SetupProjectFile( siteProvider, this.Workspace, " SetupNewTextView" )
589- | h when not ( IsScript( filename)) ->
588+ | _ when not ( IsScript( filename)) ->
590589 let docId = this.Workspace.CurrentSolution.GetDocumentIdsWithFilePath( filename) .FirstOrDefault()
591590 match docId with
592591 | null ->
593- if not ( h.IsCapabilityMatch( " CPS" )) then
594- let fileContents = VsTextLines.GetFileContents( textLines, textViewAdapter)
595- this.SetupStandAloneFile( filename, fileContents, this.Workspace, hier)
592+ let fileContents = VsTextLines.GetFileContents( textLines, textViewAdapter)
593+ this.SetupStandAloneFile( filename, fileContents, this.Workspace, hier)
596594 | id ->
597595 projectInfoManager.UpdateProjectInfoWithProjectId( id.ProjectId, " SetupNewTextView" , invalidateConfig= true )
598596 | _ ->
You can’t perform that action at this time.
0 commit comments