Skip to content

Commit

Permalink
Merge branch 'main' into fix-238886
Browse files Browse the repository at this point in the history
  • Loading branch information
rrmistry authored Jan 27, 2025
2 parents d09ab61 + 0a964fb commit 232163a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 55 deletions.
2 changes: 0 additions & 2 deletions extensions/terminal-suggest/.vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ src/**
out/**
tsconfig.json
.vscode/**
extension.webpack.config.js
extension-browser.webpack.config.js
package-lock.json
25 changes: 0 additions & 25 deletions extensions/terminal-suggest/extension-browser.webpack.config.js

This file was deleted.

23 changes: 0 additions & 23 deletions extensions/terminal-suggest/extension.webpack.config.js

This file was deleted.

6 changes: 4 additions & 2 deletions extensions/terminal-suggest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@
"compile": "npx gulp compile-extension:terminal-suggest",
"watch": "npx gulp watch-extension:terminal-suggest"
},

"main": "./out/terminalSuggestMain",
"activationEvents": [
"onTerminalCompletionsRequested"
],
"repository": {
"type": "git",
"url": "https://github.com/microsoft/vscode.git"
}
},
"extensionKind": [
"workspace"
]
}
4 changes: 2 additions & 2 deletions src/vs/workbench/contrib/preferences/common/preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,5 +176,5 @@ export function compareTwoNullableNumbers(a: number | undefined, b: number | und
}
}

export const PREVIEW_INDICATOR_DESCRIPTION = localize('previewIndicatorDescription', "This setting controls a new feature that is still under refinement yet ready to use. Feedback is welcome.");
export const EXPERIMENTAL_INDICATOR_DESCRIPTION = localize('experimentalIndicatorDescription', "This setting controls a new feature that is actively being developed and may be unstable. It is subject to change or removal.");
export const PREVIEW_INDICATOR_DESCRIPTION = localize('previewIndicatorDescription', "Preview setting: this setting controls a new feature that is still under refinement yet ready to use. Feedback is welcome.");
export const EXPERIMENTAL_INDICATOR_DESCRIPTION = localize('experimentalIndicatorDescription', "Experimental setting: this setting controls a new feature that is actively being developed and may be unstable. It is subject to change or removal.");
Original file line number Diff line number Diff line change
Expand Up @@ -709,10 +709,16 @@ class TestResultsPeek extends PeekViewWidget {
return defaultMaxHeight;
}

if (this.testingPeek.historyVisible.value) { // don't cap height with the history split
return defaultMaxHeight;
}

const lineHeight = this.editor.getOption(EditorOption.lineHeight);
// 41 is experimentally determined to be the overhead of the peek view itself
// to avoid showing scrollbars by default in its content.
return Math.min(defaultMaxHeight || Infinity, (contentHeight + 41) / lineHeight);
const basePeekOverhead = 41;

return Math.min(defaultMaxHeight || Infinity, (contentHeight + basePeekOverhead) / lineHeight + 1);
}

private applyTheme() {
Expand Down

0 comments on commit 232163a

Please sign in to comment.