Theia API Documentation v1.65.0
Eclipse Theia Website
GitHub
Preparing search index...
@theia/plugin-ext
plugin/languages/code-action
CodeActionAdapter
Class CodeActionAdapter
Index
Constructors
constructor
Methods
provide
Code
Action
release
Code
Actions
resolve
Code
Action
Constructors
constructor
new
CodeActionAdapter
(
provider
:
CodeActionProvider
,
document
:
DocumentsExtImpl
,
diagnostics
:
Diagnostics
,
pluginId
:
string
,
commands
:
CommandRegistryImpl
,
)
:
CodeActionAdapter
Parameters
provider
:
CodeActionProvider
document
:
DocumentsExtImpl
diagnostics
:
Diagnostics
pluginId
:
string
commands
:
CommandRegistryImpl
Returns
CodeActionAdapter
Methods
provide
Code
Action
provideCodeAction
(
resource
:
URI
,
rangeOrSelection
:
Range
|
Selection
,
context
:
CodeActionContext
,
token
:
CancellationToken
,
)
:
Promise
<
undefined
|
CodeAction
[]
>
Parameters
resource
:
URI
rangeOrSelection
:
Range
|
Selection
context
:
CodeActionContext
token
:
CancellationToken
Returns
Promise
<
undefined
|
CodeAction
[]
>
release
Code
Actions
releaseCodeActions
(
cacheIds
:
number
[]
)
:
Promise
<
void
>
Parameters
cacheIds
:
number
[]
Returns
Promise
<
void
>
resolve
Code
Action
resolveCodeAction
(
cacheId
:
number
,
token
:
CancellationToken
,
)
:
Promise
<
undefined
|
WorkspaceEditDto
>
Parameters
cacheId
:
number
token
:
CancellationToken
Returns
Promise
<
undefined
|
WorkspaceEditDto
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
provide
Code
Action
release
Code
Actions
resolve
Code
Action
Eclipse Theia Website
GitHub
Theia API Documentation v1.65.0
Loading...