Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions samples/language-service-sample/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,13 +596,6 @@ require(['vs/editor/editor.main'], function () {
}, 2000);
});

// Initialize
applyHighlighting();
evaluate();

// Load example from URL query parameter if present
loadExampleFromUrl();

// Event listeners for changes
expressionModel.onDidChangeContent(() => {
applyHighlighting();
Expand All @@ -612,4 +605,11 @@ require(['vs/editor/editor.main'], function () {
contextModel.onDidChangeContent(() => {
evaluate();
});

// Initialize - apply highlighting and evaluate for initial content
applyHighlighting();
evaluate();

// Load example from URL query parameter if present (after event handlers are set up)
loadExampleFromUrl();
});
Loading