@aws/lsp-codewhisperer 0.0.109 → 0.0.110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.110](https://github.com/aws/language-servers/compare/lsp-codewhisperer/v0.0.109...lsp-codewhisperer/v0.0.110) (2026-03-17)
4
+
5
+
6
+ ### Features
7
+
8
+ * add cwsprChatHasWorkspaceContext metric to amazonq_addMessage event ([#2665](https://github.com/aws/language-servers/issues/2665)) ([#2668](https://github.com/aws/language-servers/issues/2668)) ([7d71d0a](https://github.com/aws/language-servers/commit/7d71d0a38d1e9adbb29210fff1c2b6b5e6d7d120))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * amazon q ignores rules for other os, so adding fallback ([#2663](https://github.com/aws/language-servers/issues/2663)) ([4be527a](https://github.com/aws/language-servers/commit/4be527a69b4cecc801e23009a63c8d3301b84f2d))
14
+ * deduplicate rules in multi workspace mode ([#2660](https://github.com/aws/language-servers/issues/2660)) ([c8022fe](https://github.com/aws/language-servers/commit/c8022feb7637c64f71330856ecb3cb96096dccb7))
15
+ * rules created in default file is not working ([#2652](https://github.com/aws/language-servers/issues/2652)) ([#2655](https://github.com/aws/language-servers/issues/2655)) ([b380e97](https://github.com/aws/language-servers/commit/b380e97051251a0ead0a7bc3314f8850f14073ac))
16
+
3
17
  ## [0.0.109](https://github.com/aws/language-servers/compare/lsp-codewhisperer/v0.0.108...lsp-codewhisperer/v0.0.109) (2026-03-10)
4
18
 
5
19
 
@@ -152,7 +152,17 @@ class AgenticChatController {
152
152
  });
153
153
  this.#chatHistoryDb = chatDb_1.ChatDatabase.getInstance(features);
154
154
  this.#tabBarController = new tabBarController_1.TabBarController(features, this.#chatHistoryDb, telemetryService, (tabId) => this.sendPinnedContext(tabId));
155
- this.#additionalContextProvider = new additionalContextProvider_1.AdditionalContextProvider(features, this.#chatHistoryDb);
155
+ // Inject McpManager.getResources as a callback to avoid importing McpManager directly
156
+ // in AdditionalContextProvider, which would pull Node.js-only MCP SDK dependencies
157
+ // (node:process, node:stream) into the webworker webpack bundle and break packaging.
158
+ this.#additionalContextProvider = new additionalContextProvider_1.AdditionalContextProvider(features, this.#chatHistoryDb, () => {
159
+ try {
160
+ return mcpManager_1.McpManager.isInitialized() ? mcpManager_1.McpManager.instance.getResources() : [];
161
+ }
162
+ catch {
163
+ return [];
164
+ }
165
+ });
156
166
  this.#contextCommandsProvider = new contextCommandsProvider_1.ContextCommandsProvider(this.#features.logging, this.#features.chat, this.#features.workspace, this.#features.lsp);
157
167
  this.#mcpEventHandler = new mcpEventHandler_1.McpEventHandler(features, telemetryService);
158
168
  this.#origin = (0, utils_2.getOriginFromClientInfo)((0, utils_2.getClientName)(this.#features.lsp.getClientInitializeParams()));
@@ -2609,6 +2619,7 @@ class AgenticChatController {
2609
2619
  if (triggerContext.contextInfo) {
2610
2620
  metric.mergeWith({
2611
2621
  cwsprChatHasContextList: triggerContext.documentReference?.filePaths?.length ? true : false,
2622
+ cwsprChatHasWorkspaceContext: triggerContext.hasWorkspace ?? false,
2612
2623
  cwsprChatFolderContextCount: triggerContext.contextInfo.contextCount.folderContextCount,
2613
2624
  cwsprChatFileContextCount: triggerContext.contextInfo.contextCount.fileContextCount,
2614
2625
  cwsprChatRuleContextCount: triggerContext.contextInfo.contextCount.activeRuleContextCount,