ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import fs from 'fs';
import path from 'path';
import * as ts from 'typescript';
import { type IFileMap, TypeScriptLanguageServiceHost } from './typeScriptLanguageServiceHost.ts';
const ShakeLevel = Object.freeze({
Files: 0,
InnerFile: 1,
ClassMembers: 2
});
type ShakeLevel = typeof ShakeLevel[keyof typeof ShakeLevel];
shakeLevel ShakeLevel
shakeLevel
ShakeLevelFiles
ShakeLevelInnerFile
ShakeLevelClassMembers
sourcesRoot
entryPoints
inlineEntryPoints
typings
compilerOptions
shakeLevel ShakeLevel
importIgnorePattern RegExp
file
options ITreeShakingOptions diagnostics ReadonlyArraytsDiagnostic
diag diagnostics
result
diagfile
result
diagfile diagstart
location diagfilediagstart
result
result diagmessageText
result
options ITreeShakingOptions ITreeShakingResult
languageService ts options
program languageService
globalDiagnostics program
globalDiagnosticslength
options globalDiagnostics
syntacticDiagnostics program
syntacticDiagnosticslength
options syntacticDiagnostics
semanticDiagnostics program
semanticDiagnosticslength
options semanticDiagnostics
ts languageService options
ts languageService optionsshakeLevel
ts options ITreeShakingOptions tsLanguageService
IFileMap
optionsentryPointsentryPoint
filePath pathoptionssourcesRoot entryPoint
pathfilePath fsfilePath
optionsinlineEntryPointsinlineEntryPoint index
pathpathoptionssourcesRoot inlineEntryPoint
optionstypingstyping
filePath pathoptionssourcesRoot typing
pathfilePath fsfilePath
basePath pathoptionssourcesRoot
compilerOptions tsoptionscompilerOptions basePathoptions
host ts compilerOptions
tshost
NodeColor Object
White
Gray
Black
NodeColor NodeColor
tsObjectLiteralElement name tsPropertyName parent tsObjectLiteralExpression tsJsxAttributes
$$$color NodeColor
$$$neededSourceFile
tsSymbol
node tsNode ObjectLiteralElementWithName
name tsPropertyName
node ObjectLiteralElementWithName checker tsTypeChecker contextualType tsType unionSymbolOk ReadonlyArraytsSymbol
node tsNode NodeColor
node$$$color NodeColorWhite
node tsNode color NodeColor
node$$$color color
node tsSourceFile
node$$$neededSourceFile
node tsSourceFile
node$$$neededSourceFile
node tsNode
node
color node
color NodeColorBlack
node nodeparent
node tsNode
node NodeColorBlack
child node
child
tsSymbol tsSymbol declarations tsDeclaration
declarations
ts node tsNode
tsnode
hasSideEffects
node tsNode
hasSideEffects
tsnode tsnode
isSideEffectFree nodeexpression
isSideEffectFree
hasSideEffects
nodevisitNode
nodevisitNode
hasSideEffects
ts node tsClassElement tsTypeElement
tsnode
nodemodifiers
nodemodifiersmod modkind tsSyntaxKindStaticKeyword
hasSideEffects
node tsNode
hasSideEffects
tsnode tsnode
hasSideEffects
nodevisitNode
nodevisitNode
hasSideEffects
ts languageService tsLanguageService options ITreeShakingOptions
program languageService
program
optionsshakeLevel ShakeLevelFiles
programsourceFile
sourceFile NodeColorBlack
black_queue tsNode
gray_queue tsNode
export_import_queue tsNode
sourceFilesLoaded fileName
sourceFile tsSourceFile
sourceFilenode tsNode
tsnode
nodeimportClause tsnodemoduleSpecifier
node NodeColorBlack
node nodemoduleSpecifiertext
tsnode
nodeexportClause nodemoduleSpecifier tsnodemoduleSpecifier
node NodeColorBlack
node nodemoduleSpecifiertext
nodeexportClause tsnodeexportClause
exportSpecifier nodeexportClauseelements
export_import_queueexportSpecifier
ts node
node
tsnode
tsnode
tsnode
tsnode
node
tsnode
nodesourceFile
node
node tsDeclaration tsImportDeclaration
_node tsNode node
ts_node
_node
_node _nodeparent
_node
node tsNode
node node NodeColorGray
node NodeColorGray
gray_queuenode
node tsNode
previousColor node
previousColor NodeColorBlack
previousColor NodeColorGray
gray_queuegray_queuenode
node NodeColorWhite
node
node
fileName nodefileName
fileName fileName
node NodeColorBlack
sourceFile node
sourceFilesLoadedsourceFilefileName
sourceFilesLoadedsourceFilefileName
sourceFile
tsnode
node NodeColorBlack
black_queuenode
optionsshakeLevel ShakeLevelClassMembers tsnode tsnode tsnode tsnode tsnode tsnode
references languageServicenodefileName nodenamepos nodename
references
i len referenceslength i len i
reference referencesi
referenceSourceFile programreferencefileName
referenceSourceFile
referenceNode ts referenceSourceFile referencetextSpanstart
tsreferenceNodeparent
tsreferenceNodeparent
tsreferenceNodeparent
tsreferenceNodeparent
referenceNodeparent
filename
sourceFile programfilename
sourceFile
sourceFile
sourceFile
node tsNode importText
optionsimportIgnorePatternimportText
nodeSourceFile node
fullPath
importText
importText
importText importText importTextlength
fullPath pathpathnodeSourceFilefileName importText
fullPath importText
fsfullPath
fullPath fullPath
fullPath fullPath
fullPath
optionsentryPointsmoduleId pathoptionssourcesRoot moduleId
optionsinlineEntryPoints_ index pathoptionssourcesRoot
step
checker program
black_queuelength gray_queuelength
step
node tsNode
step
black_queuelength
i i gray_queuelength i
node gray_queuei
nodeParent nodeparent
tsnodeParent tsnodeParent nodeParent
gray_queuei
black_queuenode
node NodeColorBlack
i
black_queuelength
node black_queue
nodeSourceFile node
node tsNode
symbols ts checker node
symbolImportNode symbols
symbolImportNode
symbolImportNode NodeColorBlack
importDeclarationNode symbolImportNode
importDeclarationNode tsimportDeclarationNodemoduleSpecifier
importDeclarationNode importDeclarationNodemoduleSpecifiertext
nodeSourceFile node
i len declarationslength i len i
declaration declarationsi
tsdeclaration
optionsshakeLevel ShakeLevelClassMembers tsdeclaration tsdeclaration ts program checker declaration
declarationname
j j declarationmemberslength j
member declarationmembersj
memberName membername membername
tsmember
tsmember
tsmember
tsmember
memberName
memberName
memberName
memberName
memberName
memberName
member
ts member
member
declarationheritageClauses
heritageClause declarationheritageClauses
heritageClause
declaration
nodeloop
nodeloop
export_import_queuelength
node export_import_queue
node
node
aliased checkernode
aliaseddeclarations aliaseddeclarationslength
aliaseddeclarations aliaseddeclarations
node NodeColorBlack
nodeSourceFile tsSourceFile node tsNode tsSymbol declarations tsDeclaration
i len declarationslength i len i
declaration declarationsi
declarationSourceFile declaration
nodeSourceFile declarationSourceFile
declarationpos nodepos nodeend declarationend
ts languageService tsLanguageService shakeLevel ShakeLevel ITreeShakingResult
program languageService
program
result ITreeShakingResult
writeFile filePath contents
resultfilePath contents
programsourceFile
fileName sourceFilefileName
fileName
destination fileName
fileName
sourceFile
destination sourceFiletext
text sourceFiletext
result
node tsNode
result textnodepos nodeend
data
result data
node tsNode
node NodeColorBlack
node
tsnodeparent
tsnode tsnodeexpression nodeexpressiontext
node
tsnode node
node
tsnode
nodeimportClause nodeimportClausenamedBindings
tsnodeimportClausenamedBindings
nodeimportClausenamedBindings NodeColorBlack
node
survivingImports
importNode nodeimportClausenamedBindingselements
importNode NodeColorBlack
survivingImportsimportNodesourceFile
leadingTriviaWidth node
leadingTrivia sourceFiletextnodepos leadingTriviaWidth
survivingImportslength
nodeimportClause nodeimportClausename nodeimportClause NodeColorBlack
nodeimportClause nodeimportClausename nodeimportClause NodeColorBlack
nodeimportClause nodeimportClause NodeColorBlack
node
tsnode
nodeexportClause nodemoduleSpecifier tsnodeexportClause
survivingExports
exportSpecifier nodeexportClauseelements
exportSpecifier NodeColorBlack
survivingExportsexportSpecifiersourceFile
leadingTriviaWidth node
leadingTrivia sourceFiletextnodepos leadingTriviaWidth
survivingExportslength
shakeLevel ShakeLevelClassMembers tsnode tsnode node
toWrite node
i nodememberslength i i
member nodemembersi
member NodeColorBlack membername
pos memberpos nodepos
end memberend nodepos
toWrite toWrite pos toWriteend
toWrite
tsnode
nodewriteMarkedNodes
sourceFile NodeColorBlack
sourceFile
sourceFile
result
sourceFilewriteMarkedNodes
result sourceFileendOfFileTokensourceFile
result text
destination result
result
ts program tsProgram checker tsTypeChecker declaration tsClassDeclaration tsInterfaceDeclaration
programdeclaration declarationheritageClauses
heritageClause declarationheritageClauses
heritageClausetypes
ts checker type
decl valueDeclaration declarations declarations
decl programdecl
ts checker tsTypeChecker type tsExpressionWithTypeArguments tsExpression tsPrivateIdentifier tsSymbol
tstype
ts checker typeexpression
tstype
tmp ts checker type
tmplength tmp
tstype
ts checker typename
tsSymbol
symbolImportNode tsDeclaration
tsSymbol
symbolImportNode tsDeclaration
symbolImportNode symbolImportNode
ts checker tsTypeChecker node tsNode SymbolImportTuple
node tsNode declaration tsNode
tsnode nodekind tsSyntaxKindIdentifier
nodeparent declaration
declarationkind
tsSyntaxKindImportClause
tsSyntaxKindImportEqualsDeclaration
tsSyntaxKindImportSpecifier
declarationparentkind tsSyntaxKindNamedImports
tsnode
node
parent node
tsnode
checkernode
checkernode
importNode tsDeclaration
flags tsSymbolFlagsAlias declarations node declarations
aliased checker
aliaseddeclarations
importNode declarations
aliased
nodeparentkind tsSyntaxKindShorthandPropertyAssignment
checkervalueDeclaration
tsnode tsparent tsparentparent
node parentpropertyName parentname
name tsnode
type checkerparentparent
name type
type
type name importNode
prop typename
prop
prop
element tsnode
element
contextualType element checkerelementparent
contextualType
propertySymbols tselement checker contextualType
propertySymbols
propertySymbols
declarations
importNode
type tsUnionType name importNode tsDeclaration SymbolImportTuple
result SymbolImportTuple
t typetypes
prop tname
prop propdeclarations
result prop importNode
result
ts sourceFile tsSourceFile position allowPositionInLeadingTrivia includeEndPosition tsNode
current tsNode sourceFile
outer
child current
start allowPositionInLeadingTrivia child childsourceFile
start position
end child
position end position end childkind tsSyntaxKindEndOfFileToken includeEndPosition
current child
outer
current