-
Notifications
You must be signed in to change notification settings - Fork 27.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect comment in vscode.d.ts related to registerDebugConfigurationProvider
#36118
Comments
registerDebugConfigurationProvider
not foundregisterDebugConfigurationProvider
not found
@atian25 In your package.json do you set the engine version to 1.17 and did you run postInstall? |
"engines": {
"vscode": "^1.17.0"
}, and just run postinstall: ➜ vscode-eggjs git:(master) npm run postinstall
> eggjs@0.0.6 postinstall /Users/tz/Workspaces/github/vscode-eggjs
> node ./node_modules/vscode/bin/install
Detected VS Code engine version: ^1.17.0
Found minimal version that qualifies engine range: 1.17.0
Fetching vscode.d.ts from: https://raw.githubusercontent.com/Microsoft/vscode/be377c0faf7574a59f84940f593a6849f12e4de7/src/vs/vscode.d.ts
vscode.d.ts successfully installed! see the image above, in |
You are using the wrong name space. It is |
and also https://code.visualstudio.com/docs/extensions/example-debuggers need update. |
registerDebugConfigurationProvider
not foundregisterDebugConfigurationProvider
@atian25 this explains things, thanks. Reopening. |
For updating the documentation (https://code.visualstudio.com/docs/extensions/example-debuggers) I've created microsoft/vscode-docs#1216. |
hi, @weinand had register, but the context.subscriptions.push(vscode.debug.registerDebugConfigurationProvider('node', {
provideDebugConfigurations(folder: WorkspaceFolder, token?: CancellationToken): DebugConfiguration[] {
return [
{
name: 'Egg Debug',
type: 'node',
request: 'launch',
port: '9999',
}
];
}
})); |
@atian25 make sure that your debugger extension activates correctly by contributing this in package.json: "activationEvents": [
"onDebug",
// ... and all commands that need to activate this extension
] Please note that |
Only had to config |
as #34668 |
I was wrong in closing #34668. Please see my comment there. |
Steps to Reproduce:
vscode.workspace.registerDebugConfigurationProvider
BTW, https://code.visualstudio.com/docs/extensions/example-debuggers need updated also.
Reproduces without extensions: Yes/No
The text was updated successfully, but these errors were encountered: