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 359
359
override this.Initialize () =
360
360
base .Initialize()
361
361
362
-
363
362
let workspaceChanged ( args : WorkspaceChangeEventArgs ) =
364
363
match args.Kind with
365
364
| WorkspaceChangeKind.ProjectAdded -> this.OnProjectAdded( args.ProjectId)
@@ -586,13 +585,12 @@ type
586
585
match hier with
587
586
| :? IProvideProjectSite as siteProvider when not ( IsScript( filename)) ->
588
587
this.SetupProjectFile( siteProvider, this.Workspace, " SetupNewTextView" )
589
- | h when not ( IsScript( filename)) ->
588
+ | _ when not ( IsScript( filename)) ->
590
589
let docId = this.Workspace.CurrentSolution.GetDocumentIdsWithFilePath( filename) .FirstOrDefault()
591
590
match docId with
592
591
| 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)
596
594
| id ->
597
595
projectInfoManager.UpdateProjectInfoWithProjectId( id.ProjectId, " SetupNewTextView" , invalidateConfig= true )
598
596
| _ ->
You can’t perform that action at this time.
0 commit comments