11import { TreeItemCollapsibleState , ThemeIcon } from 'vscode' ;
22import { NodeProvider } from './NodeProvider' ;
33import { Node } from './Node' ;
4+ import { DEEPCODE_DCIGNORE_COMMAND } from "../constants/commands" ;
45
56export class SupportProvider extends NodeProvider {
67 getRootChildren ( ) : Node [ ] {
@@ -21,15 +22,36 @@ export class SupportProvider extends NodeProvider {
2122 link : "https://www.youtube.com/watch?v=NIDeVYLWkMI"
2223 } ) ,
2324 new Node ( {
24- text : "2. How to ignore files and directories?" ,
25- icon : new ThemeIcon ( 'file-text' ) ,
26- link : "https://deepcode.freshdesk.com/support/solutions/articles/60000531055-how-can-i-ignore-files-or-directories-"
27- } ) ,
28- new Node ( {
29- text : "3. How to ignore issues within the code?" ,
25+ text : "2. How to ignore issues within the code?" ,
3026 icon : new ThemeIcon ( 'play' ) ,
3127 link : "https://www.youtube.com/watch?v=sjDuDqUy7pw"
3228 } ) ,
29+ new Node ( {
30+ text : "3. How to ignore files and directories?" ,
31+ icon : new ThemeIcon ( 'file-text' ) ,
32+ link : "https://deepcode.freshdesk.com/support/solutions/articles/60000531055-how-can-i-ignore-files-or-directories-" ,
33+ collapsed : TreeItemCollapsibleState . Expanded ,
34+ children : [
35+ new Node ( {
36+ text : "Add default .dcignore file to your workspace" ,
37+ icon : new ThemeIcon ( 'new-file' ) ,
38+ command : {
39+ command : DEEPCODE_DCIGNORE_COMMAND ,
40+ title : '' ,
41+ arguments : [ ] ,
42+ }
43+ } ) ,
44+ new Node ( {
45+ text : "Add a custom .dcignore file to your workspace" ,
46+ icon : new ThemeIcon ( 'new-file' ) ,
47+ command : {
48+ command : DEEPCODE_DCIGNORE_COMMAND ,
49+ title : '' ,
50+ arguments : [ true ] ,
51+ }
52+ } ) ,
53+ ]
54+ } ) ,
3355 ]
3456 } ) ,
3557 new Node ( {
0 commit comments