@@ -89,32 +89,48 @@ If you want to connect a local version of language-server-runtimes to aws-toolki
8989 cd runtimes
9090 npm run prepub
9191 cd out
92- npm pack
9392 ```
9493
95- You will see a file created like this: `aws-language-server-runtimes-0.*.*.tgz`
96-
9794 If you get an error running `npm run prepub`, you can instead run `npm run prepub:copyFiles` to skip cleaning and testing.
9895
99- 3. Inside of language-servers, find the package where you need the change.
96+ 3. Choose one of the following approaches:
10097
101- For example, if you would like the change in `language-servers/app/aws-lsp-codewhisperer-runtimes`, you would run:
98+ ### Option A: Using npm pack (Recommended)
99+
100+ 3a. Create a package file:
101+
102+ npm pack
103+
104+ You will see a file created like this: `aws-language-server-runtimes-0.*.*.tgz`
105+
106+ 4a. Inside of language-servers, find the package where you need the change.
107+
108+ For example, if you would like the change in `language-servers/app/aws-lsp-codewhisperer-runtimes`, you would run:
102109
103- ```
104110 cd language-servers/app/aws-lsp-codewhisperer-runtimes
105111
106112 npm install ../../../language-server-runtimes/runtimes/out/aws-language-server-runtimes-0.*.*.tgz
107113
108114 npm run compile
109- ```
110115
111- 4 . If you need the change in aws-toolkit-vscode run:
116+ 5a . If you need the change in aws-toolkit-vscode run:
112117
113- ```
114118 cd aws-toolkit-vscode
115119
116- npm install ../language-server-runtimes/runtimes/out/aws-language-server-runtimes-0.2.126.tgz
117- ```
120+ npm install ../language-server-runtimes/runtimes/out/aws-language-server-runtimes-0.*.*.tgz
121+
122+ ### Option B: Using npm link (Alternative)
123+
124+ 3b. Create npm links:
125+
126+ npm link
127+ cd ../../types
128+ npm link
129+
130+ 4b. Inside of aws-toolkit-vscode run:
131+
132+ npm install
133+ npm link @aws/language-server-runtimes @aws/language-server-runtimes-types
118134
119135## Amazon Q Inline Activation
120136
0 commit comments