-
Notifications
You must be signed in to change notification settings - Fork 167
Expand file tree
/
Copy pathWorkspaceOperations.fs
More file actions
35 lines (28 loc) · 1.35 KB
/
WorkspaceOperations.fs
File metadata and controls
35 lines (28 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
namespace FsAutoComplete.BuildServer
open System
open System.IO
open System.Threading.Tasks
open FsAutoComplete.Logging
open FsAutoComplete.BuildServerProtocol.JsonRpc
open FsAutoComplete.BuildServerProtocol.BuildServerProtocol
/// Simple workspace operations for Build Server Protocol
module WorkspaceOperations =
let private logger = LogProvider.getLoggerByName "WorkspaceOperations"
/// Initialize workspace - for now just log and return success
let initializeWorkspace () =
logger.info (Log.setMessage "Initializing workspace...")
Task.FromResult(Result.Ok ())
/// Peek workspace - simplified for now
let peekWorkspace (request: WorkspacePeekRequest) =
logger.info (Log.setMessage "Peeking workspace at {directory}" >> Log.addContext "directory" request.Directory)
let response = { Found = [||] }
Task.FromResult(Result.Ok response)
/// Load workspace - simplified for now
let loadWorkspace (request: WorkspaceLoadRequest) =
logger.info (Log.setMessage "Loading workspace with {documentCount} documents" >> Log.addContext "documentCount" request.TextDocuments.Length)
let response = { WorkspaceRoot = Environment.CurrentDirectory; Projects = [||] }
Task.FromResult(Result.Ok response)
/// Shutdown workspace
let shutdown () =
logger.info (Log.setMessage "Shutting down workspace...")
Task.FromResult(Result.Ok ())