Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.vscode Add code actions sample May 31, 2019
src Don't require a deactivate handler Jul 22, 2019
README.md diagnostic code action sample Jul 18, 2019
example.gif
example_diagnostic.gif diagnostic code action sample Jul 18, 2019
package-lock.json Us TS 3.5.1 for all samples May 31, 2019
package.json Us TS 3.5.1 for all samples May 31, 2019
tsconfig.json Don't set explicit `lib` in tsconfigs May 31, 2019
tslint.json Add code actions sample May 31, 2019

README.md

Code Action Provider Sample

This sample shows how to provide code actions in the the editor. Code actions are used to implement quick fixes and refactoring in VS Code

The sample uses the CodeActionProvider api to implement a simple set of code actions that convert :) to a smiley emoji in markdown files:

Emoji code actions

Second example of code action provider shows how to associate code actions with diagnostic (e.g. compilation) problems.

Diagnostic code actions

VS Code API

vscode module

You can’t perform that action at this time.