Skip to content

Commit

Permalink
修正路径大小写导致插件失效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Aug 12, 2024
1 parent f67c2bc commit bbbd0e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export class PluginManager extends vscode.Disposable {
}

public getName(uri: vscode.Uri) {
if (!uri.path.startsWith(this.dir.path)) {
if (!uri.path.toLocaleLowerCase().startsWith(this.dir.path.toLocaleLowerCase())) {
return undefined;
}
return uri.path.slice(this.dir.path.length + 1).replace(/\.js$/, '');
Expand Down

0 comments on commit bbbd0e1

Please sign in to comment.