Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ export class CodeActionsProviderImpl implements CodeActionsProvider {
.filter(
(refactor) =>
refactor.command?.command.includes('function_scope') ||
refactor.command?.command.includes('constant_scope')
refactor.command?.command.includes('constant_scope') ||
refactor.command?.command === 'Infer function return type'
)
// The language server also proposes extraction into const/function in module scope,
// which is outside of the render function, which is svelte2tsx-specific and unmapped,
Expand Down
3 changes: 2 additions & 1 deletion packages/language-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ export function startServer(options?: LSOptions) {
'constant_scope_1',
'constant_scope_2',
'constant_scope_3',
'extract_to_svelte_component'
'extract_to_svelte_component',
'Infer function return type'
]
}
: undefined,
Expand Down