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