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
54 changes: 54 additions & 0 deletions patches/common/remove-ask-vscode.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
Index: third-party-src/src/vs/workbench/browser/actions/helpActions.ts
===================================================================
--- third-party-src.orig/src/vs/workbench/browser/actions/helpActions.ts
+++ third-party-src/src/vs/workbench/browser/actions/helpActions.ts
@@ -16,7 +16,6 @@ import { ServicesAccessor } from '../../../platform/instantiation/common/instant
import { KeybindingWeight } from '../../../platform/keybinding/common/keybindingsRegistry.js';
import { Categories } from '../../../platform/action/common/actionCommonCategories.js';
import { ICommandService } from '../../../platform/commands/common/commands.js';
-import { ContextKeyExpr } from '../../../platform/contextkey/common/contextkey.js';

class KeybindingsReferenceAction extends Action2 {

@@ -332,35 +331,6 @@ class GetStartedWithAccessibilityFeatures extends Action2 {
}
}

-class AskVSCodeCopilot extends Action2 {
- static readonly ID = 'workbench.action.askVScode';
-
- constructor() {
- super({
- id: AskVSCodeCopilot.ID,
- title: localize2('askVScode', 'Ask @vscode'),
- category: Categories.Help,
- f1: true,
- precondition: ContextKeyExpr.equals('chatSetupHidden', false)
- });
- }
-
- async run(accessor: ServicesAccessor): Promise<void> {
- const commandService = accessor.get(ICommandService);
- commandService.executeCommand('workbench.action.chat.open', { mode: 'ask', query: '@vscode ', isPartialQuery: true });
- }
-}
-
-MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
- command: {
- id: AskVSCodeCopilot.ID,
- title: localize2('askVScode', 'Ask @vscode'),
- },
- order: 7,
- group: '1_welcome',
- when: ContextKeyExpr.equals('chatSetupHidden', false)
-});
-
// --- Actions Registration

if (KeybindingsReferenceAction.AVAILABLE) {
@@ -400,5 +370,3 @@ if (OpenPrivacyStatementUrlAction.AVAILABLE) {
}

registerAction2(GetStartedWithAccessibilityFeatures);
-
-registerAction2(AskVSCodeCopilot);
1 change: 1 addition & 0 deletions patches/sagemaker.series
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ common/build.diff
common/integration.diff
common/replace-gulp-untar.diff
common/fix-ts-rootdir-webpack.diff
common/remove-ask-vscode.diff
web-server/suppress-known-errors-build-integration.diff
web-server/local-storage.diff
web-server/base-path.diff
Expand Down
1 change: 1 addition & 0 deletions patches/web-embedded-with-terminal.series
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ common/build.diff
common/integration.diff
common/replace-gulp-untar.diff
common/fix-ts-rootdir-webpack.diff
common/remove-ask-vscode.diff
web-embedded/readd-workbench.diff
web-embedded/suppress-known-errors-build-integration.diff
web-embedded/disable-built-in-walkthroughs-from-c.diff
Expand Down
1 change: 1 addition & 0 deletions patches/web-embedded.series
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ common/build.diff
common/integration.diff
common/replace-gulp-untar.diff
common/fix-ts-rootdir-webpack.diff
common/remove-ask-vscode.diff
web-embedded/readd-workbench.diff
web-embedded/suppress-known-errors-build-integration.diff
web-embedded/disable-built-in-walkthroughs-from-c.diff
Expand Down
1 change: 1 addition & 0 deletions patches/web-server.series
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ common/build.diff
common/integration.diff
common/replace-gulp-untar.diff
common/fix-ts-rootdir-webpack.diff
common/remove-ask-vscode.diff
web-server/suppress-known-errors-build-integration.diff
web-server/local-storage.diff
web-server/base-path.diff
Expand Down
Loading