We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f99810 commit d65681bCopy full SHA for d65681b
1 file changed
src/vs/workbench/browser/parts/editor/editorStatus.ts
@@ -990,7 +990,7 @@ export class ChangeModeAction extends Action {
990
private configureFileAssociation(resource: URI): void {
991
const extension = extname(resource);
992
const base = basename(resource);
993
- const currentAssociation = this.modeService.getModeIdByFilepathOrFirstLine(resource.with({ path: base }));
+ const currentAssociation = this.modeService.getModeIdByFilepathOrFirstLine(URI.file(base));
994
995
const languages = this.modeService.getRegisteredLanguageNames();
996
const picks: IQuickPickItem[] = languages.sort().map((lang, index) => {
0 commit comments