Skip to content

Commit

Permalink
Fix IntelliSense casing. (#10730)
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-mcmanus authored Mar 22, 2023
1 parent 10125df commit e5b80da
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Extension/bin/messages/es/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2997,7 +2997,7 @@
"<error de emisión de diagnóstico>",
"Hay demasiados errores como para que el motor de IntelliSense funcione correctamente. Puede que algunos no se vean en el editor.",
"la asignación al anacronismo \"this\" no es compatible con el modo C++11",
"error desconocido. No se generó un archivo Intellisense PCH.",
"error desconocido. No se generó un archivo IntelliSense PCH.",
"No se pueden asignar una o varias rutas remotas a las rutas locales actuales. La experiencia con IntelliSense puede degradarse.",
null,
null,
Expand Down
2 changes: 1 addition & 1 deletion Extension/c_cpp_properties.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
}
},
"macFrameworkPath": {
"description": "A list of paths for the Intellisense engine to use while searching for included headers from Mac frameworks. Only supported on Mac configuration.",
"description": "A list of paths for the IntelliSense engine to use while searching for included headers from Mac frameworks. Only supported on Mac configuration.",
"type": "array",
"items": {
"type": "string"
Expand Down
2 changes: 1 addition & 1 deletion Extension/i18n/chs/c_cpp_properties.schema.json.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"c_cpp_properties.schema.json.definitions.configurations.items.properties.cppStandard": "用于 IntelliSense 的 C++ 语言标准的版本。注意: GNU 标准仅用于查询设置用来获取 GNU 定义的编译器,并且 IntelliSense 将模拟等效的 C++ 标准版本。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.compileCommands": "工作区的 `compile_commands.json` 文件的完整路径。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.includePath": "搜索包含的标头时,IntelliSense 引擎要使用的路径列表。在这些路径上进行搜索为非递归搜索。指定 `**` 以指示递归搜索。例如,`${workspaceFolder}/**` 将搜索所有子目录,而 `${workspaceFolder}` 则不会。通常,此操作不应包含系统包含项;请改为设置 `C_Cpp.default.compilerPath`。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.macFrameworkPath": "Intellisense 引擎在 Mac 框架中搜索包含的标头时要使用的路径的列表。仅在 Mac 配置中受支持。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.macFrameworkPath": "IntelliSense 引擎在 Mac 框架中搜索包含的标头时要使用的路径的列表。仅在 Mac 配置中受支持。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.windowsSdkVersion": "要在 Windows 上使用的 Windows SDK 包含路径的版本,例如 `10.0.17134.0`。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.dotConfig": "Kconfig 系统创建的 .config 文件的路径。Kconfig 系统生成包含所有定义的文件以生成项目。使用 Kconfig 系统的项目示例包括 Linux 内核和 NuttX RTOS。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.defines": "分析文件时要使用的 IntelliSense 引擎的预处理器定义列表。(可选)使用 `=` 设置值,例如 `VERSION=1`。",
Expand Down
2 changes: 1 addition & 1 deletion Extension/i18n/chs/ui/settings.html.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"windows.sdk.version": "Windows SDK 版本",
"windows.sdk.version.description": "要在 Windows 上使用的 Windows SDK 包含路径版本,例如 {0}。",
"mac.framework.path": "Mac 框架路径",
"mac.framework.path.description": "Intellisense 引擎在 Mac 框架中搜索包含的标头时要使用的路径的列表。仅在 macOS 的配置中受支持。",
"mac.framework.path.description": "IntelliSense 引擎在 Mac 框架中搜索包含的标头时要使用的路径的列表。仅在 macOS 的配置中受支持。",
"one.path.per.line": "每行一个路径。",
"forced.include": "强制包含",
"forced.include.description": "在处理源文件中的任何其他字符之前应包含的文件的列表。按列出的顺序包含文件。",
Expand Down
2 changes: 1 addition & 1 deletion Extension/i18n/cht/c_cpp_properties.schema.json.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"c_cpp_properties.schema.json.definitions.configurations.items.properties.cppStandard": "用於 IntelliSense 的 C++ 語言標準版本。注意: GNU 標準僅會用於查詢設定編譯器以取得 GNU 定義,而 IntelliSense 將會模擬相同的 C++ 標準版本。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.compileCommands": "工作區 `compile_commands.json` 檔案的完整路徑。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.includePath": "IntelliSense 引擎在搜尋包含的標頭時使用的路徑清單。在這些路徑上的搜尋不會遞迴。請指定 `**` 以表示遞迴搜尋。例如 `${workspaceFolder}/**` 會搜尋所有子目錄,而 `${workspaceFolder}` 不會。此路徑通常不應包含系統 include; 請改為設定 `C_Cpp.default.compilerPath`。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.macFrameworkPath": "Intellisense 引擎在 Mac 架構中搜尋包含的標頭時使用的路徑清單。僅支援用於 Mac 組態。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.macFrameworkPath": "IntelliSense 引擎在 Mac 架構中搜尋包含的標頭時使用的路徑清單。僅支援用於 Mac 組態。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.windowsSdkVersion": "要在 Windows 上使用的 Windows SDK 包含路徑版本,例如 `10.0.17134.0`。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.dotConfig": "Kconfig 系統所建立之 .config 檔案的路徑。Kconfig 系統會產生具有建置專案之所有定義的檔案。使用 Kconfig 系統的專案範例為 Linux 核心與 NuttX RTOS。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.defines": "剖析檔案時,IntelliSense 引擎要使用的前置處理器定義清單。您可使用 `=` 來設定值,例如 `VERSION=1`。",
Expand Down
4 changes: 2 additions & 2 deletions Extension/i18n/cht/ui/settings.html.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"intellisense.mode": "IntelliSense 模式",
"intellisense.mode.description": "要使用的 IntelliSense 模式 (對應到 MSVC、gcc 或 Clang 的平台及架構變體)。如果未設定或設為 {0},延伸模組會選擇該平台的預設。Windows 預設為 {1}、Linux 預設為 {2}、macOS 預設為 {3}。選取特定的 IntelliSense 模式可覆寫 {4} 模式。僅指定 {5} 變體 (例如 {6}) 的 IntelliSense 模式即為舊版模式,會依據主機平台自動轉換為 {7} 變體。",
"include.path": "包含路徑",
"include.path.description": "include 路徑是包含來源檔案所含之標頭檔 (例如 {0}) 的資料夾。請為 Intellisense 引擎指定搜尋所含標頭檔時所要使用的路徑清單。這些路徑不會重複搜尋。若要重複搜尋,請指定 {1}。例如 {2} 會搜尋所有子目錄,而 {3} 不會。若在安裝了 Visual Studio 的 Windows 上,或在 {4} 設定中指定了編譯器,就無須在此清單中列出系統的 include 路徑。",
"include.path.description": "include 路徑是包含來源檔案所含之標頭檔 (例如 {0}) 的資料夾。請為 IntelliSense 引擎指定搜尋所含標頭檔時所要使用的路徑清單。這些路徑不會重複搜尋。若要重複搜尋,請指定 {1}。例如 {2} 會搜尋所有子目錄,而 {3} 不會。若在安裝了 Visual Studio 的 Windows 上,或在 {4} 設定中指定了編譯器,就無須在此清單中列出系統的 include 路徑。",
"one.include.path.per.line": "每行一個包含路徑。",
"defines": "定義",
"defines.description": "剖析檔案時,IntelliSense 引擎要使用的前置處理器定義清單。可使用 {0} 來設定值,例如 {1}。",
Expand All @@ -47,7 +47,7 @@
"windows.sdk.version": "Windows SDK 版本",
"windows.sdk.version.description": "要在 Windows 上使用的 Windows SDK 包含路徑版本,例如 {0}。",
"mac.framework.path": "Mac 架構路徑",
"mac.framework.path.description": "Intellisense 引擎在 Mac 架構中搜尋包含的標頭時使用的路徑清單。僅在 macOS 的組態上支援。",
"mac.framework.path.description": "IntelliSense 引擎在 Mac 架構中搜尋包含的標頭時使用的路徑清單。僅在 macOS 的組態上支援。",
"one.path.per.line": "每行一個路徑。",
"forced.include": "強制包含",
"forced.include.description": "處理來源檔案中的任何其他字元前,應包含的檔案清單。檔案會包含在列出的清單中。",
Expand Down
2 changes: 1 addition & 1 deletion Extension/i18n/jpn/c_cpp_properties.schema.json.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"c_cpp_properties.schema.json.definitions.configurations.items.properties.cppStandard": "IntelliSense に使用する C++ 言語標準のバージョンです。注意: GNU 標準は、set コンパイラをクエリして GNU 定義を取得するためにのみ使用されるため、IntelliSense は同等の C++ 標準バージョンをエミュレートします。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.compileCommands": "ワークスペースの `compile_commands.json` ファイルへの完全なパス。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.includePath": "インクルードされたヘッダーを検索する際に IntelliSense エンジンによって使用されるパスの一覧です。これらのパスでの検索は再帰的ではありません。再帰的な検索を示すには、`**` を指定します。たとえば、`${workspaceFolder}/**` を指定するとすべてのサブディレクトリが検索されますが、`${workspaceFolder}` はそうではありません。通常、これにはシステム インクルードを含めるべきではありません。 代わりに、`C_Cpp.default.compilerPath` を設定します。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.macFrameworkPath": "Mac フレームワークからインクルードされたヘッダーを検索する際に Intellisense エンジンが使用するパスの一覧です。Mac 構成でのみサポートされます。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.macFrameworkPath": "Mac フレームワークからインクルードされたヘッダーを検索する際に IntelliSense エンジンが使用するパスの一覧です。Mac 構成でのみサポートされます。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.windowsSdkVersion": "Windows で使用する Windows SDK インクルード パスのバージョン (例: `10.0.17134.0`)。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.dotConfig": "Kconfig システムによって作成された.config ファイルへのパス。Kconfig システムは、プロジェクトをビルドするためのすべての定義を含むファイルを生成します。Kconfig システムを使用するプロジェクトの例としては、Linux Kernel と NuttX RTOS があります。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.defines": "ファイルを解析する際に IntelliSense エンジンが使用するプリプロセッサ定義の一覧です。必要に応じて、`=` を使用して値を設定します (例: `VERSION=1`)。",
Expand Down
2 changes: 1 addition & 1 deletion Extension/i18n/jpn/ui/settings.html.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"windows.sdk.version": "Windows SDK バージョン",
"windows.sdk.version.description": "Windows で使用する Windows SDK インクルード パスのバージョン。例: {0}。",
"mac.framework.path": "Mac フレームワーク パス",
"mac.framework.path.description": "Mac フレームワークからインクルードされたヘッダーを検索する際に Intellisense エンジンが使用するパスの一覧です。macOS の構成でのみサポートされます。",
"mac.framework.path.description": "Mac フレームワークからインクルードされたヘッダーを検索する際に IntelliSense エンジンが使用するパスの一覧です。macOS の構成でのみサポートされます。",
"one.path.per.line": "1 行につき 1 つのパスです。",
"forced.include": "強制インクルード",
"forced.include.description": "ソース ファイルの他の文字が処理される前に含める必要があるファイルの一覧です。ファイルは、リストされている順序で含められます。",
Expand Down
2 changes: 1 addition & 1 deletion Extension/i18n/kor/ui/settings.html.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"windows.sdk.version": "Windows SDK 버전",
"windows.sdk.version.description": "Windows에서 사용할 Windows SDK 포함 경로의 버전입니다(예: {0}).",
"mac.framework.path": "Mac 프레임워크 경로",
"mac.framework.path.description": "Mac 프레임워크에서 포함된 헤더를 검색하는 동안 사용할 Intellisense 엔진의 경로 목록입니다. macOS 구성에서만 지원됩니다.",
"mac.framework.path.description": "Mac 프레임워크에서 포함된 헤더를 검색하는 동안 사용할 IntelliSense 엔진의 경로 목록입니다. macOS 구성에서만 지원됩니다.",
"one.path.per.line": "줄당 하나의 경로입니다.",
"forced.include": "강제 포함",
"forced.include.description": "소스 파일의 다른 문자를 처리하기 전에 포함해야 하는 파일의 목록입니다. 파일은 나열된 순서대로 포함됩니다.",
Expand Down
4 changes: 2 additions & 2 deletions Extension/src/LanguageServer/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2133,7 +2133,7 @@ export class DefaultClient implements Client {
this.languageClient.onNotification(ReportTextDocumentLanguage, (e) => this.setTextDocumentLanguage(e));
this.languageClient.onNotification(SemanticTokensChanged, (e) => this.semanticTokensProvider?.invalidateFile(e));
this.languageClient.onNotification(InlayHintsChanged, (e) => this.inlayHintsProvider?.invalidateFile(e));
this.languageClient.onNotification(IntelliSenseSetupNotification, (e) => this.logIntellisenseSetupTime(e));
this.languageClient.onNotification(IntelliSenseSetupNotification, (e) => this.logIntelliSenseSetupTime(e));
this.languageClient.onNotification(SetTemporaryTextDocumentLanguageNotification, (e) => this.setTemporaryTextDocumentLanguage(e));
this.languageClient.onNotification(ReportCodeAnalysisProcessedNotification, (e) => this.updateCodeAnalysisProcessed(e));
this.languageClient.onNotification(ReportCodeAnalysisTotalNotification, (e) => this.updateCodeAnalysisTotal(e));
Expand Down Expand Up @@ -2461,7 +2461,7 @@ export class DefaultClient implements Client {
}
}

public logIntellisenseSetupTime(notification: IntelliSenseSetup): void {
public logIntelliSenseSetupTime(notification: IntelliSenseSetup): void {
clients.timeTelemetryCollector.setSetupTime(vscode.Uri.parse(notification.uri));
}

Expand Down
2 changes: 1 addition & 1 deletion Extension/src/LanguageServer/ui_new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export class NewUI implements UI {
private setIsUpdatingIntelliSense(val: boolean): void {
const settings: CppSettings = new CppSettings((vscode.workspace.workspaceFolders && vscode.workspace.workspaceFolders.length > 0) ? vscode.workspace.workspaceFolders[0]?.uri : undefined);

// TODO: Integrate with Tarik's feature to determine if compiler/bare-intellisense is configured
// TODO: Integrate with Tarik's feature to determine if compiler/bare-IntelliSense is configured
if (settings.intelliSenseEngine === "disabled") {
this.intelliSenseStatusItem.text = this.missingIntelliSenseText;
this.intelliSenseStatusItem.command = {
Expand Down
2 changes: 1 addition & 1 deletion Extension/ui/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@

<div class="section">
<div class="section-title" data-loc-id="mac.framework.path">Mac framework path</div>
<div class="section-text" data-loc-id="mac.framework.path.description">A list of paths for the Intellisense engine to use while searching for included headers from Mac frameworks. Only supported on configurations for macOS.</div>
<div class="section-text" data-loc-id="mac.framework.path.description">A list of paths for the IntelliSense engine to use while searching for included headers from Mac frameworks. Only supported on configurations for macOS.</div>
<div>
<div class="section-note" data-loc-id="one.path.per.line">One path per line.</div>
<textarea name="inputValue" id="macFrameworkPath" rows="4" cols="93" style="width: 800px"></textarea>
Expand Down

0 comments on commit e5b80da

Please sign in to comment.