Skip to content

Conversation

@alex-j-b
Copy link

@alex-j-b alex-j-b commented Sep 16, 2025

Monorepo support - Issue #43

Proposed changes

  • The extension is currently not compatible with @adonisjs-community/modules or any other project having multiple controllers and pages folders. For example: https://github.com/filipebraida/adonisjs-starter-kit
  • This PR adds support for custom controllers and pages folders via new adonisjs.inertia.pagesDirectories and adonisjs.app.controllersDirectories configs.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have read the CONTRIBUTING doc
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added necessary documentation (if appropriate)

…nertia.pagesDirectories and adonisjs.app.controllersDirectories
@alex-j-b
Copy link
Author

alex-j-b commented Sep 16, 2025

I'm not familiar with vs code extensions so I would appreciate some help with fixing/adding tests. I'm facing currently facing this error:

alex:~/Projects/adonis-vscode-extension(custom-controllers-pages-1)$ npm run quick:test

> [email protected] quick:test
> tsx test/run_pure_tests.ts


   Error: Cannot find module 'vscode'
   Require stack:
   - /home/alex/Projects/adonis-vscode-extension/src/vscode/logger.ts
   -
   /home/alex/Projects/adonis-vscode-extension/src/linkers/inertia_linker.ts
   -
   /home/alex/Projects/adonis-vscode-extension/test/suites/pure/linkers/inertia_linker.test.ts
 
   at <anonymous> src/vscode/logger.ts:2
   1|  import dedent from 'dedent'
 ❯ 2|  import { ExtensionMode, window } from 'vscode'
   3|  
   4|  import { getExtensionContext } from './extension'
   5|  
   6|  export class Logger {
   7|    static #channel = window.createOutputChannel('AdonisJS')

   ⁃ Function.g [as _resolveFilename]
     node_modules/tsx/dist/global-require-patch-CDlRjmTW.cjs:1

I installed vscode package but no luck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant