Skip to content

Conversation

TylerLeonhardt
Copy link
Member

@TylerLeonhardt TylerLeonhardt commented Jul 14, 2021

Initial support for #118455

@TylerLeonhardt TylerLeonhardt added this to the July 2021 milestone Jul 15, 2021
@TylerLeonhardt TylerLeonhardt force-pushed the TylerLeonhardt/languagedetection branch 3 times, most recently from 8681164 to 7370b87 Compare July 16, 2021 15:34
@TylerLeonhardt TylerLeonhardt force-pushed the TylerLeonhardt/languagedetection branch 2 times, most recently from 778f5a9 to 6c5a11d Compare July 16, 2021 17:54
Comment on lines +131 to +132
private readonly _onDidChangeContent = this._register(new Emitter<IUntitledTextEditorModel>());
readonly onDidChangeContent = this._onDidChangeContent.event;
Copy link
Member Author

Choose a reason for hiding this comment

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

@bpasero I added this event on this service so I could detect only when untitled files have changed. Please let me know if this was the wrong change, and I can look for a different way to do this.

@TylerLeonhardt TylerLeonhardt marked this pull request as ready for review July 16, 2021 20:40
@TylerLeonhardt TylerLeonhardt merged commit 8f88009 into main Jul 16, 2021
@TylerLeonhardt TylerLeonhardt deleted the TylerLeonhardt/languagedetection branch July 16, 2021 23:43

let { languageId, confidence } = modelResults[0];

// TODO: this is the place where we can improve the results of the model with know hueristics (popular languages, etc).
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo: hueristics -> heuristics

Copy link
Member Author

Choose a reason for hiding this comment

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

Doh! Thanks!

@github-actions github-actions bot locked and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants