@aws/lsp-codewhisperer 0.0.115 → 0.0.117

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,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.117](https://github.com/aws/language-servers/compare/lsp-codewhisperer/v0.0.116...lsp-codewhisperer/v0.0.117) (2026-05-22)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * canonicalize paths through filesystem in requiresPathAcceptance ([#2742](https://github.com/aws/language-servers/issues/2742)) ([6c279b0](https://github.com/aws/language-servers/commit/6c279b083cc192aa5df1f38c2c185576fd5234f5))
9
+ * surface post-build checkpoint hitl after local build verification ([#2737](https://github.com/aws/language-servers/issues/2737)) ([31e3528](https://github.com/aws/language-servers/commit/31e35285256435706e679ec165d663bb6f6e308b))
10
+
11
+ ## [0.0.116](https://github.com/aws/language-servers/compare/lsp-codewhisperer/v0.0.115...lsp-codewhisperer/v0.0.116) (2026-05-18)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * **amazonq:** prevent file link click from crashing language server ([#2718](https://github.com/aws/language-servers/issues/2718)) ([#2730](https://github.com/aws/language-servers/issues/2730)) ([51e1849](https://github.com/aws/language-servers/commit/51e184948387714bccd5b9c5e50e07d47d771fb1))
17
+
3
18
  ## [0.0.115](https://github.com/aws/language-servers/compare/lsp-codewhisperer/v0.0.114...lsp-codewhisperer/v0.0.115) (2026-05-13)
4
19
 
5
20
 
@@ -2899,24 +2899,29 @@ class AgenticChatController {
2899
2899
  const session = this.#chatSessionManagementService.getSession(params.tabId);
2900
2900
  const toolUseId = params.messageId;
2901
2901
  const toolUse = toolUseId ? session.data?.toolUseLookup.get(toolUseId) : undefined;
2902
- if (toolUse?.name === toolConstants_1.FS_WRITE || toolUse?.name === toolConstants_1.FS_REPLACE) {
2903
- const input = toolUse.input;
2904
- this.#features.lsp.workspace.openFileDiff({
2905
- originalFileUri: input.path,
2906
- originalFileContent: toolUse.fileChange?.before,
2907
- isDeleted: false,
2908
- fileContent: toolUse.fileChange?.after,
2909
- });
2910
- }
2911
- else if (toolUse?.name === toolConstants_1.FS_READ) {
2912
- await this.#features.lsp.window.showDocument({ uri: vscode_uri_1.URI.file(params.filePath).toString() });
2913
- }
2914
- else {
2915
- const absolutePath = params.fullPath ?? (await this.#resolveAbsolutePath(params.filePath));
2916
- if (absolutePath) {
2917
- await this.#features.lsp.window.showDocument({ uri: vscode_uri_1.URI.file(absolutePath).toString() });
2902
+ try {
2903
+ if (toolUse?.name === toolConstants_1.FS_WRITE || toolUse?.name === toolConstants_1.FS_REPLACE) {
2904
+ const input = toolUse.input;
2905
+ this.#features.lsp.workspace.openFileDiff({
2906
+ originalFileUri: input.path,
2907
+ originalFileContent: toolUse.fileChange?.before,
2908
+ isDeleted: false,
2909
+ fileContent: toolUse.fileChange?.after,
2910
+ });
2911
+ }
2912
+ else if (toolUse?.name === toolConstants_1.FS_READ) {
2913
+ await this.#features.lsp.window.showDocument({ uri: vscode_uri_1.URI.file(params.filePath).toString() });
2914
+ }
2915
+ else {
2916
+ const absolutePath = params.fullPath ?? (await this.#resolveAbsolutePath(params.filePath));
2917
+ if (absolutePath) {
2918
+ await this.#features.lsp.window.showDocument({ uri: vscode_uri_1.URI.file(absolutePath).toString() });
2919
+ }
2918
2920
  }
2919
2921
  }
2922
+ catch (e) {
2923
+ this.#features.logging.error(`Error opening file: ${e.message}`);
2924
+ }
2920
2925
  }
2921
2926
  async onFollowUpClicked(params) {
2922
2927
  this.#log(`onFollowUpClicked: ${JSON.stringify(params)}`);
@@ -3069,7 +3074,10 @@ class AgenticChatController {
3069
3074
  }
3070
3075
  // handle prompt file outside of workspace
3071
3076
  if (relativePath.endsWith(contextUtils_1.promptFileExtension)) {
3072
- return path.join((0, contextUtils_1.getUserPromptsDirectory)(), relativePath);
3077
+ const promptPath = path.join((0, contextUtils_1.getUserPromptsDirectory)(), relativePath);
3078
+ if (await this.#features.workspace.fs.exists(promptPath)) {
3079
+ return promptPath;
3080
+ }
3073
3081
  }
3074
3082
  this.#features.logging.error(`File not found: ${relativePath}`);
3075
3083
  }