Commit 67a26c4
* refactor: webpack/build scripts (#4670)
* test: fix core tests prompting build task
Problem:
When we run the core tests they prompt for a build task
before running. We should not have to do this.
Solution:
Create a specific build task and explicitly use that.
I think due to our recent changes the "defaultBuildTask" cannot
be appropriately resolved which is why this change was needed.
Signed-off-by: Nikolas Komonen <[email protected]>
* refactor: remove index files in core
Problem:
We had index files in the core package which we used to expose
certain methods once we packaged core in to a node module
for use by the toolkit and amazonq package.
We don't need it.
Solution:
Stop using the index files and go back to using the extension*.ts files
Signed-off-by: Nikolas Komonen <[email protected]>
* refactor: dynamically build webpack configs
Now we can dynamically build webpack configs by
exporting a function instead of the config.
This will allow us to check for the 'development' mode
at creation and from there we can modify the webpack
config that we return.
So now if we have `webpack --mode development`, we can
recognize we are in development mode and incrementally change
our config to our liking.
Signed-off-by: Nikolas Komonen <[email protected]>
* refactor: webpack/build scripts
This commit:
- Adds some comments to certain parts of the build process
- Fixes our build tasks so that `core` will build all of the
required artifacts for `toolkit` will run properly. Before there
were cases where running the `Extension (toolkit)` would fail due
to a missing `dist/vue` folder
- Fixes webviews not reflecting updated code when we refresh the webview during debugging.
This was due to the `webview serve` not being utilized correctly. Now if you change
`.vue` code and reload the webview the changes should be seen.
Signed-off-by: Nikolas Komonen <[email protected]>
* refactor: remove vue hot reload
This feature doesn't seem to work, or just isn't
worth the effort to get working.
This removes use of it, but we can always look to add it
in if we have a need for it.
Signed-off-by: Nikolas Komonen <[email protected]>
* fix: post debug task not found
We had multiple debug tasks with the same name,
so when we tried to run them it didn't know which
one to use.
Solution:
Rename one of them so the names are unique
Signed-off-by: Nikolas Komonen <[email protected]>
* refactor: webpack web configs + scripts
This commit:
- Updates the webpack web config to be dynamic, exporting a function
which is used to create the config. Previously we exported the final object.
- As a result the users of the config had to update to work
with this change.
- Now we can tweak the config depending on input arguments
- Update the tasks in the launch.json to improve the debug
mode in VS Code.
- Remove the `serve` configs from the main webpack.
- We previously used these for hot reloading but since we do not have a
use for them anymore we are getting rid of them and simplifying things.
Signed-off-by: Nikolas Komonen <[email protected]>
* refactor: browser test output unique file
Problem:
We need to both compile all source code + webpack a web extension
when running the Web unit tests so that we do not have type errors
+ have an executable file (webpacked file)
The problem is that the name extensionWeb.js is shared by both the
compiled output AND webpacked output. So one gets overwritten.
Solution:
Change the name of the webpacked output so that it does not get
overwritten. Now in unit tests we target that specifically.
Signed-off-by: Nikolas Komonen <[email protected]>
* refactor: clean up VS Code Debug menu
Problem:
The VS Code Debug launch menu is cluttered with lots
of different launch configs. It is confusing and there are
many rarely used configs.
Solution:
Clean it up and reorder the configs so they are more relevant.
Signed-off-by: Nikolas Komonen <[email protected]>
* refactor: web mode webpack
Before we had a custom flag to not build certain Web mode
bundles. But it is instead easier to always build it, but output
the bundle with a different name.
We did this due to overlapping output files with the same name,
but with this new change it does not happen anymore.
Signed-off-by: Nikolas Komonen <[email protected]>
* upgrade @vscode/test-web module
Signed-off-by: Nikolas Komonen <[email protected]>
* PR comment fixes:
- Update CONTRIBUTING regarding webview dev server
- Change the script name for web development compilation
Signed-off-by: Nikolas Komonen <[email protected]>
---------
Signed-off-by: Nikolas Komonen <[email protected]>
* deps: Update Mynah UI to 4.5.5
Problem:
- we are seeing multiple "Generating your answer..." cards in featureDev
Solution:
- update mynah ui to 4.5.5
* web: make shared crypto.randomUUID() function (#4693)
* refactor: globalThis.crypto.randomUUID()
Before, `crypto.randomUUID()` broke web mode since it is
not available in the polyfill `crypto-browserify`.
Solution:
Use `globalThis.crypto.randomUUID()` as it works in both node + browser
since each environment provides an implementation at runtime.
In the long term we will want a better solution, but this commit
quickly gets web mode working.
Signed-off-by: Nikolas Komonen <[email protected]>
* use randomUUID in existing places
Signed-off-by: Nikolas Komonen <[email protected]>
* add tests
Signed-off-by: Nikolas Komonen <[email protected]>
* add documentation
Signed-off-by: Nikolas Komonen <[email protected]>
---------
Signed-off-by: Nikolas Komonen <[email protected]>
* fix(amazonq): Quick Action commands in new tabs are coming disabled (#4707)
* fixed quick actions in new tabs are coming disabled
* Release 2.19.0
* Update version to snapshot version: 2.20.0-SNAPSHOT
* fix(amazonFeatureDev): accepted files telemetry #4689
Problem
File acceptance telemetry was not counting deleted files, i.e. the files that code generation marked to be deleted, even if they were rejected or not.
Solution
Count deleted files for the metric and add tests to assure this.
---------
Signed-off-by: Nikolas Komonen <[email protected]>
Co-authored-by: Joshua Pinkney <[email protected]>
Co-authored-by: Josh Pinkney <[email protected]>
Co-authored-by: Dogus Atasoy <[email protected]>
Co-authored-by: aws-toolkit-automation <>
Co-authored-by: Santiago Martin <[email protected]>
1 parent f4b80ea commit 67a26c4
File tree
44 files changed
+749
-673
lines changed- packages
- amazonq
- core
- .vscode
- scripts/test
- src
- amazonqFeatureDev
- controllers/chat
- session
- amazonqGumby/telemetry
- amazonq/webview/ui/quickActions
- auth
- codewhispererChat/controllers/chat
- common
- testWeb/common
- test
- amazonqFeatureDev
- controllers/chat
- session
- common
- webviews
- toolkit
- .changes
- next-release
- .vscode
- scripts/build
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
44 files changed
+749
-673
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | | - | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
521 | 527 | | |
522 | 528 | | |
523 | 529 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
27 | 25 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 26 | + | |
35 | 27 | | |
36 | | - | |
37 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
77 | | - | |
| 76 | + | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
| |||
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
96 | | - | |
| 95 | + | |
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
| |||
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
115 | | - | |
| 114 | + | |
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
122 | 121 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 122 | + | |
140 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
0 commit comments