Files
vscode-extension-samples/inline-completions
dependabot[bot] 4627bde1c9 Bump minimist from 1.2.5 to 1.2.6 in /inline-completions
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01 18:32:57 +00:00
..
2021-05-31 13:53:55 +02:00
2022-03-01 12:45:18 +01: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

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