Skip to content

Commit 52e2d43

Browse files
authored
Handle documents not on local disk as files in the workspace root. (#1580)
1 parent d70efb1 commit 52e2d43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/eslint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ export namespace ESLint {
10571057
return undefined;
10581058
}
10591059
const uri = URI.parse(document.uri);
1060-
if (uri.scheme === 'untitled') {
1060+
if (uri.scheme !== 'file') {
10611061
if (settings.workspaceFolder !== undefined) {
10621062
const ext = LanguageDefaults.getExtension(document.languageId);
10631063
const workspacePath = inferFilePath(settings.workspaceFolder.uri);

0 commit comments

Comments
 (0)