Improve this Doc
View Source
Main class for Language Service functionality including anything that requires knowledge of
the language to perform, such as definitions, intellisense, etc.
Inheritance
System.Object
LanguageService
Namespace:Microsoft.SqlTools.ServiceLayer.LanguageServices
Assembly:Microsoft.SqlTools.ServiceLayer.dll
public sealed class LanguageService
Properties
|
Improve this Doc
View Source
Gets the singleton instance object
Declaration
public static LanguageService Instance { get; }
Methods
|
Improve this Doc
View Source
GetCompletionItems(TextDocumentPosition, ScriptFile, ConnectionInfo)
Return the completion item list for the current text position.
This method does not await cache builds since it expects to return quickly
Declaration
public CompletionItem[] GetCompletionItems(TextDocumentPosition textDocumentPosition, ScriptFile scriptFile, ConnectionInfo connInfo)
Parameters
Returns
|
Improve this Doc
View Source
HandleDidChangeConfigurationNotification(SqlToolsSettings, SqlToolsSettings, EventContext)
Handle the file configuration change notification
Declaration
public Task HandleDidChangeConfigurationNotification(SqlToolsSettings newSettings, SqlToolsSettings oldSettings, EventContext eventContext)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
HandleDidChangeTextDocumentNotification(ScriptFile[], EventContext)
Handles text document change events
Declaration
public Task HandleDidChangeTextDocumentNotification(ScriptFile[] changedFiles, EventContext eventContext)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
HandleDidOpenTextDocumentNotification(ScriptFile, EventContext)
Handle the file open notification
Declaration
public Task HandleDidOpenTextDocumentNotification(ScriptFile scriptFile, EventContext eventContext)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
InitializeService(ServiceHost, SqlToolsContext)
Initializes the Language Service instance
Declaration
public void InitializeService(ServiceHost serviceHost, SqlToolsContext context)
Parameters
|
Improve this Doc
View Source
Parses the SQL text and binds it to the SMO metadata provider if connected
Declaration
public ParseResult ParseAndBind(ScriptFile scriptFile, ConnectionInfo connInfo)
Parameters
Returns
Type |
Description |
Microsoft.SqlServer.Management.SqlParser.Parser.ParseResult |
The ParseResult instance returned from SQL Parser
|
|
Improve this Doc
View Source
Remove a reference to an autocomplete cache from a URI. If
it is the last URI connected to a particular connection,
then remove the cache.
Declaration
public Task RemoveAutoCompleteCacheUriReference(ConnectionSummary summary, string ownerUri)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Update the autocomplete metadata provider when the user connects to a database
Declaration
public Task UpdateLanguageServiceOnConnection(ConnectionInfo info)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|