Skip to content

Commit

Permalink
fix: Only send OnEnter for sway files (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdankel committed May 25, 2024
1 parent 978fc66 commit 983aee6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/interface/onEnter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const request = new RequestType<OnEnterParams, WorkspaceEdit | null, void>(
export const onEnter = async (changeEvent: TextDocumentChangeEvent) => {
if (
changeEvent.document.uri.scheme === 'file' &&
changeEvent.document.languageId === 'sway' &&
changeEvent.contentChanges.length === 1 &&
changeEvent.contentChanges[0].text.includes('\n')
) {
Expand Down

0 comments on commit 983aee6

Please sign in to comment.