@@ -10,12 +10,8 @@ import { init as cwChatAppInit } from '../codewhispererChat/app'
10
10
import { init as featureDevChatAppInit } from '../amazonqFeatureDev/app'
11
11
import { init as gumbyChatAppInit } from '../amazonqGumby/app'
12
12
import { AmazonQAppInitContext , DefaultAmazonQAppInitContext } from './apps/initContext'
13
- import { Commands , VsCodeCommandArg } from '../shared/vscode/commands2'
14
- import { MessagePublisher } from './messages/messagePublisher'
15
- import { welcome } from './onboardingPage'
13
+ import { Commands } from '../shared/vscode/commands2'
16
14
import { activateBadge } from './util/viewBadgeHandler'
17
- import { telemetry } from '../shared/telemetry/telemetry'
18
- import { focusAmazonQPanel } from '../auth/ui/vue/show'
19
15
import { amazonQHelpUrl } from '../shared/constants'
20
16
import { openAmazonQWalkthrough } from './onboardingPage/walkthrough'
21
17
import { listCodeWhispererCommandsWalkthrough } from '../codewhisperer/ui/statusBarMenu'
@@ -32,8 +28,6 @@ export async function activate(context: ExtensionContext) {
32
28
appInitContext . onDidChangeAmazonQVisibility
33
29
)
34
30
35
- const cwcWebViewToAppsPublisher = appInitContext . getWebViewToAppsMessagePublishers ( ) . get ( 'cwc' ) !
36
-
37
31
context . subscriptions . push (
38
32
window . registerWebviewViewProvider ( AmazonQChatViewProvider . viewType , provider , {
39
33
webviewOptions : {
@@ -45,7 +39,6 @@ export async function activate(context: ExtensionContext) {
45
39
listCodeWhispererCommandsWalkthrough . register ( )
46
40
)
47
41
48
- amazonQWelcomeCommand . register ( context , cwcWebViewToAppsPublisher )
49
42
Commands . register ( 'aws.amazonq.learnMore' , ( ) => {
50
43
void vscode . env . openExternal ( vscode . Uri . parse ( amazonQHelpUrl ) )
51
44
} )
@@ -58,14 +51,3 @@ function registerApps(appInitContext: AmazonQAppInitContext) {
58
51
featureDevChatAppInit ( appInitContext )
59
52
gumbyChatAppInit ( appInitContext )
60
53
}
61
-
62
- export const amazonQWelcomeCommand = Commands . declare (
63
- { id : 'aws.amazonq.welcome' , compositeKey : { 1 : 'source' } } ,
64
- ( context : ExtensionContext , publisher : MessagePublisher < any > ) => ( _ : VsCodeCommandArg , source : string ) => {
65
- telemetry . ui_click . run ( ( ) => {
66
- void focusAmazonQPanel ( )
67
- welcome ( context , publisher )
68
- telemetry . record ( { elementId : 'toolkit_openedWelcomeToAmazonQPage' , source } )
69
- } )
70
- }
71
- )
0 commit comments