Files
vscode-extension-samples/inline-completions
2022-05-24 15:12:22 -07:00
..
2021-05-31 13:53:55 +02:00
2022-05-12 16:43:16 +02:00
2021-05-31 13:53:55 +02:00
2021-05-31 13:53:55 +02:00
2021-05-31 13:53:55 +02:00
2021-05-31 13:53:55 +02:00
2022-03-01 12:45:18 +01:00
2021-06-04 17:48:42 +02:00
2022-02-28 13:45:21 -08:00
2022-05-24 15:04:19 -07:00

Inline Completions Sample

This sample demonstrates usage of the proposed inline completions API.

The postinstall script uses vscode-dts dev && vscode-dts main to download latest version of vscode.d.ts and vscode.proposed.d.ts from the master branch of microsoft/vscode.

You can read more about vscode-dts at: https://github.com/microsoft/vscode-dts.

  • ⚠️ This sample can only be used for extension development in Insider release. You cannot publish extensions using Proposed API.
  • You need "enableProposedApi": true in package.json.

Demo Video

VS Code API

Not documented, as the used API is not finalized.

Running the Sample

  • Run npm install in terminal to install dependencies
  • A postinstall script would download latest version of vscode.proposed.d.ts
  • Run the Run Extension target in the Debug View. This will:
    • Start a task npm: watch to compile the code
    • Run the extension in a new VS Code window

Make sure that showInlineCompletions is enabled in your settings!

"editor.inlineSuggest.enabled": true