LanguageService
Functions
This is used as a part of restarting the language service.
Gets global diagnostics related to the program configuration and compiler options.
Gets the extended details for a completion entry retrieved from getCompletionsAtPosition
.
Gets completion entries at a particular position in a file.
Gets semantic highlights information for a particular file. Has two formats, an older version used by VS and a format used by VS Code.
Encoded as triples of start, length, ClassificationType.
This will return a defined result if the position is after the >
of the opening tag, or somewhere in the text, of a JSXElement with no closing tag. Editors should call this after >
is typed.
Gets semantic information about the identifier at a particular position in a file. Quick info is what you typically see when you hover in an editor.
Gets warnings or errors indicating type system issues in a given file. Requesting semantic diagnostics may start up the type system and run deferred work, so the first call may take longer than subsequent calls.
Gets suggestion diagnostics for a specific file. These diagnostics tend to proactively suggest refactors, as opposed to diagnostics that indicate potentially incorrect runtime behavior.
Gets errors indicating invalid syntax in a file.