Skip to content

Commit ebadabc

Browse files
authored
Merge branch 'aws:master' into master
2 parents 3a4ddc9 + ad2164b commit ebadabc

File tree

112 files changed

+2572
-10592
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+2572
-10592
lines changed

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ jobs:
184184
windows:
185185
needs: lint-commits
186186
name: test Windows
187-
runs-on: windows-2019
187+
runs-on: windows-latest
188188
strategy:
189189
fail-fast: false
190190
matrix:

docs/lsp.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ sequenceDiagram
2626

2727
## Language Server Debugging
2828

29-
1. Clone https://github.com/aws/language-servers.git and set it up in the same workspace as this project by cmd+shift+p and "add folder to workspace" and selecting the language-servers folder that you just cloned. Your VS code folder structure should look like below.
30-
31-
29+
1. Clone https://github.com/aws/language-servers.git and set it up in the same workspace as this project by cmd+shift+p and "add folder to workspace" and selecting the language-servers folder that you just cloned. Your VS code folder structure should look like below.
3230

3331
```
3432
/aws-toolkit-vscode
@@ -45,7 +43,7 @@ sequenceDiagram
4543
npm run package
4644
```
4745
to get the project setup
48-
3. Enable the lsp experiment:
46+
3. You need to open VScode user settings (Cmd+Shift+P and Search "Open User Settings (JSON)") and add the lines below at the bottom of the settings to enable the lsp experiment:
4947
```
5048
"aws.experiments": {
5149
"amazonqLSP": true,
@@ -54,7 +52,7 @@ sequenceDiagram
5452
}
5553
```
5654
4. Uncomment the `__AMAZONQLSP_PATH` and `__AMAZONQLSP_UI` variables in the `amazonq/.vscode/launch.json` extension configuration
57-
5. Use the `Launch LSP with Debugging` configuration and set breakpoints in VSCode or the language server
55+
5. Use the `Launch LSP with Debugging` configuration and set breakpoints in VSCode or the language server, Once you run "Launch LSP with Debugging" a new window should start, wait for the plugin to show up there. Then go to the run menu again and run "Attach to Language Server (amazonq)" after this you should be able to add breakpoints in the LSP code.
5856
6. (Optional): Enable `"amazonq.trace.server": "on"` or `"amazonq.trace.server": "verbose"` in your VSCode settings to view detailed log messages sent to/from the language server. These log messages will show up in the "Amazon Q Language Server" output channel
5957
6058
## Amazon Q Inline Activation

package-lock.json

Lines changed: 36 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"date": "2025-06-18",
3+
"version": "1.77.0",
4+
"entries": []
5+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "Resolve missing chat options in Amazon Q chat interface."
4+
}

packages/amazonq/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.77.0 2025-06-18
2+
3+
- Miscellaneous non-user-facing changes
4+
15
## 1.76.0 2025-06-18
26

37
- **Bug Fix** /transform: only show lines of code statistic in plan

packages/amazonq/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "amazon-q-vscode",
33
"displayName": "Amazon Q",
44
"description": "The most capable generative AI-powered assistant for building, operating, and transforming software, with advanced capabilities for managing data and AI",
5-
"version": "1.77.0-SNAPSHOT",
5+
"version": "1.78.0-SNAPSHOT",
66
"extensionKind": [
77
"workspace"
88
],

packages/amazonq/src/app/inline/activation.ts

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -6,68 +6,26 @@
66
import vscode from 'vscode'
77
import {
88
AuthUtil,
9-
CodeSuggestionsState,
10-
CodeWhispererCodeCoverageTracker,
119
CodeWhispererConstants,
12-
CodeWhispererSettings,
13-
ConfigurationEntry,
14-
DefaultCodeWhispererClient,
15-
invokeRecommendation,
1610
isInlineCompletionEnabled,
17-
KeyStrokeHandler,
18-
RecommendationHandler,
1911
runtimeLanguageContext,
2012
TelemetryHelper,
2113
UserWrittenCodeTracker,
2214
vsCodeState,
2315
} from 'aws-core-vscode/codewhisperer'
24-
import { Commands, getLogger, globals, sleep } from 'aws-core-vscode/shared'
16+
import { globals, sleep } from 'aws-core-vscode/shared'
2517

2618
export async function activate() {
27-
const codewhispererSettings = CodeWhispererSettings.instance
28-
const client = new DefaultCodeWhispererClient()
29-
3019
if (isInlineCompletionEnabled()) {
3120
await setSubscriptionsforInlineCompletion()
3221
await AuthUtil.instance.setVscodeContextProps()
3322
}
3423

35-
function getAutoTriggerStatus(): boolean {
36-
return CodeSuggestionsState.instance.isSuggestionsEnabled()
37-
}
38-
39-
async function getConfigEntry(): Promise<ConfigurationEntry> {
40-
const isShowMethodsEnabled: boolean =
41-
vscode.workspace.getConfiguration('editor').get('suggest.showMethods') || false
42-
const isAutomatedTriggerEnabled: boolean = getAutoTriggerStatus()
43-
const isManualTriggerEnabled: boolean = true
44-
const isSuggestionsWithCodeReferencesEnabled = codewhispererSettings.isSuggestionsWithCodeReferencesEnabled()
45-
46-
// TODO:remove isManualTriggerEnabled
47-
return {
48-
isShowMethodsEnabled,
49-
isManualTriggerEnabled,
50-
isAutomatedTriggerEnabled,
51-
isSuggestionsWithCodeReferencesEnabled,
52-
}
53-
}
54-
5524
async function setSubscriptionsforInlineCompletion() {
56-
RecommendationHandler.instance.subscribeSuggestionCommands()
57-
5825
/**
5926
* Automated trigger
6027
*/
6128
globals.context.subscriptions.push(
62-
vscode.window.onDidChangeActiveTextEditor(async (editor) => {
63-
await RecommendationHandler.instance.onEditorChange()
64-
}),
65-
vscode.window.onDidChangeWindowState(async (e) => {
66-
await RecommendationHandler.instance.onFocusChange()
67-
}),
68-
vscode.window.onDidChangeTextEditorSelection(async (e) => {
69-
await RecommendationHandler.instance.onCursorChange(e)
70-
}),
7129
vscode.workspace.onDidChangeTextDocument(async (e) => {
7230
const editor = vscode.window.activeTextEditor
7331
if (!editor) {
@@ -80,7 +38,6 @@ export async function activate() {
8038
return
8139
}
8240

83-
CodeWhispererCodeCoverageTracker.getTracker(e.document.languageId)?.countTotalTokens(e)
8441
UserWrittenCodeTracker.instance.onTextDocumentChange(e)
8542
/**
8643
* Handle this keystroke event only when
@@ -105,19 +62,6 @@ export async function activate() {
10562
* Then this event can be processed by our code.
10663
*/
10764
await sleep(CodeWhispererConstants.vsCodeCursorUpdateDelay)
108-
if (!RecommendationHandler.instance.isSuggestionVisible()) {
109-
await KeyStrokeHandler.instance.processKeyStroke(e, editor, client, await getConfigEntry())
110-
}
111-
}),
112-
// manual trigger
113-
Commands.register({ id: 'aws.amazonq.invokeInlineCompletion', autoconnect: true }, async () => {
114-
invokeRecommendation(
115-
vscode.window.activeTextEditor as vscode.TextEditor,
116-
client,
117-
await getConfigEntry()
118-
).catch((e) => {
119-
getLogger().error('invokeRecommendation failed: %s', (e as Error).message)
120-
})
12165
})
12266
)
12367
}

0 commit comments

Comments
 (0)