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

Commitac2d8d5

Browse files
authored
miscfiles (#4328)
1 parent8f4f2ae commitac2d8d5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ type
351351
overridethis.Initialize()=
352352
base.Initialize()
353353

354+
354355
letworkspaceChanged(args:WorkspaceChangeEventArgs)=
355356
match args.Kindwith
356357
| WorkspaceChangeKind.ProjectAdded-> this.OnProjectAdded(args.ProjectId)
@@ -577,12 +578,13 @@ type
577578
match hierwith
578579
|:? IProvideProjectSiteas siteProviderwhennot(IsScript(filename))->
579580
this.SetupProjectFile(siteProvider, this.Workspace,"SetupNewTextView")
580-
|_whennot(IsScript(filename))->
581+
|hwhennot(IsScript(filename))->
581582
letdocId= this.Workspace.CurrentSolution.GetDocumentIdsWithFilePath(filename).FirstOrDefault()
582583
match docIdwith
583584
|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)
586588
| id->
587589
projectInfoManager.UpdateProjectInfoWithProjectId(id.ProjectId,"SetupNewTextView", invalidateConfig=true)
588590
|_->

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp