Skip to content
This repository was archived by the owner on Sep 17, 2021. It is now read-only.

Commit bf32650

Browse files
committed
Adding a default config
1 parent a353e0b commit bf32650

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/extension.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ const settings = vscode.workspace.getConfiguration('vscode-devtools-for-chrome')
88
const hostname = settings.get('hostname') as string || 'localhost';
99
const port = settings.get('port') as number || 9222;
1010
const debuggerType = 'devtools-for-chrome';
11-
const DEFAULT_CONFIG = {
12-
type: debuggerType,
13-
name: 'Launch Chrome against localhost',
14-
request: 'launch',
15-
url: 'http://localhost:8080',
16-
};
1711

1812
export function activate(context: vscode.ExtensionContext) {
1913
context.subscriptions.push(vscode.commands.registerCommand('devtools-for-chrome.launch', async () => {
@@ -26,7 +20,12 @@ export function activate(context: vscode.ExtensionContext) {
2620

2721
vscode.debug.registerDebugConfigurationProvider(debuggerType, {
2822
provideDebugConfigurations(folder: vscode.WorkspaceFolder | undefined, token?: vscode.CancellationToken): vscode.ProviderResult<vscode.DebugConfiguration[]> {
29-
return;
23+
return [{
24+
type: debuggerType,
25+
name: 'Launch Chrome against localhost',
26+
request: 'launch',
27+
url: 'http://localhost:8080',
28+
}];
3029
},
3130

3231
resolveDebugConfiguration(folder: vscode.WorkspaceFolder | undefined, config: vscode.DebugConfiguration, token?: vscode.CancellationToken): vscode.ProviderResult<vscode.DebugConfiguration> {

0 commit comments

Comments
 (0)