Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions localization/l10n/bundle.l10n.json
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,8 @@
"SQL Plan Files": "SQL Plan Files",
"Script copied to clipboard": "Script copied to clipboard",
"Copied": "Copied",
"Copying results...": "Copying results...",
"Results copied to clipboard": "Results copied to clipboard",
"Do you want to always display query results in a new tab instead of the query pane?": "Do you want to always display query results in a new tab instead of the query pane?",
"Always show in new tab": "Always show in new tab",
"Keep in query pane": "Keep in query pane",
Expand Down Expand Up @@ -1280,18 +1282,18 @@
"message": "Sum: {0}",
"comment": ["{0} is the sum"]
},
"An error occurred while copying results: {0}/{0} is the error message": {
"message": "An error occurred while copying results: {0}",
"comment": ["{0} is the error message"]
},
"{0} rows selected, click to load summary/{0} is the number of rows to fetch summary statistics for": {
"message": "{0} rows selected, click to load summary",
"comment": ["{0} is the number of rows to fetch summary statistics for"]
},
"Click to load summary": "Click to load summary",
"Loading summary {0}/{1} ({2}%) (Click to cancel)/{0} is the current row{1} is the total number of rows{2} is the percentage of rows loaded": {
"message": "Loading summary {0}/{1} ({2}%) (Click to cancel)",
"comment": [
"{0} is the current row",
"{1} is the total number of rows",
"{2} is the percentage of rows loaded"
]
"Loading summary for {0} rows (Click to cancel)/{0} is the total number of rows": {
"message": "Loading summary for {0} rows (Click to cancel)",
"comment": ["{0} is the total number of rows"]
},
"Click to cancel loading summary": "Click to cancel loading summary",
"Summary loading canceled": "Summary loading canceled",
Expand Down
18 changes: 13 additions & 5 deletions localization/xliff/vscode-mssql.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@
<trans-unit id="++CODE++d4fd4b3da177dfc06dbcde0a7f62d637dbf3d90298fdc9b6aeba4f9230441e1f">
<source xml:lang="en">An error occurred refreshing nodes. See the MSSQL output channel for more details.</source>
</trans-unit>
<trans-unit id="++CODE++0e0aa36ee32c59d59231919e47412a12d29c1f3459800637634bb73fb949f541">
<source xml:lang="en">An error occurred while copying results: {0}</source>
<note>{0} is the error message</note>
</trans-unit>
<trans-unit id="++CODE++b80f19578e3d6cc4f8693e307caf7f4fc739be0f2eb550a9f78a0874ae0205e5">
<source xml:lang="en">An error occurred while processing your request.</source>
</trans-unit>
Expand Down Expand Up @@ -842,6 +846,9 @@
<trans-unit id="++CODE++3ae569f53ee1e765e3551a7f7881999f868289afbf0b1c6077d906c68cd10525">
<source xml:lang="en">Copy with Headers</source>
</trans-unit>
<trans-unit id="++CODE++35c380196401c05c48fe5f5fffd349ba06d9988118b87a1c12e1164a28175997">
<source xml:lang="en">Copying results...</source>
</trans-unit>
<trans-unit id="++CODE++204a5eb2cd28bcfdf3be9f8c765948e9e831609e3c57048cdbd6b8a94cf49126">
<source xml:lang="en">Cost</source>
</trans-unit>
Expand Down Expand Up @@ -1921,11 +1928,9 @@
<trans-unit id="++CODE++b00da16333ce9b6f0088556c62cd8766f0a1f02a823e3dca0cd8fd040136e297">
<source xml:lang="en">Loading results...</source>
</trans-unit>
<trans-unit id="++CODE++ba622a4c63bd7d102bdc3057b04b4cfd8d2af5b2adb230bebc98414fc46afae0">
<source xml:lang="en">Loading summary {0}/{1} ({2}%) (Click to cancel)</source>
<note>{0} is the current row
{1} is the total number of rows
{2} is the percentage of rows loaded</note>
<trans-unit id="++CODE++71499b4de6ef3b8d0c19b76e76295f5dd9f5690a180de07ed861fdce757182aa">
<source xml:lang="en">Loading summary for {0} rows (Click to cancel)</source>
<note>{0} is the total number of rows</note>
</trans-unit>
<trans-unit id="++CODE++6fdb41249bacbb3684e7217e3b3d938e36b39e8d0f4300681cba1968b3301495">
<source xml:lang="en">Loading tenants...</source>
Expand Down Expand Up @@ -2572,6 +2577,9 @@
<source xml:lang="en">Results ({0})</source>
<note>{0} is the number of results</note>
</trans-unit>
<trans-unit id="++CODE++a71f9e2908cf7df2e5ce9dafa67f3f4949fc4c74f525b9f4a6229ff6a7f93c86">
<source xml:lang="en">Results copied to clipboard</source>
</trans-unit>
<trans-unit id="++CODE++942087cc2d41e01304b7195558d093d10c72af8e838c7556d6a02d471ee71852">
<source xml:lang="en">Retry</source>
</trans-unit>
Expand Down
2 changes: 1 addition & 1 deletion src/configurations/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const config = {
service: {
downloadUrl:
"https://github.com/Microsoft/sqltoolsservice/releases/download/{#version#}/microsoft.sqltools.servicelayer-{#fileName#}",
version: "5.0.20250910.2",
version: "5.0.20251009.1",
downloadFileNames: {
Windows_86: "win-x86-net8.0.zip",
Windows_64: "win-x64-net8.0.zip",
Expand Down
2 changes: 1 addition & 1 deletion src/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export const copilotShowSchemaToolName = "mssql_show_schema";
export const copilotGetConnectionDetailsToolName = "mssql_get_connection_details";

// Configuration Constants
export const copyIncludeHeaders = "copyIncludeHeaders";
export const copyIncludeHeaders = "mssql.copyIncludeHeaders";
export const configLogDebugInfo = "logDebugInfo";
export const configMyConnections = "connections";
export const configSaveAsCsv = "saveAsCsv";
Expand Down
45 changes: 35 additions & 10 deletions src/constants/locConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,8 @@ export let executionPlan = l10n.t("Execution Plan");
export let executionPlanFileFilter = l10n.t("SQL Plan Files");
export let scriptCopiedToClipboard = l10n.t("Script copied to clipboard");
export let copied = l10n.t("Copied");
export let copyingResults = l10n.t("Copying results...");
export let resultsCopiedToClipboard = l10n.t("Results copied to clipboard");

export let openQueryResultsInTabByDefaultPrompt = l10n.t(
"Do you want to always display query results in a new tab instead of the query pane?",
Expand Down Expand Up @@ -1016,23 +1018,47 @@ export class QueryResult {
}),
].join(os.EOL);
};
public static nonNumericSelectionSummaryTooltip = (
count: number,
distinctCount: number,
nullCount: number,
) => {
return [
l10n.t({
message: "Count: {0}",
args: [count],
comment: ["{0} is the count"],
}),
l10n.t({
message: "Distinct Count: {0}",
args: [distinctCount],
comment: ["{0} is the distinct count"],
}),
l10n.t({
message: "Null Count: {0}",
args: [nullCount],
comment: ["{0} is the null count"],
}),
].join(os.EOL);
};
public static copyError = (error: string) =>
l10n.t({
message: "An error occurred while copying results: {0}",
args: [error],
comment: ["{0} is the error message"],
});
public static summaryFetchConfirmation = (numRows: number) =>
l10n.t({
message: "{0} rows selected, click to load summary",
args: [numRows],
comment: ["{0} is the number of rows to fetch summary statistics for"],
});
public static clickToFetchSummary = l10n.t("Click to load summary");
public static summaryLoadingProgress = (currentRow: number, totalRows: number) => {
const percentage = Math.floor((currentRow / totalRows) * 100);
public static summaryLoadingProgress = (totalRows: number) => {
return l10n.t({
message: `Loading summary {0}/{1} ({2}%) (Click to cancel)`,
args: [currentRow, totalRows, percentage],
comment: [
"{0} is the current row",
"{1} is the total number of rows",
"{2} is the percentage of rows loaded",
],
message: `Loading summary for {0} rows (Click to cancel)`,
args: [totalRows],
comment: ["{0} is the total number of rows"],
});
};
public static clickToCancelLoadingSummary = l10n.t("Click to cancel loading summary");
Expand All @@ -1051,7 +1077,6 @@ export class QueryResult {
args: [error],
comment: ["{0} is the error message"],
});
public static;
}

export class LocalContainers {
Expand Down
Loading