Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>HyperScopesNew to Visual Studio Code? Get it now.
HyperScopes

HyperScopes

draivin

|
65,709 installs
| (1) | Free
Supplies an API for querying TextMate scope information.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

HyperScopes

A meta-extension for vscode that provides TextMate scope information. Its intended usage is as a library for other extensions to query scope information.

Usage

This extension provides an API by which your extension can query scope & token information. Refer to hscopes.d.ts and extension.test.ts for more details. Example usage:

import * as vscode from 'vscode';

async function example(doc : vscode.TextDocument, pos: vscode.Position) : void {
  const hs = vscode.extensions.getExtension('draivin.hscopes');
  const token : scopeInfo.Token = hs.getScopeAt(doc, pos);
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft