File tree 2 files changed +1
-22
lines changed 2 files changed +1
-22
lines changed Original file line number Diff line number Diff line change 5
5
{
6
6
"version" : " 0.2.0" ,
7
7
"configurations" : [
8
- {
9
- "name" : " Generate for Todo Sample" ,
10
- "program" : " ${workspaceFolder}/packages/schema/dist/bin/cli" ,
11
- "cwd" : " ${workspaceFolder}/samples/todo/" ,
12
- "args" : [
13
- " generate"
14
- ],
15
- "request" : " launch" ,
16
- "skipFiles" : [" <node_internals>/**" ],
17
- "type" : " node" ,
18
- "env" : {
19
- "NODE_PATH" : " ${workspaceFolder}/samples/todo/node_modules"
20
- }
21
- },
22
8
{
23
9
"name" : " Attach" ,
24
10
"port" : 9229 ,
42
28
"skipFiles" : [" <node_internals>/**" ],
43
29
"sourceMaps" : true ,
44
30
"outFiles" : [" ${workspaceFolder}/packages/schema/bundle/**/*.js" ]
45
- },
46
- {
47
- "name" : " Todo sample: debug server-side" ,
48
- "type" : " node-terminal" ,
49
- "request" : " launch" ,
50
- "command" : " pnpm dev" ,
51
- "cwd" : " ${workspaceFolder}/samples/todo/"
52
31
}
53
32
]
54
33
}
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ export function getFunctionExpressionContext(funcDecl: FunctionDecl) {
227
227
const funcAllowedContext : ExpressionContext [ ] = [ ] ;
228
228
const funcAttr = funcDecl . attributes . find ( ( attr ) => attr . decl . $refText === '@@@expressionContext' ) ;
229
229
if ( funcAttr ) {
230
- const contextArg = getAttributeArg ( funcAttr , 'context' ) ;
230
+ const contextArg = funcAttr . args [ 0 ] . value ;
231
231
if ( isArrayExpr ( contextArg ) ) {
232
232
contextArg . items . forEach ( ( item ) => {
233
233
if ( isEnumFieldReference ( item ) ) {
You can’t perform that action at this time.
0 commit comments