We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No response
When I enter the @ symbol or non-letter, it does not trigger provideCompletionItems
monaco.languages.registerCompletionItemProvider('plaintext', { provideCompletionItems: (model, position) => { console.log("=====>") const lineContent = model.getLineContent(position.lineNumber); const textUntilPosition = lineContent.substring(0, position.column - 1); let suggestions = []; if (textUntilPosition.endsWith('@')) { suggestions = [ { label: 'user1', kind: monaco.languages.CompletionItemKind.User, insertText: 'user1' }, { label: 'user2', kind: monaco.languages.CompletionItemKind.User, insertText: 'user2' }, { label: 'team1', kind: monaco.languages.CompletionItemKind.Class, insertText: 'team1' } ]; } return { suggestions: suggestions }; } }); });
When I enter the @ symbol or a number, it does not trigger provideCompletionItems
Trigger suggestion
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
Reproduction Steps
<title>Monaco Editor Example</title> <script src="https://unpkg.com/monaco-editor@latest/min/vs/loader.js"></script> <script> require.config({ paths: { 'vs': 'https://unpkg.com/monaco-editor@latest/min/vs' }}); require(['vs/editor/editor.main'], function() { const editor = monaco.editor.create(document.getElementById('container'), { value: '', language: 'plaintext', theme: 'vs-dark' });Actual (Problematic) Behavior
When I enter the @ symbol or a number, it does not trigger provideCompletionItems
Expected Behavior
Trigger suggestion
Additional Context
No response
The text was updated successfully, but these errors were encountered: