You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that there is difference in edit.c[0].to._formatted property. The value in actual object is not null, unlike the expected value (red color for the actual value):
The extension code building this code action is similar to the snippet for expected object in tests:
constaction=newCodeAction(`Rename the file to '${parsedMessage[FIX_KEY]}'`,CodeActionKind.QuickFix,);action.isPreferred=true;action.edit=newWorkspaceEdit();constfixedUri: Uri=Uri.joinPath(uri,'..',parsedMessage[FIX_KEY]);action.edit.renameFile(uri,fixedUri,{overwrite: false});
The issue is reproduced when I run tests normally and isn't reproduced when I debug the extension tests with breakpoints.
VS Code version: Code 1.91.1 (f1e16e1, 2024-07-09T22:06:49.809Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
Item
Value
CPUs
AMD Ryzen 7 5700U with Radeon Graphics (16 x 1797)
Type: Bug
Hello,
I've made unit/integration tests for vscode extension via
@vscode/test-electron
.When I compare an actual
renameFile
code action obtained viaand the expected code action created via
I see that there is difference in
edit.c[0].to._formatted
property. The value in actual object is not null, unlike the expected value (red color for the actual value):The extension code building this code action is similar to the snippet for expected object in tests:
The issue is reproduced when I run tests normally and isn't reproduced when I debug the extension tests with breakpoints.
VS Code version: Code 1.91.1 (f1e16e1, 2024-07-09T22:06:49.809Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (10)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: