You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constcontainer1=document.createElement('div');constcontainer2=document.createElement('div');conststyle='height: 200px; border: 1px solid #000; margin: 10px;';container1.setAttribute('style',style);container2.setAttribute('style',style);document.body.appendChild(container1);document.body.appendChild(container2);// basic editor #1monaco.editor.create(container1,{value: '/* suggestions are not working here */\n<Item type="Test1" id="512FF7893DBCD6D1AC1F55B87A480934">\n</Item>',language: 'xml'});// read only editor #2monaco.editor.create(container2,{value: '/* read only editor */\n<Item type="Read Only Editor">\n\n</Item>',language: 'xml',readOnly: true,suggest: {showFields: false,showFunctions: false},quickSuggestions: {"other": false,"comments": false,"strings": false},parameterHints: {enabled: false},ordBasedSuggestions: false,suggestOnTriggerCharacters: false,acceptSuggestionOnEnter: "off",tabCompletion: "off",wordBasedSuggestions: false});
Reproduction Steps
Call suggestions dialog at first editor
Actual (Problematic) Behavior
There is always "No suggestions"
Expected Behavior
Suggestions dialog works and displays and includes only keywords from current editor.
Additional Context
I have two editors on page and I need to split suggestions for them. Keywords for each editor should be taken separately.
As a workaround I tries to disable editing and all suggestions options for the second editor. But these options also applies for the first editor. It's unexpected.
Do anyone has idea how to split suggestions keywords between each editor? Or maybe to leave only code highlighting for the second one.
P.S. There is a service where user inputs XML request (should be with IntelliSense) in first monaco editor and after request user should see highlighted XML response in second editor (this one can be stupid - without editing, suggestions etc.)
The text was updated successfully, but these errors were encountered:
same problem for me.
when I create multiple monaco instances and add different suggestions for them, they will be mixed up and some will show up multiple times.
It seems that all monaco instances will interact with each other, any ideas?
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Code
Reproduction Steps
Call suggestions dialog at first editor
Actual (Problematic) Behavior
There is always "No suggestions"
Expected Behavior
Suggestions dialog works and displays and includes only keywords from current editor.
Additional Context
I have two editors on page and I need to split suggestions for them. Keywords for each editor should be taken separately.
As a workaround I tries to disable editing and all suggestions options for the second editor. But these options also applies for the first editor. It's unexpected.
Do anyone has idea how to split suggestions keywords between each editor? Or maybe to leave only code highlighting for the second one.
P.S. There is a service where user inputs XML request (should be with IntelliSense) in first monaco editor and after request user should see highlighted XML response in second editor (this one can be stupid - without editing, suggestions etc.)
The text was updated successfully, but these errors were encountered: