-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge Editor: Checkbox Should Push Undo Stop #158864
Labels
bug
Issue identified by VS Code Team member as probable bug
feature-request
Request for new features or functionality
merge-editor
verification-needed
Verification of issue is requested
verified
Verification succeeded
Milestone
Comments
hediet
added
bug
Issue identified by VS Code Team member as probable bug
merge-editor
labels
Aug 23, 2022
Merged
This works in the simple case but is easy to break if you check boxes on multiple sides of the editor, for example Kapture.2022-08-25.at.16.01.55.mp4 |
hediet
added
feature-request
Request for new features or functionality
verification-needed
Verification of issue is requested
and removed
verification-found
Issue verification failed
labels
Nov 28, 2022
Verification steps:
{
"languageId": "javascript",
"base": "const { readFileSync } = require('fs');\n\nlet paths = process.argv.slice(2);\nmain(paths);\n\nfunction main(paths) {\n // print the welcome message\n printMessage();\n\n let data = getLineCountInfo(paths);\n console.log(\"Lines: \" + data.totalLineCount);\n}\n\n/**\n * Prints the welcome message\n*/\nfunction printMessage() {\n console.log(\"Welcome To Line Counter\");\n}\n\n/**\n * @param {string[]} paths\n*/\nfunction getLineCountInfo(paths) {\n let lineCounts = paths.map(path => ({ path, count: getLinesLength(readFileSync(path, 'utf8')) }));\n return {\n totalLineCount: lineCounts.reduce((acc, { count }) => acc + count, 0),\n lineCounts,\n };\n}\n\n/**\n * @param {string} str\n */\nfunction getLinesLength(str) {\n return str.split('\\n').length;\n}\n",
"input1": "const { readFileSync } = require('fs');\n\nlet paths = process.argv.slice(2);\nmain(paths);\n\nfunction main(paths) {\n // print the welcome message\n printMessage();\n\n const data = getLineCountInfo(paths);\n console.log(\"Lines: \" + data.totalLineCount);\n}\n\nfunction printMessage() {\n console.log(\"Welcome To Line Counter\");\n}\n\n/**\n * @param {string[]} paths\n*/\nfunction getLineCountInfo(paths) {\n let lineCounts = paths.map(path => ({ path, count: getLinesLength(readFileSync(path, 'utf8')) }));\n return {\n totalLineCount: lineCounts.reduce((acc, { count }) => acc + count, 0),\n lineCounts,\n };\n}\n\n/**\n * @param {string} str1\n */\nfunction getLinesLength(str) {\n return str.split('\\n').length;\n}\n",
"input2": "const { readFileSync } = require('fs');\n\nlet paths = process.argv.slice(2);\nrun(paths);\n\nfunction run(paths) {\n // print the welcome message\n printMessage();\n\n const data = getLineCountInfo(paths);\n console.log(\"Lines: \" + data.totalLineCount);\n}\n\nfunction printMessage() {\n console.log(\"Welcome To Line Counter\");\n}\n\n/**\n * @param {string[]} paths\n*/\nfunction getLineCountInfo(paths) {\n let lineCounts = paths.map(path => ({ path, count: getLinesLength(readFileSync(path, 'utf8')) }));\n return {\n totalLineCount: lineCounts.reduce((acc, { count }) => acc + count, 0),\n lineCounts,\n };\n}\n\n/**\n * @param {string} str2\n */\nfunction getLinesLength(str) {\n return str.split('\\n').length;\n}\n",
"result": "const { readFileSync } = require('fs');\n\nlet paths = process.argv.slice(2);\nrun(paths);\n\nfunction run(paths) {\n // print the welcome message\n printMessage();\n\n const data = getLineCountInfo(paths);\n console.log(\"Lines: \" + data.totalLineCount);\n}\n\nfunction printMessage() {\n console.log(\"Welcome To Line Counter\");\n}\n\n/**\n * @param {string[]} paths\n*/\nfunction getLineCountInfo(paths) {\n let lineCounts = paths.map(path => ({ path, count: getLinesLength(readFileSync(path, 'utf8')) }));\n return {\n totalLineCount: lineCounts.reduce((acc, { count }) => acc + count, 0),\n lineCounts,\n };\n}\n\n/**\n * @param {string} str\n */\nfunction getLinesLength(str) {\n return str.split('\\n').length;\n}\n",
"initialResult": "const { readFileSync } = require('fs');\n\nlet paths = process.argv.slice(2);\nrun(paths);\n\nfunction run(paths) {\n // print the welcome message\n printMessage();\n\n const data = getLineCountInfo(paths);\n console.log(\"Lines: \" + data.totalLineCount);\n}\n\nfunction printMessage() {\n console.log(\"Welcome To Line Counter\");\n}\n\n/**\n * @param {string[]} paths\n*/\nfunction getLineCountInfo(paths) {\n let lineCounts = paths.map(path => ({ path, count: getLinesLength(readFileSync(path, 'utf8')) }));\n return {\n totalLineCount: lineCounts.reduce((acc, { count }) => acc + count, 0),\n lineCounts,\n };\n}\n\n/**\n * @param {string} str\n */\nfunction getLinesLength(str) {\n return str.split('\\n').length;\n}\n"
}
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bug
Issue identified by VS Code Team member as probable bug
feature-request
Request for new features or functionality
merge-editor
verification-needed
Verification of issue is requested
verified
Verification succeeded
No description provided.
The text was updated successfully, but these errors were encountered: