question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ExpandSuggestionDocs Settings conflict with the command panel

See original GitHub issue

In the past, I made the details expand by default in this way, but in the current version this configuration makes the command panel unusable

this.editor = window.monaco.editor.create(this.$el, this.editorOptions, {
        storageService: {
          get() {},
          remove() {},
          getBoolean(key) {
            if (window.activeLanguage && window.activeLanguage == 'java' && key === 'expandSuggestionDocs') {
              return true;
            }
            return false;
          },
          store() {},
          onWillSaveState() {},
          onDidChangeStorage() {}
        }
      }
);

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
anvakacommented, Dec 19, 2021

This is a hack, don’t use it for production, but you can get this to work in 0.31.1 this way:

  let editor = monaco.editor.create(container, {value: your_code});
  let {widget} = editor.getContribution('editor.contrib.suggestController');
  if (widget) {
    const suggestWidget = widget.value;
    if (suggestWidget && suggestWidget._setDetailsVisible) {
      // This will default to visible details. But when user switches it off
      // they will remain switched off:
      suggestWidget._setDetailsVisible(true);
    }
    // I also wanted my widget to be shorter by default:
    if (suggestWidget && suggestWidget._persistedSize) {
      suggestWidget._persistedSize.store({width: 200, height: 256});
    }
  }
1reaction
alexdimacommented, Jan 25, 2021

@martonlanga Sorry, I cannot answer that because I don’t know. You can try searching for IStorageService in the src/vs/editor folder in the vscode repo and see which features use that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Suggest edits in Google Docs - Computer
Suggest changes to a file. On your computer, open a document at docs.google.com. Select the text you want to change. A button appears...
Read more >
User and Workspace Settings - Visual Studio Code
To open the Settings editor, use the following VS Code menu command: ... matchingDocuments: Suggest words from all open documents of the same...
Read more >
Word Options (Advanced) - Microsoft Support
Use advanced Word options to customize editing tasks, document display, ... and select the number of documents shown in the Recent Documents list....
Read more >
Git command reference | Looker - Google Cloud
Git Actions panel. Commit Changes & Push, Button. Commit & Resolve Conflict, The Commit & Resolve Conflict button is displayed when you make ......
Read more >
Review UI Overview
The change can't be merged into the destination branch due to conflicts. ... The Download drop-down panel in the change header offers commands...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found