### YamlMime:ManagedReference items: - uid: Microsoft.SqlTools.ServiceLayer.Workspace.WorkspaceService`1.TextDocCloseCallback commentId: T:Microsoft.SqlTools.ServiceLayer.Workspace.WorkspaceService`1.TextDocCloseCallback id: WorkspaceService`1.TextDocCloseCallback parent: Microsoft.SqlTools.ServiceLayer.Workspace children: [] langs: - csharp - vb name: WorkspaceService.TextDocCloseCallback nameWithType: WorkspaceService.TextDocCloseCallback fullName: Microsoft.SqlTools.ServiceLayer.Workspace.WorkspaceService.TextDocCloseCallback type: Delegate source: remote: path: src/Microsoft.SqlTools.ServiceLayer/Workspace/WorkspaceService.cs branch: master repo: https://kburtram:67c6623fc506400046096af249535f684d9ea40b@github.com/Microsoft/sqltoolsservice.git id: TextDocCloseCallback path: ../src/Microsoft.SqlTools.ServiceLayer/Workspace/WorkspaceService.cs startLine: 93 assemblies: - Microsoft.SqlTools.ServiceLayer namespace: Microsoft.SqlTools.ServiceLayer.Workspace summary: "\nDelegate for callbacks that occur when a text document is closed\n" example: [] syntax: content: public delegate Task TextDocCloseCallback(ScriptFile closedFile, EventContext eventContext); content.vb: Public Delegate Function TextDocCloseCallback(closedFile As ScriptFile, eventContext As EventContext) As Task parameters: - id: closedFile type: Microsoft.SqlTools.ServiceLayer.Workspace.Contracts.ScriptFile description: File that was closed - id: eventContext type: Microsoft.SqlTools.ServiceLayer.Hosting.Protocol.EventContext description: Context of the event raised for changed files return: type: System.Threading.Tasks.Task nameWithType.vb: WorkspaceService(Of TConfig).TextDocCloseCallback modifiers.csharp: - public - delegate modifiers.vb: - Public - Delegate fullName.vb: Microsoft.SqlTools.ServiceLayer.Workspace.WorkspaceService(Of TConfig).TextDocCloseCallback name.vb: WorkspaceService(Of TConfig).TextDocCloseCallback references: - uid: Microsoft.SqlTools.ServiceLayer.Workspace commentId: N:Microsoft.SqlTools.ServiceLayer.Workspace isExternal: false name: Microsoft.SqlTools.ServiceLayer.Workspace nameWithType: Microsoft.SqlTools.ServiceLayer.Workspace fullName: Microsoft.SqlTools.ServiceLayer.Workspace - uid: Microsoft.SqlTools.ServiceLayer.Workspace.Contracts.ScriptFile commentId: T:Microsoft.SqlTools.ServiceLayer.Workspace.Contracts.ScriptFile parent: Microsoft.SqlTools.ServiceLayer.Workspace.Contracts isExternal: false name: ScriptFile nameWithType: ScriptFile fullName: Microsoft.SqlTools.ServiceLayer.Workspace.Contracts.ScriptFile - uid: Microsoft.SqlTools.ServiceLayer.Hosting.Protocol.EventContext commentId: T:Microsoft.SqlTools.ServiceLayer.Hosting.Protocol.EventContext parent: Microsoft.SqlTools.ServiceLayer.Hosting.Protocol isExternal: false name: EventContext nameWithType: EventContext fullName: Microsoft.SqlTools.ServiceLayer.Hosting.Protocol.EventContext - uid: System.Threading.Tasks.Task commentId: T:System.Threading.Tasks.Task parent: System.Threading.Tasks isExternal: true name: Task nameWithType: Task fullName: System.Threading.Tasks.Task - uid: Microsoft.SqlTools.ServiceLayer.Workspace.Contracts commentId: N:Microsoft.SqlTools.ServiceLayer.Workspace.Contracts isExternal: false name: Microsoft.SqlTools.ServiceLayer.Workspace.Contracts nameWithType: Microsoft.SqlTools.ServiceLayer.Workspace.Contracts fullName: Microsoft.SqlTools.ServiceLayer.Workspace.Contracts - uid: Microsoft.SqlTools.ServiceLayer.Hosting.Protocol commentId: N:Microsoft.SqlTools.ServiceLayer.Hosting.Protocol isExternal: false name: Microsoft.SqlTools.ServiceLayer.Hosting.Protocol nameWithType: Microsoft.SqlTools.ServiceLayer.Hosting.Protocol fullName: Microsoft.SqlTools.ServiceLayer.Hosting.Protocol - uid: System.Threading.Tasks commentId: N:System.Threading.Tasks isExternal: false name: System.Threading.Tasks nameWithType: System.Threading.Tasks fullName: System.Threading.Tasks