<link rel="stylesheet" href="/_merged_assets/_static/search/noscript.css">
Atom Community Logo Atom Community API Getting Started Toggle darkmode

Code Actions

API

CodeAction

Methods

apply

Returns

Promise<void>

dispose

Returns

void

getTitle

Returns

Promise<string>

CodeActionFetcher

Properties

getCodeActionForDiagnostic


  

CodeActionProvider

Properties

grammarScopes

(optional)
readonly string[]

priority

number

Methods

getCodeActions

Parameters

editor
TextEditor
range
Range
diagnostics
Diagnostic[]

Returns

Promise<undefined|null|CodeAction[]>

Diagnostic

Properties

filePath

string

providerName

string

range

Range

text

(optional)
string

type

DiagnosticType

DiagnosticType