diff --git a/.github/actions/StaleCloser/StaleCloser.js b/.github/actions/StaleCloser/StaleCloser.js index 15f4c177a..dd775d082 100644 --- a/.github/actions/StaleCloser/StaleCloser.js +++ b/.github/actions/StaleCloser/StaleCloser.js @@ -79,7 +79,7 @@ class StaleCloser extends ActionBase_1.ActionBase { console.log(`Closing issue ${hydrated.number}.`); } else { - // Ping + // Ping if (hydrated.updatedAt < pingTimestamp && hydrated.assignee) { console.log(`Last comment on issue ${hydrated.number} by ${lastComment.author.name}. Pinging @${hydrated.assignee}`); if (this.pingComment) { diff --git a/.github/actions/StaleCloser/StaleCloser.ts b/.github/actions/StaleCloser/StaleCloser.ts index 1e411f3f9..d516c06e8 100644 --- a/.github/actions/StaleCloser/StaleCloser.ts +++ b/.github/actions/StaleCloser/StaleCloser.ts @@ -97,7 +97,7 @@ export class StaleCloser extends ActionBase { } console.log(`Closing issue ${hydrated.number}.`) } else { - // Ping + // Ping if (hydrated.updatedAt < pingTimestamp && hydrated.assignee) { console.log( `Last comment on issue ${hydrated.number} by ${lastComment.author.name}. Pinging @${hydrated.assignee}`, diff --git a/Build/lldb-mi/lldb-mi.yml b/Build/lldb-mi/lldb-mi.yml index 80cde6ca2..85aa0182d 100644 --- a/Build/lldb-mi/lldb-mi.yml +++ b/Build/lldb-mi/lldb-mi.yml @@ -17,13 +17,13 @@ jobs: steps: - task: CmdLine@2 displayName: 'Install Dependencies' - inputs: + inputs: script: brew install cmake ninja swig continueOnError: true - task: CmdLine@2 displayName: 'Build LLVM Project' - inputs: + inputs: script: | log_and_exec_cmd() { echo "##[command] $1" @@ -32,7 +32,7 @@ jobs: log_and_exec_cmd "cd $(Build.StagingDirectory)" log_and_exec_cmd "mkdir $(Build.StagingDirectory)/buildspace" - + log_and_exec_cmd "git clone $(llvm_repo) llvm-project" log_and_exec_cmd "cd llvm-project" log_and_exec_cmd "git checkout $(llvm_branch)" diff --git a/Code Samples/BoxConsoleSample/README.md b/Code Samples/BoxConsoleSample/README.md index 178feeeb8..c1a1fabc9 100644 --- a/Code Samples/BoxConsoleSample/README.md +++ b/Code Samples/BoxConsoleSample/README.md @@ -21,4 +21,4 @@ This option will generate a tasks.json file for you, build your active source fi ### F5 Another way to begin building and debugging your active file is to execute the command by pressing F5. This method will configure -both a tasks.json and launch.json file for you, build your active source file, and then launch the debugger. +both a tasks.json and launch.json file for you, build your active source file, and then launch the debugger. diff --git a/Code Samples/Fib/README.md b/Code Samples/Fib/README.md index 7e53f5914..6402c911b 100644 --- a/Code Samples/Fib/README.md +++ b/Code Samples/Fib/README.md @@ -1,3 +1,3 @@ # Fib -This code sample is to show debugging. Update `launch.json` and `tasks.json` in the `.vscode` folder to use your setup to build and debug. \ No newline at end of file +This code sample is to show debugging. Update `launch.json` and `tasks.json` in the `.vscode` folder to use your setup to build and debug. \ No newline at end of file diff --git a/Code Samples/Fib/thread.cpp b/Code Samples/Fib/thread.cpp index f24717b63..bef34e9c7 100644 --- a/Code Samples/Fib/thread.cpp +++ b/Code Samples/Fib/thread.cpp @@ -15,14 +15,14 @@ static int fib(int n){ switch (n) { case 0: return 1; case 1: return 1; - default: return (fib(n-2) + fib(n-1)); - } + default: return (fib(n-2) + fib(n-1)); + } } void * thread_proc(void* ctx) { int tid = g_tid++; - + char thread_name[16]; sprintf(thread_name, "Thread %d", tid); #ifdef __APPLE__ @@ -30,19 +30,19 @@ void * thread_proc(void* ctx) #else pthread_setname_np(pthread_self(), thread_name); #endif - + // Random delay, 0 - 0.5 sec timespec ts; ts.tv_sec = 0; ts.tv_nsec = 500000000 + ((float)rand() / (float)RAND_MAX) * 500000000; nanosleep(&ts, NULL); - + volatile int i = 0; while (i <= 30) { std::cout << "Thread " << tid << ": fib(" << i << ") = " << fib(i) << std::endl; i++; nanosleep(&ts, NULL); } - + std::cout << thread_name << " exited!" << std::endl; } \ No newline at end of file diff --git a/Documentation/Debugger/natvis/natvis.xsd b/Documentation/Debugger/natvis/natvis.xsd index c7428e522..56c2dd4de 100644 --- a/Documentation/Debugger/natvis/natvis.xsd +++ b/Documentation/Debugger/natvis/natvis.xsd @@ -240,7 +240,7 @@ - + @@ -335,9 +335,9 @@ are evaluated in the context of the node. - + - + Expression that points to value of the linked list node. It can be left empty or have 'this' to refer to the linked list node itself. This expression is evaluated under the context of the linked list node and not the parent linked list type. @@ -402,7 +402,7 @@ Indicates that the item should use the icon associated with general data. - + @@ -864,16 +864,16 @@ - Specifies an expression which evaluates to the current object, casted to its most-derived type. - - In most cases, the debugger is able to automatically determine an object's most-derived type, in which case use of the <MostDerivedType> + Specifies an expression which evaluates to the current object, casted to its most-derived type. + + In most cases, the debugger is able to automatically determine an object's most-derived type, in which case use of the <MostDerivedType> element is unecessary. Automatic determination of an object's most-derived type requires the object to be an instance of a C++ class, with a compiler-generated virtual function table. This is sufficient for most class-hierarchies; however, custom logic may occasionally be necessary - when dealing with a class hierarchy that does not contain virtual functions, or when the virtual function table is manually constructed by the + when dealing with a class hierarchy that does not contain virtual functions, or when the virtual function table is manually constructed by the application code. - + @@ -935,12 +935,12 @@ Indicates that the given type is a smart pointer. The text inside this element specifies the expression to evaluate the underlying pointer. - + The <SmartPointer> element has the following effects: - If no alternative <DisplayString> element is provided (or all <DisplayString> elements have failed conditions), the underlying pointer will be the display string - If no alternative <StringView> element is provided (or all <StringView> elements have failed conditions), the underlying pointer will be the string view, if it has one. - If no alternative <Expand> element is provided, the expansion of the smart pointer will be the expansion of the underlying pointer. - - The smart pointer class will also support overloaded operators as determined by the <Usage> attribute. You can opt out of this behavior by specifying + - The smart pointer class will also support overloaded operators as determined by the <Usage> attribute. You can opt out of this behavior by specifying 'DefaultExpansion="false"' @@ -949,7 +949,7 @@ - Indicates which combinations of operators this smart pointer object supports. + Indicates which combinations of operators this smart pointer object supports. @@ -1004,10 +1004,10 @@ Specifies an optional priority to assign to this entry for type matching. Higher priority entries within a particular file or directory are checked first. <Type> entries that do not specify a priority receive default priority of "Medium" <AlternativeType> entries which do not specify a priority will inherit the priority of the enclosing <Type> element. The priority is only used to disambiguate type matching when all other means of disambiguation are unavailable. - For example, entries with more specific template instantiations, module constraints, or view constraints will take priority regardless of any priority values specified. - Similarly, regardless of priority, natvis files that are part of a loaded project will always take precedence over files in the user natvis directory, - which will, in turn, take precedence over files in the system-wide natvis directory. - + For example, entries with more specific template instantiations, module constraints, or view constraints will take priority regardless of any priority values specified. + Similarly, regardless of priority, natvis files that are part of a loaded project will always take precedence over files in the user natvis directory, + which will, in turn, take precedence over files in the system-wide natvis directory. + If two entries have the same priority and cannot otherwise be disambiguated, it is unspecified which one will get used. diff --git a/Extension/README.md b/Extension/README.md index 1e4635573..68daffca8 100644 --- a/Extension/README.md +++ b/Extension/README.md @@ -17,7 +17,7 @@ C/C++ extension tutorials per compiler and platform * [Clang on macOS](https://code.visualstudio.com/docs/cpp/config-clang-mac) ## Quick links -* [Editing features (IntelliSense)](https://code.visualstudio.com/docs/cpp/cpp-ide) +* [Editing features (IntelliSense)](https://code.visualstudio.com/docs/cpp/cpp-ide) * [IntelliSense configuration](https://code.visualstudio.com/docs/cpp/customize-default-settings-cpp) * [Enhanced colorization](https://code.visualstudio.com/docs/cpp/colorization-cpp) * [Debugging](https://code.visualstudio.com/docs/cpp/cpp-debug) diff --git a/Extension/test/unitTests/common.test.ts b/Extension/test/unitTests/common.test.ts index 9e757af9d..7a2722265 100644 --- a/Extension/test/unitTests/common.test.ts +++ b/Extension/test/unitTests/common.test.ts @@ -235,8 +235,8 @@ suite("Common Utility validation", () => { "-DTEST6=TEST6\\ TEST6 Test6", // "-DTEST6=TEST6 TEST6 Test6" ] */ - testNormalizeArgsScenario("-DTEST1=TEST1 TEST1", "\"-DTEST1=TEST1 TEST1\""); - testNormalizeArgsScenario("-DTEST2=\"TEST2 TEST2\"", "-DTEST2=\"TEST2 TEST2\""); + testNormalizeArgsScenario("-DTEST1=TEST1 TEST1", "\"-DTEST1=TEST1 TEST1\""); + testNormalizeArgsScenario("-DTEST2=\"TEST2 TEST2\"", "-DTEST2=\"TEST2 TEST2\""); testNormalizeArgsScenario("-DTEST3=\\\"TEST3 TEST3\\\"", "\"-DTEST3=\\\"TEST3 TEST3\\\"\""); if (process.platform.includes("win")) { testNormalizeArgsScenario("-DTEST4=TEST4\\ TEST4", "\"-DTEST4=TEST4 TEST4\""); @@ -245,7 +245,7 @@ suite("Common Utility validation", () => { testNormalizeArgsScenario("-DTEST4=TEST4\\ TEST4", "-DTEST4=TEST4\\ TEST4"); testNormalizeArgsScenario("-DTEST5='TEST5 TEST5'", "-DTEST5='TEST5 TEST5'"); } - testNormalizeArgsScenario("-DTEST6=TEST6\\ TEST6 Test6", "\"-DTEST6=TEST6 TEST6 Test6\""); + testNormalizeArgsScenario("-DTEST6=TEST6\\ TEST6 Test6", "\"-DTEST6=TEST6 TEST6 Test6\""); }); interface ResolveTestFlowEnvironment { diff --git a/Extension/tools/OptionsSchema.json b/Extension/tools/OptionsSchema.json index 28db2f62a..68bf9ddfc 100644 --- a/Extension/tools/OptionsSchema.json +++ b/Extension/tools/OptionsSchema.json @@ -279,9 +279,9 @@ }, "default": [] }, - "envFile": { - "type": "string", - "description": "%c_cpp.debuggers.envFile.description%", + "envFile": { + "type": "string", + "description": "%c_cpp.debuggers.envFile.description%", "default": "${workspaceFolder}/.env" }, "additionalSOLibSearchPath": { @@ -551,9 +551,9 @@ }, "default": [] }, - "envFile": { - "type": "string", - "description": "%c_cpp.debuggers.envFile.description%", + "envFile": { + "type": "string", + "description": "%c_cpp.debuggers.envFile.description%", "default": "${workspaceFolder}/.env" }, "symbolSearchPath": { diff --git a/Extension/tools/VSSymbolSettings.json b/Extension/tools/VSSymbolSettings.json index cda444d4d..03fabc5c0 100644 --- a/Extension/tools/VSSymbolSettings.json +++ b/Extension/tools/VSSymbolSettings.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-04/schema#", - + "definitions": { "VSSymbolOptions": { "type": "object", diff --git a/Extension/translations_auto_pr.js b/Extension/translations_auto_pr.js index 54a4dbbd6..e4121a67e 100644 --- a/Extension/translations_auto_pr.js +++ b/Extension/translations_auto_pr.js @@ -64,7 +64,7 @@ function hasAnyChanges() { anyChanges = true; } }); - + return anyChanges; } diff --git a/Extension/tscCompileList.txt b/Extension/tscCompileList.txt index 0e73da3a9..612bf6f27 100644 --- a/Extension/tscCompileList.txt +++ b/Extension/tscCompileList.txt @@ -6,7 +6,7 @@ # If you do not want it to be webpacked: # 1. Please make sure it is not in the src directory # 2. Add it to the list below -# 3. If you created a new folder, please make sure it is added to the .vscodeignore +# 3. If you created a new folder, please make sure it is added to the .vscodeignore tools/GenerateOptionsSchema.ts ui/settings.ts \ No newline at end of file diff --git a/Extension/ui/settings.html b/Extension/ui/settings.html index dc3f9c4c3..0ccce51cd 100644 --- a/Extension/ui/settings.html +++ b/Extension/ui/settings.html @@ -421,7 +421,7 @@
- Switch to the c_cpp_properties.json file by clicking on the file link or using the command:
+ Switch to the c_cpp_properties.json file by clicking on the file link or using the command:
C/C++: Edit configurations (JSON)
@@ -466,7 +466,7 @@ @@ -611,7 +611,7 @@ - +
diff --git a/Extension/webpack.config.js b/Extension/webpack.config.js index c48204091..f36a72fb0 100644 --- a/Extension/webpack.config.js +++ b/Extension/webpack.config.js @@ -65,7 +65,7 @@ module.exports = (env) => { } }) } - + return config }; diff --git a/ExtensionPack/package.json b/ExtensionPack/package.json index f88d510a1..73ebc2a47 100644 --- a/ExtensionPack/package.json +++ b/ExtensionPack/package.json @@ -31,7 +31,7 @@ "codespace", "liveshare" ], - "extensionPack": [ + "extensionPack": [ "ms-vscode.cpptools", "ms-vscode.cpptools-themes", "twxs.cmake", diff --git a/README.md b/README.md index 7e14d5059..69fed55ee 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ C/C++ extension tutorials per compiler and platform * [Clang on macOS](https://code.visualstudio.com/docs/cpp/config-clang-mac) ## Quick links -* [Editing features (IntelliSense)](https://code.visualstudio.com/docs/cpp/cpp-ide) +* [Editing features (IntelliSense)](https://code.visualstudio.com/docs/cpp/cpp-ide) * [IntelliSense configuration](https://code.visualstudio.com/docs/cpp/customize-default-settings-cpp) * [Enhanced colorization](https://code.visualstudio.com/docs/cpp/colorization-cpp) * [Debugging](https://code.visualstudio.com/docs/cpp/cpp-debug)