microsoft / microsoft/vscode-docs

Missing documentation for getDisposable

Open
#6,369 1 comment 0 reactions 1 assignee View on GitHub

@ntrogh is already working on this.

Since Oct 8, 2025.

doc-enhancement extensibility
Dominant language
Markdown
Stars
6.6k
Forks
5.8k
Avg merge
11h 43m
Merged PRs (30d)
123

Description

I want to build a VSCode extension for showing IntelliSense for design tokens for a UI library. More context on the use-case here.

I'm trying to understand how to do this with the Direct Implementation of "Show Code Completion Proposals" but the code example only mentions that we're supposed to use a getDisposable() function without any explanation of where to import this function from or what it's supposed to do if we've to write this on our own.

ctx.subscriptions.push(getDisposable());

https://code.visualstudio.com/api/language-extensions/programmatic-language-features#show-code-completion-proposals

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.