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
goToRefSelection(range: any, editorInstance: ICodeEditor) { editorInstance.focus(); let decorationsCollection = editorInstance.createDecorationsCollection(); const decorations = [{ range: new monaco.Range(range.startLineNumber, range.startColumn, range.endLineNumber, range.endColumn), options: { inlineClassName: 'go-to-definition-highlight', }, }]; decorationsCollection.set(decorations); setTimeout(() => { decorationsCollection.clear(); decorationsCollection = null; decorationsCollection.set([]); }, 5000); }
after some duration removing the decoration, but when I call this method next with new decoration, previous decoration is also applying.
Need to removing the previous decorations and apply the new decorations.
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
No response
Actual (Problematic) Behavior
after some duration removing the decoration, but when I call this method next with new decoration, previous decoration is also applying.
Expected Behavior
Need to removing the previous decorations and apply the new decorations.
Additional Context
No response
The text was updated successfully, but these errors were encountered: