File tree Expand file tree Collapse file tree 5 files changed +14
-4
lines changed
intellisense/completionProviders Expand file tree Collapse file tree 5 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 264264 "command" : " nuxtr.configureLinters" ,
265265 "when" : " nuxtr.isNuxtProject"
266266 },
267+ {
268+ "command" : " nuxtr.configurePug" ,
269+ "when" : " nuxtr.isNuxtProject"
270+ },
267271 {
268272 "command" : " nuxtr.directToggleDevTools" ,
269273 "when" : " nuxtr.isNuxtProject"
872876 "category" : " Nuxtr" ,
873877 "when" : " nuxtr.isNuxtProject"
874878 },
879+ {
880+ "command" : " nuxtr.configurePug" ,
881+ "title" : " Configure Pug" ,
882+ "category" : " Nuxtr" ,
883+ "when" : " nuxtr.isNuxtProject"
884+ },
875885 {
876886 "command" : " nuxtr.createPageTemplate" ,
877887 "title" : " Create Vue Page Template" ,
Original file line number Diff line number Diff line change @@ -10,8 +10,10 @@ export enum PugConfigurationSteps {
1010 addPluginToTSConfig = 'Add @vue/language-plugin-pug to tsconfig.json' ,
1111}
1212
13+ const defaultOptions = Object . values ( PugConfigurationSteps )
1314
14- export const configurePug = ( options : string [ ] ) => {
15+
16+ export const configurePug = ( options : string [ ] = defaultOptions ) => {
1517 try {
1618 window
1719 . showQuickPick ( options , {
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ const commandList = [
3939 { command : 'nuxtr.openSettings' , function : nuxtrCommands . openSettings } ,
4040 { command : 'nuxtr.configureCSS' , function : nuxtrCommands . configureCSS } ,
4141 { command : 'nuxtr.configureLinters' , function : nuxtrCommands . configureLinters } ,
42+ { command : 'nuxtr.configurePug' , function : nuxtrCommands . configurePug } ,
4243 { command : 'nuxtr.createPageTemplate' , function : nuxtrCommands . createPageTemplate } ,
4344 { command : 'nuxtr.createLayoutTemplate' , function : nuxtrCommands . createLayoutTemplate } ,
4445 { command : 'nuxtr.createEmptyFileTemplate' , function : nuxtrCommands . createEmptyFileTemplate } ,
Original file line number Diff line number Diff line change @@ -64,9 +64,7 @@ export class NuxtIgnoreCompletionProvider implements vscode.CompletionItemProvid
6464 }
6565
6666 private getSubDirectories ( directory : string ) : string [ ] {
67- console . log ( 'getSubDirectories' , directory ) ;
6867 directory = directory . replace ( / ! / g, '' ) ;
69- console . log ( 'getSubDirectories' , directory ) ;
7068
7169 try {
7270 if ( fs . existsSync ( directory ) ) {
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ const watcherDefaultBehavior = false
1212const dependencies = getProjectDependencies ( ) as unknown as Array < string > ;
1313
1414export const snippetsConfigWatcher : Disposable = createConfigWatcher ( 'nuxtr.snippets' , async ( ) => {
15- console . log ( 'snippets' , getConfiguration ( ) . snippets ) ;
1615 await toggleSnippets ( )
1716 return Promise . resolve ( ) ;
1817} ) ;
You can’t perform that action at this time.
0 commit comments