- 
                Notifications
    
You must be signed in to change notification settings  - Fork 273
 
feat(amazonq): add q config to lsp/configuration #5520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
  
     Merged
                    Changes from 12 commits
      Commits
    
    
            Show all changes
          
          
            22 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      b0c1cdf
              
                add support for q config section
              
              
                samgst-amazon ba3cb74
              
                customization field
              
              
                samgst-amazon 50e2f3d
              
                detekt
              
              
                samgst-amazon bb57f74
              
                Merge branch 'feature/q-lsp' into samgst/q-lsp-q-config-settings
              
              
                samgst-amazon d9ee16c
              
                Merge branch 'feature/q-lsp' into samgst/q-lsp-q-config-settings
              
              
                samgst-amazon 5af7915
              
                Merge branch 'feature/q-lsp' into samgst/q-lsp-q-config-settings
              
              
                samgst-amazon 8eafb45
              
                Merge branch 'main' into samgst/q-lsp-q-config-settings
              
              
                samgst-amazon f069bd3
              
                Merge branch 'main' into samgst/q-lsp-q-config-settings
              
              
                samgst-amazon 47821ca
              
                add customization
              
              
                samgst-amazon 36e79f9
              
                fix arn fetching
              
              
                samgst-amazon a5599a7
              
                Merge branch 'main' into samgst/q-lsp-q-config-settings
              
              
                rli 0afdf3e
              
                local indexing
              
              
                rli 9e36f65
              
                Merge branch 'feature/q-lsp-chat' into samgst/q-lsp-q-config-settings
              
              
                rli ad65042
              
                tst
              
              
                rli 38d4084
              
                tst
              
              
                rli 564d74b
              
                tst
              
              
                rli ce128ab
              
                lint
              
              
                rli fade5db
              
                tst
              
              
                rli 78ac285
              
                lint
              
              
                rli 085c9b0
              
                propogate settings
              
              
                rli 39e0c06
              
                tst
              
              
                rli 00ef3a0
              
                shadowing
              
              
                rli File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
        
          
          
            2 changes: 1 addition & 1 deletion
          
          2 
        
  ...ization/CodeWhispererModelConfigurator.kt → ...ization/CodeWhispererModelConfigurator.kt
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
        
          
          
            32 changes: 32 additions & 0 deletions
          
          32 
        
  ...unity/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspConfiguration.kt
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
| 
     | 
||
| package software.aws.toolkits.jetbrains.services.amazonq.lsp | ||
| 
     | 
||
| import com.google.gson.annotations.SerializedName | ||
| 
     | 
||
| data class AmazonQLspConfiguration( | ||
| @SerializedName(AmazonQLspConstants.LSP_OPT_OUT_TELEMETRY_CONFIGURATION_KEY) | ||
| val optOutTelemetry: Boolean? = null, | ||
| 
     | 
||
| @SerializedName(AmazonQLspConstants.LSP_ENABLE_TELEMETRY_EVENTS_CONFIGURATION_KEY) | ||
| val enableTelemetryEvents: Boolean? = null, | ||
| 
     | 
||
| @SerializedName(AmazonQLspConstants.LSP_CUSTOMIZATION_CONFIGURATION_KEY) | ||
| val customization: String? = null, | ||
| 
     | 
||
| val enableLocalIndexing: Boolean? = null, | ||
| 
     | 
||
| val enableGpuAcceleration: Boolean? = null, | ||
| 
     | 
||
| val indexWorkerThreads: Int? = null, | ||
| 
     | 
||
| val localIndexing: LocalIndexingConfiguration? = null, | ||
| ) | ||
| 
     | 
||
| data class LocalIndexingConfiguration( | ||
| val ignoreFilePatterns: List<String>? = null, | ||
| val maxFileSizeMB: Int? = null, | ||
| val maxIndexSizeMB: Int? = null, | ||
| val indexCacheDirPath: String? = null, | ||
| ) | ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
            File renamed without changes.
          
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The flag enableTelemetryEventsToDestination is set to true temporarily. It's value will be determined through destination configuration post all events migration to STE. It'll be replaced by qConfig['enableTelemetryEventsToDestination'] === trueThis is not currently being used but will be in future migrations. not exactly sure what it should be pointing to in current codebase