Skip to content

Conversation

@CGNonofr
Copy link
Contributor

The DocumentSemanticTokensFeature is only instantiated when the first editor is created. So any model created before the first editor won't have any semantic tokens

@CGNonofr CGNonofr changed the title Take into account model created beforehand Nov 30, 2023
@CGNonofr CGNonofr force-pushed the use-beforehand-models branch from 23eaf2b to 85ecb9f Compare November 30, 2023 12:57
super();
this._rangeHighlightDecorations = this.instantiationService.createInstance(RangeHighlightDecorations);

this.modelService.getModels().forEach(model => this.onModelAdded(model));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@roblourens roblourens Dec 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems unnecessary because we will do this when the search runs? But is fine and not having it looks wrong

Copy link
Member

@alexdima alexdima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@alexdima alexdima added this to the December 2023 milestone Dec 5, 2023
@alexdima alexdima enabled auto-merge (squash) December 5, 2023 13:30
@alexdima alexdima merged commit 838acd0 into microsoft:main Dec 5, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

4 participants