File tree Expand file tree Collapse file tree 1 file changed +1
-37
lines changed
packages/amazonq/src/lsp/autoDebug/ide Expand file tree Collapse file tree 1 file changed +1
-37
lines changed Original file line number Diff line number Diff line change @@ -13,50 +13,14 @@ import { getLogger } from 'aws-core-vscode/shared'
1313export class AutoDebugContextMenuProvider implements vscode . Disposable {
1414 private readonly logger = getLogger ( )
1515 private readonly disposables : vscode . Disposable [ ] = [ ]
16-
17- constructor ( ) {
18- this . registerMenuItems ( )
19- }
20-
21- private registerMenuItems ( ) : void {
22- // Context menu items are registered via package.json contributions
23- // This class can be used to handle dynamic menu item visibility or other logic
24- this . logger . debug ( 'AutoDebugContextMenuProvider: Context menu provider initialized' )
25- }
26-
2716 /**
2817 * Determines if auto debug menu items should be visible
2918 */
3019 public shouldShowAutoDebugItems ( document ?: vscode . TextDocument ) : boolean {
3120 if ( ! document ) {
3221 return false
3322 }
34-
35- // Exclude only non-programming file types that don't benefit from debugging
36- const excludedLanguages = [
37- 'plaintext' ,
38- 'markdown' ,
39- 'json' ,
40- 'xml' ,
41- 'yaml' ,
42- 'yml' ,
43- 'csv' ,
44- 'log' ,
45- 'txt' ,
46- 'md' ,
47- 'html' ,
48- 'css' ,
49- 'scss' ,
50- 'sass' ,
51- 'less' ,
52- 'svg' ,
53- 'pdf' ,
54- 'image' ,
55- 'binary' ,
56- ]
57-
58- // Show auto debug items for all languages except the excluded ones
59- return ! excludedLanguages . includes ( document . languageId )
23+ return true
6024 }
6125
6226 /**
You can’t perform that action at this time.
0 commit comments