theia-ide / theia-vscodecov

Test VS Code API coverage against Theia for any VS Code extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

extensions.onDidChange not being reported as used for vscode-java

tsmaeder opened this issue · comments

When I run the tool agains vscode-java (https://github.com/redhat-developer/vscode-java/), the API call "extensions.onDidChange" is not being picked up.
My suspicion is that it is not being picked up because vscode-java imports the extensions namespace like so:

import { ..., extensions ,...} from 'vscode-java';

Since this seems like perfectly valid code, we might be missing lots of API usages right now.

@tsmaeder it should be fixed by b22c487 Could you try?

It respects property access syntax now.

looks much better.

 "missingSymbols": [
    "\"vscode\".Extension.extensionPath",
    "\"vscode\".QuickInput.show",
    "\"vscode\".QuickPick",
    "\"vscode\".QuickPick.items",
    "\"vscode\".QuickPick.onDidChangeSelection",
    "\"vscode\".QuickPick.onDidHide",
    "\"vscode\".QuickPick.placeholder",
    "\"vscode\".QuickPick.show",
    "\"vscode\".QuickPick.step",
    "\"vscode\".QuickPick.title",
    "\"vscode\".QuickPick.totalSteps",
    "\"vscode\".extensions.onDidChange",
    "\"vscode\".window.createQuickPick"
  ],