We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0899dc commit c074b49Copy full SHA for c074b49
lib/auto-languageclient.ts
@@ -312,7 +312,9 @@ export default class AutoLanguageClient {
312
* @param _editor A {TextEditor} which is opened.
313
* @returns A {string} of `languageId` used for `textDocument/didOpen` notification.
314
*/
315
- public getLanguageIdFromEditor(_editor: TextEditor): string | void | null {}
+ protected getLanguageIdFromEditor(_editor: TextEditor): string {
316
+ return this._editor.getGrammar().name
317
+ }
318
319
// Helper methods that are useful for implementors
320
// ---------------------------------------------------------------------------
0 commit comments