Skip to content

Commit

Permalink
fix #79628
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Aug 22, 2019
1 parent 6f99810 commit d65681b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/browser/parts/editor/editorStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ export class ChangeModeAction extends Action {
private configureFileAssociation(resource: URI): void {
const extension = extname(resource);
const base = basename(resource);
const currentAssociation = this.modeService.getModeIdByFilepathOrFirstLine(resource.with({ path: base }));
const currentAssociation = this.modeService.getModeIdByFilepathOrFirstLine(URI.file(base));

const languages = this.modeService.getRegisteredLanguageNames();
const picks: IQuickPickItem[] = languages.sort().map((lang, index) => {
Expand Down

0 comments on commit d65681b

Please sign in to comment.