Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Use the debug adapter from cdt-gdb-vscode/cdt-gdb-adapter
Browse files Browse the repository at this point in the history
This patch swaps the debug adapter we use from code-debug to
cdt-gdb-vscode.  The adapter was built using

    npm install && npm run build && npm pack

and hosted as a release at [1].

The file cpp-debug-configuration-schema.json seems unused, so I've
removed it.  The schema for configurations comes from the package.json
of the debug adapter/extension anyway.

[1] https://github.com/theia-ide/cdt-gdb-vscode

Signed-off-by: Simon Marchi <simon.marchi@ericsson.com>
  • Loading branch information
Simon Marchi authored and paul-marechal committed Jan 9, 2019
1 parent 3d26e87 commit 28ebb45
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 262 deletions.
260 changes: 0 additions & 260 deletions packages/cpp-debug/data/cpp-debug-configuration-schema.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/cpp-debug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
"backend": "lib/node/cpp-debug-backend-module"
}],
"adapters": {
"code-debug": "https://github.com/marechal-p/code-debug/releases/download/v0.22.0/code-debug.tar.gz"
"cdt-gdb-vscode": "https://github.com/theia-ide/cdt-gdb-vscode/releases/download/v0.0.4/cdt-gdb-vscode-0.0.4.tgz"
}
}
2 changes: 1 addition & 1 deletion packages/cpp-debug/src/node/cpp-debug-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { join } from 'path';
import * as Ajv from 'ajv';

const adapterName = 'gdb';
const adapterPath = join(__dirname, '../../adapters/code-debug');
const adapterPath = join(__dirname, '../../adapters/cdt-gdb-vscode/package');

// Load schema from package.json
const packageJson = require(join(adapterPath, 'package.json'));
Expand Down

0 comments on commit 28ebb45

Please sign in to comment.