Skip to content

Commit

Permalink
updating untitled text again
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatten committed Apr 26, 2022
1 parent a900709 commit ab86e02
Showing 1 changed file with 21 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,6 @@ class UntitledTextEditorHintContentWidget implements IContentWidget {
this.domNode = $('.untitled-hint');
this.domNode.style.width = 'max-content';

const editorType = $('a.editor-type');
editorType.style.cursor = 'pointer';
editorType.innerText = localize('notLookingForTextEditor', "Not looking for a text editor?");
const selectEditorTypeKeyBinding = this.keybindingService.lookupKeybinding('welcome.showNewFileEntries');
const selectEditorTypeKeybindingLabel = selectEditorTypeKeyBinding?.getLabel();
if (selectEditorTypeKeybindingLabel) {
editorType.title = localize('keyboardBindingTooltip', "{0}", selectEditorTypeKeybindingLabel);
}
this.domNode.appendChild(editorType);

this.domNode.appendChild($('br'));
this.domNode.appendChild($('br'));

const language = $('a.language-mode');
language.style.cursor = 'pointer';
language.innerText = localize('selectAlanguage2', "Select a language");
Expand All @@ -130,10 +117,30 @@ class UntitledTextEditorHintContentWidget implements IContentWidget {
}
this.domNode.appendChild(language);

const or = $('span');
or.innerText = localize('or', " or ",);
this.domNode.appendChild(or);

const editorType = $('a.editor-type');
editorType.style.cursor = 'pointer';
editorType.innerText = localize('openADifferentEditor', "open a different editor");
const selectEditorTypeKeyBinding = this.keybindingService.lookupKeybinding('welcome.showNewFileEntries');
const selectEditorTypeKeybindingLabel = selectEditorTypeKeyBinding?.getLabel();
if (selectEditorTypeKeybindingLabel) {
editorType.title = localize('keyboardBindingTooltip', "{0}", selectEditorTypeKeybindingLabel);
}
this.domNode.appendChild(editorType);

const toGetStarted = $('span');
toGetStarted.innerText = localize('toGetStarted', " to get started. Start typing to dismiss, or ",);
toGetStarted.innerText = localize('toGetStarted', " to get started.");
this.domNode.appendChild(toGetStarted);

this.domNode.appendChild($('br'));

const startTyping = $('span');
startTyping.innerText = localize('startTyping', "Start typing to dismiss or ");
this.domNode.appendChild(startTyping);

const dontShow = $('a');
dontShow.style.cursor = 'pointer';
dontShow.innerText = localize('dontshow', "don't show");
Expand Down

0 comments on commit ab86e02

Please sign in to comment.