<p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">I'm trying to use an import map in my Deno project. I set up the import map like:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
    &quot;imports&quot;: {
        &quot;interfaces/&quot;: &quot;./interfaces/&quot;,
    }
}"><pre class="notranslate">{
    <span class="pl-ent">"imports"</span>: {
        <span class="pl-ent">"interfaces/"</span>: <span class="pl-s"><span class="pl-pds">"</span>./interfaces/<span class="pl-pds">"</span></span>,
    }
}</pre></div>
<p dir="auto">But when in another file I type:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { IEnergyMeterValidator } from &quot;interfaces/validators/mod.ts&quot;;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">IEnergyMeterValidator</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"interfaces/validators/mod.ts"</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">It shows the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="relative import path &quot;interfaces/validators/mod.ts&quot; not prefixed with / or ./ or ../ Imported from &quot;file:///c%3A/Users/anton/Documents/inversor/validators/EnergyMeterValidator.ts&quot;deno(invalid-specifier)"><pre class="notranslate"><code class="notranslate">relative import path "interfaces/validators/mod.ts" not prefixed with / or ./ or ../ Imported from "file:///c%3A/Users/anton/Documents/inversor/validators/EnergyMeterValidator.ts"deno(invalid-specifier)
</code></pre></div>
<p dir="auto">All those files exist and if I run the command <code class="notranslate">deno run --import-map=import_map.json validators\EnergyMeterValidator.ts</code> from the command line it works great.</p>
<p dir="auto">Here is my vscode configuration:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
    &quot;deno.enable&quot;: true,
    &quot;deno.lint&quot;: true,
    &quot;deno.unstable&quot;: true,
    &quot;deno.importMap&quot;: &quot;./import_map.json&quot;
}"><pre class="notranslate">{
    <span class="pl-ent">"deno.enable"</span>: <span class="pl-c1">true</span>,
    <span class="pl-ent">"deno.lint"</span>: <span class="pl-c1">true</span>,
    <span class="pl-ent">"deno.unstable"</span>: <span class="pl-c1">true</span>,
    <span class="pl-ent">"deno.importMap"</span>: <span class="pl-s"><span class="pl-pds">"</span>./import_map.json<span class="pl-pds">"</span></span>
}</pre></div>
<p dir="auto"><strong>To Reproduce</strong></p>
<ol dir="auto">
<li>Recreate the file structure described above.</li>
<li>Copy my vscode configuration in vscode.</li>
<li>Copy my <code class="notranslate">import_map.json</code>.</li>
<li>Go to <code class="notranslate">EnergyMeterValidator.ts</code> and see the import line in red.</li>
</ol>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">The error should not be shown and the import map should be taken into account.</p>
<p dir="auto"><strong>Versions</strong></p>
<p dir="auto">vscode: 1.54.3<br>
deno: 1.8.2<br>
extension: 3.2.0</p>
<p dir="auto">(EDIT: See comments below, this goes beyond import maps, there's a mismatch in how paths are encoded between the extension and the LSP on Windows)</p>
<p dir="auto">I'm using an import map to remap <code class="notranslate">.js</code> imports to <code class="notranslate">.ts</code> in code I share between the browser and Deno.<br>
It is working fine in Deno, but the extension reports the following errors:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Unable to load a local module: &quot;file:///c%3A/vscode-deno-import-map/browser/secondary.js&quot;.
Please check the file path."><pre class="notranslate"><code class="notranslate">Unable to load a local module: "file:///c%3A/vscode-deno-import-map/browser/secondary.js".
Please check the file path.
</code></pre></div>
<p dir="auto">and</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Property 'value' does not exist on type 'typeof import(&quot;file:///c%3A/vscode-deno-import-map/browser/shared&quot;)'."><pre class="notranslate"><code class="notranslate">Property 'value' does not exist on type 'typeof import("file:///c%3A/vscode-deno-import-map/browser/shared")'.
</code></pre></div>
<p dir="auto"><strong>To Reproduce</strong></p>
<p dir="auto">See screenshot below or minimal repro here: <a href="https://github.com/elisee/vscode-deno-import-map">https://github.com/elisee/vscode-deno-import-map</a></p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">The import map should be properly applied by the extension and there should be no errors.</p>
<p dir="auto"><strong>Screenshots</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/446986/109956763-56779f80-7ce4-11eb-8b5d-30f5d12dbb49.png"><img src="https://user-images.githubusercontent.com/446986/109956763-56779f80-7ce4-11eb-8b5d-30f5d12dbb49.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Versions</strong></p>
<p dir="auto">vscode: v1.53.2<br>
deno: v1.8.0<br>
extension: v3.1.0<br>
os: windows (seems important, see comment below)</p>