This repository was archived by the owner on Sep 17, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,6 @@ const settings = vscode.workspace.getConfiguration('vscode-devtools-for-chrome')
88const hostname = settings . get ( 'hostname' ) as string || 'localhost' ;
99const port = settings . get ( 'port' ) as number || 9222 ;
1010const 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
1812export 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 > {
You can’t perform that action at this time.
0 commit comments