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

Move the WIP LSP extension to the common vsix#18752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
abonie wants to merge7 commits intodotnet:main
base:main
Choose a base branch
Loading
fromabonie:add-lsp-to-old-vsix
Draft
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Remove some debug code
  • Loading branch information
@abonie
abonie committedJul 11, 2025
commit169f7c4a939169a7efd336e879dbe84d39ee8674
15 changes: 0 additions & 15 deletionssrc/FSharp.Compiler.LanguageServer/FSharpLanguageServer.fs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,8 +2,6 @@ namespace FSharp.Compiler.LanguageServer

open System
open System.Diagnostics
open System.Globalization
open System.IO
open System.Runtime.CompilerServices

open FSharp.Compiler.LanguageServer.Common
Expand DownExpand Up@@ -109,19 +107,6 @@ type FSharpLanguageServer

jsonRpc.TraceSource.Listeners.Add(listener) |> ignore

let logDir = @"Q:\logs"
let guid = Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture)
let logFileName = sprintf "FSharpLSPLogs_%s.log" guid
let logFilePath = Path.Combine(logDir, logFileName)
let fileListener = new TextWriterTraceListener(logFilePath)

jsonRpc.TraceSource.Listeners.Add(fileListener) |> ignore

let processName = Process.GetCurrentProcess().ProcessName
let logProcessFileName = sprintf "ProcessName_%s.log" guid
let logLine = sprintf "[%s] Server constructor called by process: %s" (DateTime.UtcNow.ToString("o", CultureInfo.InvariantCulture)) processName
File.AppendAllText(Path.Combine(logDir, logProcessFileName), logLine + Environment.NewLine)

jsonRpc.TraceSource.Switch.Level <- SourceLevels.All

let server =
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,6 +24,7 @@ internal class ExtensionEntrypoint : Extension
displayName: "FSharp.VisualStudio.Extension",
description: "Extension description")
{
// TODO: Probably should be replaced by a range of versions
InstallationTargetVersion = "18.0",
},
};
Expand All@@ -34,6 +35,5 @@ protected override void InitializeServices(IServiceCollection serviceCollection)
base.InitializeServices(serviceCollection);

// You can configure dependency injection here by adding services to the serviceCollection.
Debug.WriteLine("Initializing services for FSharp.VisualStudio.Extension");
}
}
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -135,7 +135,6 @@
<ProjectReference Include="$(FSharpSourcesRoot)\FSharp.VisualStudio.Extension\FSharp.VisualStudio.Extension.csproj">
<Name>FSharp.VisualStudio.Extension</Name>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
<!--<SetTargetFramework>TargetFramework=net8.0-windows</SetTargetFramework>-->
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties>
<IncludeInVSIX>true</IncludeInVSIX>
<IncludeOutputGroupsInVSIX>ExtensionFilesOutputGroup</IncludeOutputGroupsInVSIX>
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -82,5 +82,4 @@
</Content>
</ItemGroup>
</Target>

</Project>
Loading

[8]ページ先頭

©2009-2025 Movatter.jp