Skip to content

Commit f854ae9

Browse files
committed
clean up
1 parent b5223d4 commit f854ae9

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

aws-toolkit-vscode.code-workspace

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212
{
1313
"path": "packages/amazonq",
1414
},
15-
{
16-
"path": "../language-server-runtimes",
17-
},
18-
{
19-
"path": "../language-servers",
20-
},
2115
],
2216
"settings": {
2317
"typescript.tsdk": "node_modules/typescript/lib",

packages/amazonq/.vscode/launch.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
1414
"env": {
1515
"SSMDOCUMENT_LANGUAGESERVER_PORT": "6010",
16-
"WEBPACK_DEVELOPER_SERVER": "http://localhost:8080",
16+
"WEBPACK_DEVELOPER_SERVER": "http://localhost:8080"
1717
// Below allows for overrides used during development
18-
"__AMAZONQLSP_PATH": "${workspaceFolder}/../../../language-servers/app/aws-lsp-codewhisperer-runtimes/out/agent-standalone.js",
19-
"__AMAZONQLSP_UI": "${workspaceFolder}/../../../language-servers/chat-client/build/amazonq-ui.js"
18+
//"__AMAZONQLSP_PATH": "${workspaceFolder}/../../../language-servers/app/aws-lsp-codewhisperer-runtimes/out/agent-standalone.js",
19+
//"__AMAZONQLSP_UI": "${workspaceFolder}/../../../language-servers/chat-client/build/amazonq-ui.js"
2020
},
2121
"envFile": "${workspaceFolder}/.local.env",
2222
"outFiles": ["${workspaceFolder}/dist/**/*.js", "${workspaceFolder}/../core/dist/**/*.js"],

packages/amazonq/src/lsp/chat/activation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export async function activate(languageClient: LanguageClient, encryptionKey: Bu
8484
}),
8585
Commands.register('aws.amazonq.manageSubscription', () => {
8686
focusAmazonQPanel().catch((e) => languageClient.error(`[VSCode Client] focusAmazonQPanel() failed`))
87+
8788
languageClient
8889
.sendRequest('workspace/executeCommand', {
8990
command: 'aws/chat/manageSubscription',

packages/amazonq/src/lsp/client.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
CodeWhispererSettings,
2424
getSelectedCustomization,
2525
TelemetryHelper,
26+
vsCodeState,
2627
} from 'aws-core-vscode/codewhisperer'
2728
import {
2829
Settings,
@@ -362,6 +363,10 @@ async function onLanguageServerReady(
362363
Commands.register('aws.amazonq.checkInlineSuggestionVisibility', async () => {
363364
sessionManager.checkInlineSuggestionVisibility()
364365
}),
366+
Commands.register({ id: 'aws.amazonq.invokeInlineCompletion', autoconnect: true }, async () => {
367+
vsCodeState.lastManualTriggerTime = performance.now()
368+
await vscode.commands.executeCommand('editor.action.inlineSuggest.trigger')
369+
}),
365370
vscode.workspace.onDidCloseTextDocument(async () => {
366371
await vscode.commands.executeCommand('aws.amazonq.rejectCodeSuggestion')
367372
})

0 commit comments

Comments
 (0)