This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Adds vscode workspace with impeller test runner #55291
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a92fa8b
Adds vscode workspace with impeller test runner
gaaclarke 248b6a5
not sure why, but these have to be named like this which will interfe…
gaaclarke 6cc133a
added my launch entry too for debugging
gaaclarke 9ed6597
added test adapter
gaaclarke c5c0093
added source map for the debugger - works from launch ui, not from de…
gaaclarke e5497d5
got source map working for the test menu
gaaclarke 1add07a
license update
gaaclarke f85b45c
license exception
gaaclarke 3fd5371
tool signature
gaaclarke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Signature: 53025d1261891c38c7bccb158862e09f | ||
Signature: 8859e172e060ecb45aa665c3119d5d25 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,258 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "." | ||
} | ||
], | ||
"settings": { | ||
"files.associations": { | ||
"optional": "cpp", | ||
"__bit_reference": "cpp", | ||
"__bits": "cpp", | ||
"__config": "cpp", | ||
"__debug": "cpp", | ||
"__errc": "cpp", | ||
"__hash_table": "cpp", | ||
"__locale": "cpp", | ||
"__mutex_base": "cpp", | ||
"__node_handle": "cpp", | ||
"__nullptr": "cpp", | ||
"__split_buffer": "cpp", | ||
"__string": "cpp", | ||
"__threading_support": "cpp", | ||
"__tree": "cpp", | ||
"__tuple": "cpp", | ||
"any": "cpp", | ||
"array": "cpp", | ||
"atomic": "cpp", | ||
"bitset": "cpp", | ||
"cctype": "cpp", | ||
"chrono": "cpp", | ||
"cinttypes": "cpp", | ||
"clocale": "cpp", | ||
"cmath": "cpp", | ||
"codecvt": "cpp", | ||
"compare": "cpp", | ||
"complex": "cpp", | ||
"concepts": "cpp", | ||
"condition_variable": "cpp", | ||
"csignal": "cpp", | ||
"cstdarg": "cpp", | ||
"cstddef": "cpp", | ||
"cstdint": "cpp", | ||
"cstdio": "cpp", | ||
"cstdlib": "cpp", | ||
"cstring": "cpp", | ||
"ctime": "cpp", | ||
"cwchar": "cpp", | ||
"cwctype": "cpp", | ||
"deque": "cpp", | ||
"exception": "cpp", | ||
"forward_list": "cpp", | ||
"fstream": "cpp", | ||
"future": "cpp", | ||
"initializer_list": "cpp", | ||
"iomanip": "cpp", | ||
"ios": "cpp", | ||
"iosfwd": "cpp", | ||
"iostream": "cpp", | ||
"istream": "cpp", | ||
"limits": "cpp", | ||
"list": "cpp", | ||
"locale": "cpp", | ||
"map": "cpp", | ||
"memory": "cpp", | ||
"mutex": "cpp", | ||
"new": "cpp", | ||
"numeric": "cpp", | ||
"ostream": "cpp", | ||
"queue": "cpp", | ||
"random": "cpp", | ||
"ratio": "cpp", | ||
"regex": "cpp", | ||
"set": "cpp", | ||
"span": "cpp", | ||
"sstream": "cpp", | ||
"stack": "cpp", | ||
"stdexcept": "cpp", | ||
"streambuf": "cpp", | ||
"string": "cpp", | ||
"string_view": "cpp", | ||
"strstream": "cpp", | ||
"system_error": "cpp", | ||
"tuple": "cpp", | ||
"type_traits": "cpp", | ||
"typeinfo": "cpp", | ||
"unordered_map": "cpp", | ||
"unordered_set": "cpp", | ||
"valarray": "cpp", | ||
"variant": "cpp", | ||
"vector": "cpp", | ||
"algorithm": "cpp", | ||
"filesystem": "cpp", | ||
"memory_resource": "cpp", | ||
"bit": "cpp", | ||
"charconv": "cpp", | ||
"format": "cpp", | ||
"functional": "cpp", | ||
"iterator": "cpp", | ||
"utility": "cpp", | ||
"__assert": "cpp", | ||
"*.inc": "cpp", | ||
"__verbose_abort": "cpp", | ||
"*.def": "cpp", | ||
"*.hpp11": "cpp", | ||
"__functional_base": "cpp", | ||
"shared_mutex": "cpp", | ||
"coroutine": "cpp", | ||
"hash_map": "cpp", | ||
"hash_set": "cpp", | ||
"thread": "cpp", | ||
"propagate_const": "cpp", | ||
"*.gen": "cpp", | ||
"simd": "cpp", | ||
"barrier": "cpp", | ||
"cuchar": "cpp", | ||
"latch": "cpp", | ||
"numbers": "cpp", | ||
"scoped_allocator": "cpp", | ||
"semaphore": "cpp", | ||
"typeindex": "cpp", | ||
"__std_stream": "cpp", | ||
"*.ipp": "cpp", | ||
"csetjmp": "cpp", | ||
"cfenv": "cpp" | ||
}, | ||
"C_Cpp.default.includePath": [ | ||
"${default}", | ||
"${workspaceFolder}/..", | ||
"${workspaceFolder}", | ||
], | ||
"dotnet.defaultSolution": "disable", | ||
"dart.showTodos": false, | ||
"testMate.cpp.test.advancedExecutables": [ | ||
{ | ||
"name": "impeller_unittests_arm64", | ||
"pattern": "../out/host_debug_unopt_arm64/impeller_unittests", | ||
"runTask": { | ||
"before": [ | ||
"impeller_unittests_arm64" | ||
] | ||
}, | ||
"gtest": { | ||
"prependTestRunningArgs": [ | ||
"--enable_playground" | ||
] | ||
} | ||
} | ||
], | ||
"testMate.cpp.debug.configTemplate": { | ||
"type": "cppvsdbg", | ||
"linux": { | ||
"type": "cppdbg", | ||
"MIMode": "gdb" | ||
}, | ||
"darwin": { | ||
"type": "cppdbg", | ||
"MIMode": "lldb", | ||
"setupCommands": [ | ||
{ | ||
"description": "Source map", | ||
"text": "settings set target.source-map \"flutter/\" \"${workspaceFolder}\"", | ||
"ignoreFailures": false | ||
} | ||
], | ||
}, | ||
"win32": { | ||
"type": "cppvsdbg" | ||
}, | ||
"program": "${exec}", | ||
"args": "${argsArray}", | ||
"cwd": "${cwd}", | ||
"env": "${envObj}", | ||
"environment": "${envObjArray}", | ||
"sourceFileMap": "${sourceFileMapObj}", | ||
} | ||
}, | ||
"tasks": { | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "impeller_unittests_arm64", | ||
"type": "shell", | ||
"command": "./flutter/bin/et", | ||
"args": [ | ||
"build", | ||
"-c", | ||
"host_debug_unopt_arm64", | ||
"//flutter/impeller:impeller_unittests" | ||
], | ||
"options": { | ||
"cwd": "${workspaceFolder}/.." | ||
}, | ||
"problemMatcher": [ | ||
"$gcc" | ||
], | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "always", | ||
"focus": false, | ||
"panel": "shared", | ||
"clear": true | ||
}, | ||
"group": { | ||
"kind": "build", | ||
} | ||
} | ||
] | ||
}, | ||
"extensions": { | ||
"recommendations": [ | ||
// C++ TestMate | ||
"matepek.vscode-catch2-test-adapter", | ||
// Uses github-styled markdown preview, which supports more features than the default markdown preview. | ||
"bierner.github-markdown-preview", | ||
// Flutter and Dart extensions. | ||
"Dart-Code.dart-code", | ||
// Supports C/C++ in the engine. | ||
// See https://github.com/flutter/engine/blob/main/docs/contributing/Setting-up-the-Engine-development-environment.md#vscode-with-cc-intellisense-cc | ||
"llvm-vs-code-extensions.vscode-clangd", | ||
// Auto-formats C/C++ code. | ||
// https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#cc | ||
"xaver.clang-format", | ||
] | ||
}, | ||
"launch": { | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "impeller_unittests_arm64", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/../out/host_debug_unopt_arm64/impeller_unittests", | ||
"args": [ | ||
"--enable_playground", | ||
], | ||
"stopAtEntry": false, | ||
"cwd": "${workspaceFolder}/../out/host_debug_unopt_arm64", | ||
"environment": [], | ||
"externalConsole": false, | ||
"MIMode": "lldb", | ||
"setupCommands": [ | ||
{ | ||
"description": "Enable pretty-printing for lldb", | ||
"text": "settings set target.pretty-printing true", | ||
"ignoreFailures": true | ||
}, | ||
{ | ||
"description": "Source map", | ||
"text": "settings set target.source-map \"flutter/\" \"${workspaceFolder}\"", | ||
"ignoreFailures": false | ||
} | ||
], | ||
"preLaunchTask": "impeller_unittests_arm64", | ||
} | ||
], | ||
"compounds": [] | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't these be
*.<extension>
- or are these just loose files lying about the tree. These look like identifiers rather than files.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are the c++ standard library. Like
#include <atomic>
. Since there is no extension I think it may have issues figuring out what language it is. I've had this set forever so I decided to share it.