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 { TSESTree } from '@typescript-eslint/utils';
import * as eslint from 'eslint';
/**
* Lint rule that prevents using a `ServicesAccessor` after an `await` expression.
*
* The accessor returned by `IInstantiationService.invokeFunction` is only valid
* synchronously during the invocation of the target function. Calling
* `accessor.get(...)` after any `await` is a bug because the accessor will have
* been invalidated.
*
* Detection strategies:
* 1. `invokeFunction` / `invokeWithinContext` calls — first param of the callback
* is the accessor.
* 2. Functions/methods with a parameter typed as `ServicesAccessor` — these are
* always called through `invokeFunction` at runtime (e.g. `Action2.run`,
* `ICommandHandler`).
*/
export default new class NoAccessorAfterAwait implements eslint.Rule.RuleModule {
readonly meta: eslint.Rule.RuleMetaData = {
messages: {
accessorAfterAwait: 'ServicesAccessor \'{{name}}\' must not be used after \'await\'. The accessor is only valid synchronously. Extract needed services before any async operation.'
schema
context eslintRuleRuleContext eslintRuleRuleListener
node eslintRuleNode
callExpression node TSESTreeCallExpression
callExpressioncallee
functionArg callExpressionargumentsarg
argtype argtype
TSESTreeArrowFunctionExpression TSESTreeFunctionExpression
functionArg functionArgparamslength
accessorName functionArgparams
accessorName
functionArg accessorName context
node eslintRuleNode
node TSESTreeFunctionDeclaration context
node eslintRuleNode
node TSESTreeFunctionExpression context
node eslintRuleNode
node TSESTreeArrowFunctionExpression context
fn TSESTreeFunctionDeclaration TSESTreeFunctionExpression TSESTreeArrowFunctionExpression
context eslintRuleRuleContext
param fnparams
paramtype param
fn
fn paramname context
fn TSESTreeFunctionDeclaration TSESTreeFunctionExpression TSESTreeArrowFunctionExpression
parent fnparent
parenttype parentcallee
parentargumentsarg arg fn
param TSESTreeIdentifier
annotation paramtypeAnnotation
annotation annotationtype
typeNode annotationtypeAnnotation
typeNodetype typeNodetypeNametype
typeNodetypeNamename
fn TSESTreeArrowFunctionExpression TSESTreeFunctionExpression TSESTreeFunctionDeclaration
accessorName
context eslintRuleRuleContext
sawAwait
visited
node TSESTreeNode
visitednode
visitednode
node fn
nodetype
nodetype
nodetype
nodetype
nodeargument
nodeargument
sawAwait
node accessorName sawAwait
context
node node eslintRuleNode
messageId
data name accessorName
nodetype
nodetest
beforeBranches sawAwait
nodeconsequent
awaitAfterConsequent sawAwait
consequentExits nodeconsequent
sawAwait beforeBranches
nodealternate
nodealternate
awaitAfterAlternate sawAwait
alternateExits nodealternate nodealternate
consequentExits alternateExits
sawAwait awaitAfterConsequent awaitAfterAlternate
consequentExits
sawAwait awaitAfterAlternate
alternateExits
sawAwait awaitAfterConsequent
sawAwait awaitAfterConsequent awaitAfterAlternate
nodetype
nodetest
beforeBranches sawAwait
nodeconsequent
awaitAfterConsequent sawAwait
sawAwait beforeBranches
nodealternate
sawAwait sawAwait awaitAfterConsequent
nodetype
nodediscriminant
beforeCases sawAwait
anyCaseHadAwait
c nodecases
sawAwait beforeCases
ctest ctest
cconsequentwalk
anyCaseHadAwait anyCaseHadAwait sawAwait
sawAwait anyCaseHadAwait
nodetype
beforeTry sawAwait
nodeblock
awaitAfterTry sawAwait
sawAwait beforeTry
nodehandler nodehandlerbody
awaitAfterCatch sawAwait
sawAwait awaitAfterTry awaitAfterCatch
nodefinalizer nodefinalizer
nodetype nodeawait
node child
child noderight
child
sawAwait
child
node walk
fnbody
fnbody
node TSESTreeNode
nodetype nodetype
nodetype nodebodylength
nodebodynodebodylength
nodetype
nodeconsequent
nodealternate nodealternate
node TSESTreeNode accessorName
nodetype
nodecalleetype
nodecalleeobjecttype
nodecalleeobjectname accessorName
nodetype nodename accessorName
parent nodeparent
parenttype parentargumentsnode
node TSESTreeNode child TSESTreeNode
nodetype
nodebodyvisit
nodeexpression
nodedeclarationsdecl
declinit declinit
nodecallee
nodeargumentsvisit
nodeobject
nodecomputed nodeproperty
nodeargument nodeargument
nodeleft
noderight
nodeleft
noderight
nodeexpressionsvisit
nodetag
nodequasi
nodeelementse e e
nodepropertiesp
ptype
pvalue
p
nodeargument
nodeargument
nodeinit nodeinit
nodetest nodetest
nodeupdate nodeupdate
nodebody
nodeleft
noderight
nodebody
nodeleft
noderight
nodebody
nodetest
nodebody
nodeargument nodeargument
nodecallee
nodeargumentsvisit
nodeexpressionsvisit
nodeexpression
param TSESTreeParameter
paramtype
paramname
invokeFunctionNames
callee TSESTreeExpression
calleetype
calleepropertytype
invokeFunctionNamescalleepropertyname
calleetype invokeFunctionNamescalleename