SessionExtensions Type
`Api` as members of a session, with the snapshot and project it holds supplied on the
caller's behalf: `session.getSymbolAtPosition(file, position)` rather than
`channel.getSymbolAtPosition(snapshot, project, file, position)`.
Fields the schema marks optional are `[
Static members
| Static member |
Description
|
Full Usage:
SessionExtensions.emit (this, ?emitOnly)
Parameters:
Session<TscChannel>
?emitOnly : int
Returns: EmitResponse
|
|
Full Usage:
SessionExtensions.emitToString (this, ?emitOnly)
Parameters:
Session<TscChannel>
?emitOnly : int
Returns: EmitOutputResponse
|
|
Full Usage:
SessionExtensions.formatNodeForInsertion (this, file, position, data)
Parameters:
Session<TscChannel>
file : DocumentIdentifier
position : int
data : string
Returns: string
|
|
Full Usage:
SessionExtensions.getAliasSymbolOfType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: SymbolResponse voption
|
|
Full Usage:
SessionExtensions.getAliasTypeArgumentsOfType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse[] voption
|
|
Full Usage:
SessionExtensions.getAliasedSymbol (this, symbol)
Parameters:
Session<TscChannel>
symbol : int
Returns: SymbolResponse
|
|
Full Usage:
SessionExtensions.getAnyType this
Parameters:
Session<TscChannel>
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getApparentPropertiesOfType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: SymbolResponse[]
|
|
Full Usage:
SessionExtensions.getApparentType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getBaseConstraintOfType (this, type)
Parameters:
Session<TscChannel>
type : int
Returns: TypeResponse voption
|
|
Full Usage:
SessionExtensions.getBaseTypeOfLiteralType (this, type)
Parameters:
Session<TscChannel>
type : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getBaseTypeOfType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getBaseTypes (this, type)
Parameters:
Session<TscChannel>
type : int
Returns: TypeResponse[] voption
|
|
Full Usage:
SessionExtensions.getBigIntType this
Parameters:
Session<TscChannel>
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getBindDiagnostics (this, ?files)
Parameters:
Session<TscChannel>
?files : DocumentIdentifier[]
Returns: DiagnosticResponse[] voption
|
|
Full Usage:
SessionExtensions.getBooleanType this
Parameters:
Session<TscChannel>
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getCheckTypeOfType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getCompletionsAtPosition (this, file, position, ?triggerCharacter, ?includeSymbol)
Parameters:
Session<TscChannel>
file : DocumentIdentifier
position : int
?triggerCharacter : string
?includeSymbol : bool
Returns: CompletionInfoResponse voption
|
|
Full Usage:
SessionExtensions.getConfigFileNames this
Parameters:
Session<TscChannel>
Returns: string[] voption
|
|
Full Usage:
SessionExtensions.getConfigFileParsingDiagnostics this
Parameters:
Session<TscChannel>
Returns: DiagnosticResponse[] voption
|
|
Full Usage:
SessionExtensions.getConfigSourceFile (this, file)
Parameters:
Session<TscChannel>
file : DocumentIdentifier
Returns: SourceFile voption
|
|
Full Usage:
SessionExtensions.getConstantValue (this, location)
Parameters:
Session<TscChannel>
location : string
Returns: JsonNode voption
|
|
Full Usage:
SessionExtensions.getConstraintOfType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getConstraintOfTypeParameter (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse voption
|
|
Full Usage:
SessionExtensions.getContextualType (this, location)
Parameters:
Session<TscChannel>
location : string
Returns: TypeResponse voption
|
|
Full Usage:
SessionExtensions.getDeclarationDiagnostics (this, ?files)
Parameters:
Session<TscChannel>
?files : DocumentIdentifier[]
Returns: DiagnosticResponse[] voption
|
|
Full Usage:
SessionExtensions.getDeclarationEmit (this, ?files)
Parameters:
Session<TscChannel>
?files : DocumentIdentifier[]
Returns: EmitOutputResponse
|
|
Full Usage:
SessionExtensions.getDeclaredTypeOfSymbol (this, symbol)
Parameters:
Session<TscChannel>
symbol : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getDefaultFromTypeParameter (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse voption
|
|
Full Usage:
SessionExtensions.getDefaultProjectForFile (this, file)
Parameters:
Session<TscChannel>
file : DocumentIdentifier
Returns: ProjectResponse voption
|
|
Full Usage:
SessionExtensions.getDocumentationComment (this, symbol)
Parameters:
Session<TscChannel>
symbol : int
Returns: string
|
|
Full Usage:
SessionExtensions.getESSymbolType this
Parameters:
Session<TscChannel>
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getExportSpecifierLocalTargetSymbol (this, location)
Parameters:
Session<TscChannel>
location : string
Returns: SymbolResponse voption
|
|
Full Usage:
SessionExtensions.getExportSymbolOfSymbol (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: SymbolResponse voption
|
|
Full Usage:
SessionExtensions.getExportsOfModule (this, symbol)
Parameters:
Session<TscChannel>
symbol : int
Returns: SymbolResponse[] voption
|
|
Full Usage:
SessionExtensions.getExportsOfSymbol (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: SymbolResponse[] voption
|
|
Full Usage:
SessionExtensions.getExtendsTypeOfType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getFalseTypeOfConditionalType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getFreshTypeOfType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse voption
|
|
Full Usage:
SessionExtensions.getFullyQualifiedName (this, symbol)
Parameters:
Session<TscChannel>
symbol : int
Returns: string
|
|
Full Usage:
SessionExtensions.getGlobalDiagnostics this
Parameters:
Session<TscChannel>
Returns: DiagnosticResponse[] voption
|
|
Full Usage:
SessionExtensions.getImmediateAliasedSymbol (this, symbol)
Parameters:
Session<TscChannel>
symbol : int
Returns: SymbolResponse voption
|
|
Full Usage:
SessionExtensions.getImportAdderEdits (this, file, ?actions)
Parameters:
Session<TscChannel>
file : DocumentIdentifier
?actions : ImportAdderAction[]
Returns: TextEdit[]
|
|
Full Usage:
SessionExtensions.getIndexInfosOfType (this, type)
Parameters:
Session<TscChannel>
type : int
Returns: IndexInfoResponse[] voption
|
|
Full Usage:
SessionExtensions.getIndexTypeOfType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getJavaScriptEmit (this, ?files)
Parameters:
Session<TscChannel>
?files : DocumentIdentifier[]
Returns: EmitOutputResponse
|
|
Full Usage:
SessionExtensions.getJsDocTags (this, symbol)
Parameters:
Session<TscChannel>
symbol : int
Returns: JSDocTagInfo[] voption
|
|
Full Usage:
SessionExtensions.getLocalTypeParametersOfType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse[] voption
|
|
Full Usage:
SessionExtensions.getMemberInModuleExports (this, symbol, name)
Parameters:
Session<TscChannel>
symbol : int
name : string
Returns: SymbolResponse voption
|
|
Full Usage:
SessionExtensions.getMembersOfSymbol (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: SymbolResponse[] voption
|
|
Full Usage:
SessionExtensions.getNeverType this
Parameters:
Session<TscChannel>
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getNonMissingTypeOfSymbol (this, symbol)
Parameters:
Session<TscChannel>
symbol : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getNonNullableType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getNonPrimitiveType this
Parameters:
Session<TscChannel>
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getNullType this
Parameters:
Session<TscChannel>
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getNumberType this
Parameters:
Session<TscChannel>
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getObjectTypeOfType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getOuterTypeParametersOfType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse[] voption
|
|
Full Usage:
SessionExtensions.getParameterType (this, signature, index)
Parameters:
Session<TscChannel>
signature : int
index : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getParametersOfSignature (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: SymbolResponse[] voption
|
|
Full Usage:
SessionExtensions.getParentOfSymbol (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: SymbolResponse voption
|
|
Full Usage:
SessionExtensions.getProgramDiagnostics this
Parameters:
Session<TscChannel>
Returns: DiagnosticResponse[] voption
|
|
Full Usage:
SessionExtensions.getPropertiesOfType (this, type)
Parameters:
Session<TscChannel>
type : int
Returns: SymbolResponse[] voption
|
|
Full Usage:
SessionExtensions.getPropertyOfType (this, type, name)
Parameters:
Session<TscChannel>
type : int
name : string
Returns: SymbolResponse voption
|
|
Full Usage:
SessionExtensions.getReducedType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getReferencedSymbolsForNode (this, node, position)
Parameters:
Session<TscChannel>
node : string
position : int
Returns: ReferencedSymbolEntry[] voption
|
|
Full Usage:
SessionExtensions.getReferencesToSymbolInFile (this, file, symbol)
Parameters:
Session<TscChannel>
file : DocumentIdentifier
symbol : int
Returns: string[]
|
|
Full Usage:
SessionExtensions.getRegularTypeOfType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse voption
|
|
Full Usage:
SessionExtensions.getResolvedSignature (this, location)
Parameters:
Session<TscChannel>
location : string
Returns: SignatureResponse
|
|
Full Usage:
SessionExtensions.getRestTypeOfSignature (this, signature)
Parameters:
Session<TscChannel>
signature : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getReturnTypeOfSignature (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getSemanticDiagnostics (this, ?files)
Parameters:
Session<TscChannel>
?files : DocumentIdentifier[]
Returns: DiagnosticResponse[] voption
|
|
Full Usage:
SessionExtensions.getShorthandAssignmentValueSymbol (this, location)
Parameters:
Session<TscChannel>
location : string
Returns: SymbolResponse voption
|
|
Full Usage:
SessionExtensions.getSignatureFromDeclaration (this, location)
Parameters:
Session<TscChannel>
location : string
Returns: SignatureResponse
|
|
Full Usage:
SessionExtensions.getSignatureUsages (this, signatureDecl)
Parameters:
Session<TscChannel>
signatureDecl : string
Returns: SignatureUsageResponse[] voption
|
|
Full Usage:
SessionExtensions.getSignaturesOfType (this, type, kind)
Parameters:
Session<TscChannel>
type : int
kind : SignatureKind
Returns: SignatureResponse[]
|
|
Full Usage:
SessionExtensions.getSourceFile (this, file)
Parameters:
Session<TscChannel>
file : DocumentIdentifier
Returns: SourceFile voption
|
|
Full Usage:
SessionExtensions.getSourceFileMetadata (this, file)
Parameters:
Session<TscChannel>
file : DocumentIdentifier
Returns: SourceFileMetadata voption
|
|
Full Usage:
SessionExtensions.getSourceFileNames this
Parameters:
Session<TscChannel>
Returns: string[]
|
|
Full Usage:
SessionExtensions.getStringType this
Parameters:
Session<TscChannel>
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getSuggestionDiagnostics (this, ?files)
Parameters:
Session<TscChannel>
?files : DocumentIdentifier[]
Returns: DiagnosticResponse[] voption
|
|
Full Usage:
SessionExtensions.getSymbolAtLocation (this, location)
Parameters:
Session<TscChannel>
location : string
Returns: SymbolResponse voption
|
|
Full Usage:
SessionExtensions.getSymbolAtPosition (this, file, position)
Parameters:
Session<TscChannel>
file : DocumentIdentifier
position : int
Returns: SymbolResponse voption
|
|
Full Usage:
SessionExtensions.getSymbolOfSourceFile (this, file)
Parameters:
Session<TscChannel>
file : DocumentIdentifier
Returns: SymbolResponse voption
|
|
Full Usage:
SessionExtensions.getSymbolOfType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: SymbolResponse voption
|
|
Full Usage:
SessionExtensions.getSymbolsAtLocations (this, ?locations)
Parameters:
Session<TscChannel>
?locations : string[]
Returns: SymbolResponse[]
|
|
Full Usage:
SessionExtensions.getSymbolsAtPositions (this, file, ?positions)
Parameters:
Session<TscChannel>
file : DocumentIdentifier
?positions : int[]
Returns: SymbolResponse[]
|
|
Full Usage:
SessionExtensions.getSymbolsInScope (this, meaning, ?location, ?file, ?position)
Parameters:
Session<TscChannel>
meaning : SymbolFlags
?location : string
?file : DocumentIdentifier
?position : int
Returns: SymbolResponse[]
|
|
Full Usage:
SessionExtensions.getSymbolsOfSourceFiles (this, ?files)
Parameters:
Session<TscChannel>
?files : DocumentIdentifier[]
Returns: SymbolResponse[]
|
|
Full Usage:
SessionExtensions.getSyntacticDiagnostics (this, ?files)
Parameters:
Session<TscChannel>
?files : DocumentIdentifier[]
Returns: DiagnosticResponse[] voption
|
|
Full Usage:
SessionExtensions.getTargetOfSignature (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: SignatureResponse voption
|
|
Full Usage:
SessionExtensions.getTargetOfType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getTargetSymbol (this, symbol)
Parameters:
Session<TscChannel>
symbol : int
Returns: SymbolResponse
|
|
Full Usage:
SessionExtensions.getThisParameterOfSignature (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: SymbolResponse voption
|
|
Full Usage:
SessionExtensions.getTrueTypeOfConditionalType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getTypeArguments (this, type)
Parameters:
Session<TscChannel>
type : int
Returns: TypeResponse[] voption
|
|
Full Usage:
SessionExtensions.getTypeAtLocation (this, location)
Parameters:
Session<TscChannel>
location : string
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getTypeAtLocations (this, ?locations)
Parameters:
Session<TscChannel>
?locations : string[]
Returns: TypeResponse[]
|
|
Full Usage:
SessionExtensions.getTypeAtPosition (this, file, position)
Parameters:
Session<TscChannel>
file : DocumentIdentifier
position : int
Returns: TypeResponse voption
|
|
Full Usage:
SessionExtensions.getTypeFromTypeNode (this, location)
Parameters:
Session<TscChannel>
location : string
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getTypeOfSymbol (this, symbol)
Parameters:
Session<TscChannel>
symbol : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getTypeOfSymbolAtLocation (this, symbol, location)
Parameters:
Session<TscChannel>
symbol : int
location : string
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getTypeParameterAtPosition (this, signature, index)
Parameters:
Session<TscChannel>
signature : int
index : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getTypeParametersOfSignature (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse[] voption
|
|
Full Usage:
SessionExtensions.getTypeParametersOfType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse[] voption
|
|
Full Usage:
SessionExtensions.getTypePredicateOfSignature (this, signature)
Parameters:
Session<TscChannel>
signature : int
Returns: TypePredicateResponse voption
|
|
Full Usage:
SessionExtensions.getTypesAtPositions (this, file, ?positions)
Parameters:
Session<TscChannel>
file : DocumentIdentifier
?positions : int[]
Returns: TypeResponse[]
|
|
Full Usage:
SessionExtensions.getTypesOfSymbols (this, ?symbols)
Parameters:
Session<TscChannel>
?symbols : int[]
Returns: TypeResponse[]
|
|
Full Usage:
SessionExtensions.getTypesOfType (this, objectId)
Parameters:
Session<TscChannel>
objectId : int
Returns: TypeResponse[] voption
|
|
Full Usage:
SessionExtensions.getUndefinedType this
Parameters:
Session<TscChannel>
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getUnknownType this
Parameters:
Session<TscChannel>
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getVoidType this
Parameters:
Session<TscChannel>
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.getWellKnownSignatures this
Parameters:
Session<TscChannel>
Returns: WellKnownSignaturesResponse
|
|
Full Usage:
SessionExtensions.getWellKnownSymbols this
Parameters:
Session<TscChannel>
Returns: WellKnownSymbolsResponse
|
|
Full Usage:
SessionExtensions.getWidenedType (this, type)
Parameters:
Session<TscChannel>
type : int
Returns: TypeResponse
|
|
Full Usage:
SessionExtensions.isArrayLikeType (this, type)
Parameters:
Session<TscChannel>
type : int
Returns: bool
|
|
Full Usage:
SessionExtensions.isArrayType (this, type)
Parameters:
Session<TscChannel>
type : int
Returns: bool
|
|
Full Usage:
SessionExtensions.isContextSensitive (this, location)
Parameters:
Session<TscChannel>
location : string
Returns: bool
|
|
Full Usage:
SessionExtensions.isReadonlySymbol (this, symbol)
Parameters:
Session<TscChannel>
symbol : int
Returns: bool
|
|
Full Usage:
SessionExtensions.isTypeAssignableTo (this, source, target)
Parameters:
Session<TscChannel>
source : int
target : int
Returns: bool
|
|
|
|
Full Usage:
SessionExtensions.resolveName (this, name, meaning, ?location, ?file, ?position, ?excludeGlobals)
Parameters:
Session<TscChannel>
name : string
meaning : SymbolFlags
?location : string
?file : DocumentIdentifier
?position : int
?excludeGlobals : bool
Returns: SymbolResponse voption
|
|
Full Usage:
SessionExtensions.signatureToSignatureDeclaration (this, signature, kind, ?location, ?flags)
Parameters:
Session<TscChannel>
signature : int
kind : SyntaxKind
?location : string
?flags : NodeBuilderFlags
Returns: SourceFile voption
|
|
Full Usage:
SessionExtensions.typeToString (this, type, ?location, ?flags)
Parameters:
Session<TscChannel>
type : int
?location : string
?flags : int
Returns: JsonNode voption
|
|
Full Usage:
SessionExtensions.typeToTypeNode (this, type, ?location, ?flags)
Parameters:
Session<TscChannel>
type : int
?location : string
?flags : int
Returns: SourceFile voption
|
|
Full Usage:
SessionExtensions.updateTemporarySnapshot (this, file, newText)
Parameters:
Session<TscChannel>
file : DocumentIdentifier
newText : string
Returns: UpdateSnapshotResponse
|
|