дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-27 13:06:07 +02:00
Settings › Languages & Frameworks › SQL Resolution Scopes maps project folders and files to a data source and schema (project settings, database.resolutionScopes). SQL files in a mapped folder resolve against its data source for completion, inspections, navigation and the console toolbar, unless another data source is picked in the toolbar; the deepest row wins and the Project row applies elsewhere. Contributed settings pages can start on the project scope (defaultScope). Part of #2457
17 рядки
684 B
TypeScript
17 рядки
684 B
TypeScript
import { lazyComponent } from "@/ui";
|
||
import { registerSettingsPage } from "@/workbench/contributions";
|
||
|
||
/** Settings › Languages & Frameworks › SQL Resolution Scopes (also used by the Settings window). */
|
||
export function activateSettingsPages(): () => void {
|
||
return registerSettingsPage({
|
||
id: "languages.sqlResolutionScopes",
|
||
title: "SQL Resolution Scopes",
|
||
group: "Languages & Frameworks",
|
||
order: 404.5,
|
||
projectScope: true,
|
||
defaultScope: "project",
|
||
keywords: ["sql", "data source", "database", "schema", "mybatis", "mapper", "resolve", "dialect"],
|
||
component: lazyComponent(() => import("./SqlScopesPage").then((m) => m.SqlScopesPage)),
|
||
});
|
||
}
|