fix windows file context provider bug
This commit is contained in:
parent
014122957f
commit
95c41f0010
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ async function resolveEditorContent(
|
|||
let contextItems: ContextItemWithId[] = [];
|
||||
const ide = new ExtensionIde();
|
||||
for (const item of contextItemAttrs) {
|
||||
if (item.id.startsWith("/") || item.id.startsWith("\\")) {
|
||||
if (item.id.startsWith("/") || item.id.startsWith("\\") || (item.id.length > 2 && item.id[1] === ":" && item.id[2] === "\\")) {
|
||||
// This is a quick way to resolve @file references
|
||||
const basename = getBasename(item.id);
|
||||
const content = await ide.readFile(item.id);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue