Skip to content

Commit 23c6889

Browse files
committed
Fix vmt path completion slash replace only replacing first one
1 parent f2e322f commit 23c6889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/language/ShaderParamCompletionItemProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class ShaderParamCompletionItemProvider implements vscode.CompletionItemP
115115
if (filePath.startsWith("\\") || filePath.startsWith("/")) {
116116
filePath = filePath.slice(1);
117117
}
118-
const filePathWithoutExtension = filePath.substring(0, filePath.length - 4).replace("\\", "/");
118+
const filePathWithoutExtension = filePath.substring(0, filePath.length - 4).replace(/\\/g, "/");
119119

120120
const completion = new vscode.CompletionItem(filePathWithoutExtension);
121121
completion.insertText = filePathWithoutExtension;

0 commit comments

Comments
 (0)