Skip to content

Commit

Permalink
fixes #126962
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Jul 2, 2021
1 parent 7be9857 commit dec4a09
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export class AdapterManager implements IAdapterManager {
let languageLabel: string | null = null;
let model: IEditorModel | null = null;
if (isCodeEditor(activeTextEditorControl)) {
const model = activeTextEditorControl.getModel();
model = activeTextEditorControl.getModel();
const language = model ? model.getLanguageIdentifier().language : undefined;
if (language) {
languageLabel = this.modeService.getLanguageName(language);
Expand Down

0 comments on commit dec4a09

Please sign in to comment.