Skip to content

Commit 317df57

Browse files
authored
Merge pull request #12658 from microsoft/main
Merge for 1.22.2
2 parents f63c365 + 86b698b commit 317df57

File tree

6 files changed

+8
-37
lines changed

6 files changed

+8
-37
lines changed

Extension/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# C/C++ for Visual Studio Code Changelog
22

3+
## Version 1.22.2: August 29, 2024
4+
### Enhancement
5+
* Remove the `C_Cpp.intelliSenseEngineFallback` setting. [#12596](https://github.com/microsoft/vscode-cpptools/issues/12596)
6+
7+
### Bug Fix
8+
* Fix a deadlock when doing "Find All References" and a file is deleted. [#12656](https://github.com/microsoft/vscode-cpptools/issues/12656)
9+
310
## Version 1.22.1: August 29, 2024
411
### Enhancement
512
* Add "Additional Tracked Settings" to `C/C++: Log Diagnostics` output. [PR #12635](https://github.com/microsoft/vscode-cpptools/pull/12635)

Extension/package.json

+1-20
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "cpptools",
33
"displayName": "C/C++",
44
"description": "C/C++ IntelliSense, debugging, and code browsing.",
5-
"version": "1.22.1-main",
5+
"version": "1.22.2-main",
66
"publisher": "ms-vscode",
77
"icon": "LanguageCCPP_color_128x.png",
88
"readme": "README.md",
@@ -915,16 +915,6 @@
915915
],
916916
"scope": "resource"
917917
},
918-
"C_Cpp.intelliSenseEngineFallback": {
919-
"type": "string",
920-
"enum": [
921-
"enabled",
922-
"disabled"
923-
],
924-
"default": "disabled",
925-
"markdownDescription": "%c_cpp.configuration.intelliSenseEngineFallback.markdownDescription%",
926-
"scope": "resource"
927-
},
928918
"C_Cpp.exclusionPolicy": {
929919
"type": "string",
930920
"enum": [
@@ -3342,11 +3332,6 @@
33423332
"title": "%c_cpp.command.disableErrorSquiggles.title%",
33433333
"category": "C/C++"
33443334
},
3345-
{
3346-
"command": "C_Cpp.ToggleIncludeFallback",
3347-
"title": "%c_cpp.command.toggleIncludeFallback.title%",
3348-
"category": "C/C++"
3349-
},
33503335
{
33513336
"command": "C_Cpp.ToggleDimInactiveRegions",
33523337
"title": "%c_cpp.command.toggleDimInactiveRegions.title%",
@@ -5864,10 +5849,6 @@
58645849
"command": "C_Cpp.DisableErrorSquiggles",
58655850
"when": "config.C_Cpp.intelliSenseEngine =~ /^[dD]efault$/"
58665851
},
5867-
{
5868-
"command": "C_Cpp.ToggleIncludeFallback",
5869-
"when": "config.C_Cpp.intelliSenseEngine =~ /^[dD]efault$/"
5870-
},
58715852
{
58725853
"command": "C_Cpp.ToggleDimInactiveRegions",
58735854
"when": "config.C_Cpp.intelliSenseEngine =~ /^[dD]efault$/"

Extension/package.nls.json

-7
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"c_cpp.command.switchHeaderSource.title": "Switch Header/Source",
1818
"c_cpp.command.enableErrorSquiggles.title": "Enable Error Squiggles",
1919
"c_cpp.command.disableErrorSquiggles.title": "Disable Error Squiggles",
20-
"c_cpp.command.toggleIncludeFallback.title": "Toggle IntelliSense Engine Fallback on Include Errors",
2120
"c_cpp.command.toggleDimInactiveRegions.title": "Toggle Inactive Region Colorization",
2221
"c_cpp.command.resetDatabase.title": "Reset IntelliSense Database",
2322
"c_cpp.command.takeSurvey.title": "Take Survey",
@@ -469,12 +468,6 @@
469468
"c_cpp.configuration.intelliSenseEngine.default.description": "Provides context-aware results via a separate IntelliSense process.",
470469
"c_cpp.configuration.intelliSenseEngine.tagParser.description": "Provides \"fuzzy\" results that are not context-aware.",
471470
"c_cpp.configuration.intelliSenseEngine.disabled.description": "Turns off C/C++ language service features.",
472-
"c_cpp.configuration.intelliSenseEngineFallback.markdownDescription": {
473-
"message": "Controls whether the IntelliSense engine will automatically switch to the Tag Parser for translation units containing `#include` errors.",
474-
"comment": [
475-
"Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered."
476-
]
477-
},
478471
"c_cpp.configuration.autocomplete.markdownDescription": {
479472
"message": "Controls the auto-completion provider. If `disabled` and you want word-based completion, you will also need to set `\"[cpp]\": {\"editor.wordBasedSuggestions\": <value>}` (and similarly for `c` and `cuda-cpp` languages).",
480473
"comment": [

Extension/src/LanguageServer/client.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,6 @@ export class DefaultClient implements Client {
13261326
const result: WorkspaceFolderSettingsParams = {
13271327
uri: workspaceFolderUri?.toString(),
13281328
intelliSenseEngine: settings.intelliSenseEngine,
1329-
intelliSenseEngineFallback: settings.intelliSenseEngineFallback,
13301329
autocomplete: settings.autocomplete,
13311330
autocompleteAddParentheses: settings.autocompleteAddParentheses,
13321331
errorSquiggles: settings.errorSquiggles,

Extension/src/LanguageServer/extension.ts

-7
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@ export function registerCommands(enabled: boolean): void {
359359
commandDisposables.push(vscode.commands.registerCommand('C_Cpp.AddToIncludePath', enabled ? onAddToIncludePath : onDisabledCommand));
360360
commandDisposables.push(vscode.commands.registerCommand('C_Cpp.EnableErrorSquiggles', enabled ? onEnableSquiggles : onDisabledCommand));
361361
commandDisposables.push(vscode.commands.registerCommand('C_Cpp.DisableErrorSquiggles', enabled ? onDisableSquiggles : onDisabledCommand));
362-
commandDisposables.push(vscode.commands.registerCommand('C_Cpp.ToggleIncludeFallback', enabled ? onToggleIncludeFallback : onDisabledCommand));
363362
commandDisposables.push(vscode.commands.registerCommand('C_Cpp.ToggleDimInactiveRegions', enabled ? onToggleDimInactiveRegions : onDisabledCommand));
364363
commandDisposables.push(vscode.commands.registerCommand('C_Cpp.PauseParsing', enabled ? onPauseParsing : onDisabledCommand));
365364
commandDisposables.push(vscode.commands.registerCommand('C_Cpp.ResumeParsing', enabled ? onResumeParsing : onDisabledCommand));
@@ -754,12 +753,6 @@ function onDisableSquiggles(): void {
754753
settings.update<string>("errorSquiggles", "disabled");
755754
}
756755

757-
function onToggleIncludeFallback(): void {
758-
// This only applies to the active client.
759-
const settings: CppSettings = new CppSettings(clients.ActiveClient.RootUri);
760-
settings.toggleSetting("intelliSenseEngineFallback", "enabled", "disabled");
761-
}
762-
763756
function onToggleDimInactiveRegions(): void {
764757
// This only applies to the active client.
765758
const settings: CppSettings = new CppSettings(clients.ActiveClient.RootUri);

Extension/src/LanguageServer/settings.ts

-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export interface Associations {
3737
export interface WorkspaceFolderSettingsParams {
3838
uri: string | undefined;
3939
intelliSenseEngine: string;
40-
intelliSenseEngineFallback: boolean;
4140
autocomplete: string;
4241
autocompleteAddParentheses: boolean;
4342
errorSquiggles: string;
@@ -367,7 +366,6 @@ export class CppSettings extends Settings {
367366
public get experimentalFeatures(): boolean { return this.getAsString("experimentalFeatures").toLowerCase() === "enabled"; }
368367
public get suggestSnippets(): boolean { return this.getAsBoolean("suggestSnippets"); }
369368
public get intelliSenseEngine(): string { return this.getAsString("intelliSenseEngine"); }
370-
public get intelliSenseEngineFallback(): boolean { return this.getAsString("intelliSenseEngineFallback").toLowerCase() === "enabled"; }
371369
public get intelliSenseCachePath(): string | undefined { return changeBlankStringToUndefined(this.getAsStringOrUndefined("intelliSenseCachePath")); }
372370
public get intelliSenseCacheSize(): number { return this.getAsNumber("intelliSenseCacheSize"); }
373371
public get intelliSenseMemoryLimit(): number { return this.getAsNumber("intelliSenseMemoryLimit"); }

0 commit comments

Comments
 (0)