Skip to content

Commit 2bcb342

Browse files
committed
Revert "miscfiles (#4318)"
This reverts commit 5d666fa.
1 parent 5d666fa commit 2bcb342

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@ type
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
| _ ->

0 commit comments

Comments
 (0)