mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 10:19:02 +00:00
import all from contribution file
This commit is contained in:
@@ -18,8 +18,7 @@ import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
|
|||||||
import { Disposable } from 'vs/base/common/lifecycle';
|
import { Disposable } from 'vs/base/common/lifecycle';
|
||||||
import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey';
|
import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey';
|
||||||
import { CommentContextKeys } from 'vs/workbench/contrib/comments/common/commentContextKeys';
|
import { CommentContextKeys } from 'vs/workbench/contrib/comments/common/commentContextKeys';
|
||||||
import { CommentCommandId } from 'vs/workbench/contrib/comments/browser/commentsEditorContribution';
|
import * as commentsEditorContribution from 'vs/workbench/contrib/comments/browser/commentsEditorContribution';
|
||||||
|
|
||||||
|
|
||||||
Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration).registerConfiguration({
|
Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration).registerConfiguration({
|
||||||
id: 'comments',
|
id: 'comments',
|
||||||
@@ -115,10 +114,10 @@ export class CommentsAccessibilityHelpProvider implements IAccessibleContentProv
|
|||||||
this._element = document.activeElement as HTMLElement;
|
this._element = document.activeElement as HTMLElement;
|
||||||
const content: string[] = [];
|
const content: string[] = [];
|
||||||
content.push(CommentAccessibilityHelpNLS.escape);
|
content.push(CommentAccessibilityHelpNLS.escape);
|
||||||
content.push(this._descriptionForCommand(CommentCommandId.Add, CommentAccessibilityHelpNLS.addComment, CommentAccessibilityHelpNLS.addCommentNoKb));
|
content.push(this._descriptionForCommand(commentsEditorContribution.CommentCommandId.Add, CommentAccessibilityHelpNLS.addComment, CommentAccessibilityHelpNLS.addCommentNoKb));
|
||||||
content.push(this._descriptionForCommand(CommentCommandId.NextRange, CommentAccessibilityHelpNLS.nextRange, CommentAccessibilityHelpNLS.nextRangeNoKb));
|
content.push(this._descriptionForCommand(commentsEditorContribution.CommentCommandId.NextRange, CommentAccessibilityHelpNLS.nextRange, CommentAccessibilityHelpNLS.nextRangeNoKb));
|
||||||
content.push(this._descriptionForCommand(CommentCommandId.PreviousRange, CommentAccessibilityHelpNLS.previousRange, CommentAccessibilityHelpNLS.previousRangeNoKb));
|
content.push(this._descriptionForCommand(commentsEditorContribution.CommentCommandId.PreviousRange, CommentAccessibilityHelpNLS.previousRange, CommentAccessibilityHelpNLS.previousRangeNoKb));
|
||||||
content.push(this._descriptionForCommand(CommentCommandId.Submit, CommentAccessibilityHelpNLS.submitComment, CommentAccessibilityHelpNLS.submitCommentNoKb));
|
content.push(this._descriptionForCommand(commentsEditorContribution.CommentCommandId.Submit, CommentAccessibilityHelpNLS.submitComment, CommentAccessibilityHelpNLS.submitCommentNoKb));
|
||||||
return content.join('\n\n');
|
return content.join('\n\n');
|
||||||
}
|
}
|
||||||
onClose(): void {
|
onClose(): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user