Skip to content

Commit

Permalink
Merge pull request #125 from takemikami/bugfix-win-lsp
Browse files Browse the repository at this point in the history
bugfix: Windows Language Server path problem
  • Loading branch information
takemikami authored Apr 27, 2020
2 parents bdfb6d5 + 29abe8f commit d3ad017
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static String convertUri2FilePath(String uri) {
// pass
}
return decoded;
}).collect(Collectors.joining(fileSeparator));
}).collect(Collectors.joining(File.separator));
if (fullPath.split(fileSeparator)[1].endsWith(":")) {
fullPath = fullPath.substring(1);
}
Expand Down Expand Up @@ -226,6 +226,9 @@ void refreshFileTripleSet() {
if (File.separatorChar == '\\') {
subdir = filename.replaceAll("\\\\", "/");
}
if (subdir.length() > 0 && subdir.charAt(0) == '/' && baseUri.endsWith("/")) {
subdir = subdir.substring(1);
}
Lang lang = e.toString().endsWith(".ttl") ? Lang.TURTLE : Lang.RDFXML;
String text = sourceTextMap.get(convertFilePath2Uri(e.toString()));
List<Triple> lst;
Expand Down
2 changes: 2 additions & 0 deletions vscode-rdflint/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how

## [Unreleased]

## 0.1.4

- Language Server Protocol enable/disable configuration.

## 0.0.4
Expand Down
2 changes: 1 addition & 1 deletion vscode-rdflint/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d3ad017

Please sign in to comment.