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

Commit091f440

Browse files
authored
Merge pull requestdotnet#4942 from Microsoft/merges/master-to-dev15.8
Merge master to dev15.8
2 parents2abca84 +17b5f8d commit091f440

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

‎src/fsharp/service/service.fs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1780,7 +1780,7 @@ type FSharpProjectOptions =
17801780
static memberUseSameProject(options1,options2)=
17811781
match options1.ProjectId, options2.ProjectIdwith
17821782
| Some(projectId1), Some(projectId2)whennot(String.IsNullOrWhiteSpace(projectId1))&&not(String.IsNullOrWhiteSpace(projectId2))->
1783-
String.Equals(projectId1, projectId2, StringComparison.OrdinalIgnoreCase)
1783+
projectId1= projectId2
17841784
| Some(_), Some(_)
17851785
| None, None-> options1.ProjectFileName= options2.ProjectFileName
17861786
|_->false

‎src/fsharp/service/service.fsi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ type public FSharpProjectOptions =
312312
// Note that this may not reduce to just the project directory, because there may be two projects in the same directory.
313313
ProjectFileName:string
314314

315-
/// This is the unique identifier for the project,uses StringComparison.OrdinalIgnoreCase. If it's None, will key off of ProjectFileName in our caching.
315+
/// This is the unique identifier for the project,it is case sensitive. If it's None, will key off of ProjectFileName in our caching.
316316
ProjectId:string option
317317

318318
/// The files in the project

‎vsintegration/src/FSharp.Editor/Common/Extensions.fs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ type System.IServiceProvider with
2424
memberx.GetService<'T>()= x.GetService(typeof<'T>):?> 'T
2525
memberx.GetService<'S,'T>()= x.GetService(typeof<'S>):?> 'T
2626

27+
typeProjectIdwith
28+
memberthis.ToFSharpProjectIdString()=
29+
this.Id.ToString("D").ToLowerInvariant()
30+
2731
typeFSharpNavigationDeclarationItemwith
2832
memberx.RoslynGlyph:Glyph=
2933
match x.Glyphwith

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ type internal ProjectSitesAndFiles() =
274274
letoption=
275275
letnewOption()={
276276
ProjectFileName= projectSite.ProjectFileName
277-
ProjectId= projectId|> Option.map(fun x-> x.Id.ToString())
277+
ProjectId= projectId|> Option.map(fun x-> x.ToFSharpProjectIdString())
278278
SourceFiles= projectSite.CompilationSourceFiles
279279
OtherOptions= projectSite.CompilationOptions
280280
ReferencedProjects= referencedProjectOptions

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp