|
351 | 351 | overridethis.Initialize()= |
352 | 352 | base.Initialize() |
353 | 353 |
|
| 354 | + |
354 | 355 | letworkspaceChanged(args:WorkspaceChangeEventArgs)= |
355 | 356 | match args.Kindwith |
356 | 357 | | WorkspaceChangeKind.ProjectAdded-> this.OnProjectAdded(args.ProjectId) |
@@ -577,12 +578,13 @@ type |
577 | 578 | match hierwith |
578 | 579 | |:? IProvideProjectSiteas siteProviderwhennot(IsScript(filename))-> |
579 | 580 | this.SetupProjectFile(siteProvider, this.Workspace,"SetupNewTextView") |
580 | | -|_whennot(IsScript(filename))-> |
| 581 | +|hwhennot(IsScript(filename))-> |
581 | 582 | letdocId= this.Workspace.CurrentSolution.GetDocumentIdsWithFilePath(filename).FirstOrDefault() |
582 | 583 | match docIdwith |
583 | 584 | |null-> |
584 | | -letfileContents= VsTextLines.GetFileContents(textLines, textViewAdapter) |
585 | | - this.SetupStandAloneFile(filename, fileContents, this.Workspace, hier) |
| 585 | +ifnot(h.IsCapabilityMatch("CPS"))then |
| 586 | +letfileContents= VsTextLines.GetFileContents(textLines, textViewAdapter) |
| 587 | + this.SetupStandAloneFile(filename, fileContents, this.Workspace, hier) |
586 | 588 | | id-> |
587 | 589 | projectInfoManager.UpdateProjectInfoWithProjectId(id.ProjectId,"SetupNewTextView", invalidateConfig=true) |
588 | 590 | |_-> |
|