mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
Change to fspath from resource tostring (#15069)
This commit is contained in:
@@ -60,7 +60,7 @@ export class EditorReplacementContribution implements IWorkbenchContribution {
|
||||
if (!language) {
|
||||
// Attempt to use extension or extension of modified input (if in diff editor)
|
||||
// remove the .
|
||||
language = editor instanceof DiffEditorInput ? path.extname(editor.modifiedInput.resource.toString()).slice(1) : path.extname(editor.resource.toString()).slice(1);
|
||||
language = editor instanceof DiffEditorInput ? path.extname(editor.modifiedInput.resource.fsPath).slice(1) : path.extname(editor.resource.toString()).slice(1);
|
||||
}
|
||||
|
||||
if (!language) {
|
||||
|
||||
Reference in New Issue
Block a user