Skip to content

Commit

Permalink
Remove extra package, and use real import
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Oct 6, 2023
1 parent 8e64e30 commit 03b71ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@
"semver": "^7.5.2",
"silent-error": "^1.1.1",
"uuid": "^8.3.2",
"vscode-uri": "^3.0.8",
"vscode-languageserver": "^8.0.1",
"vscode-languageserver-textdocument": "^1.0.5",
"vscode-uri": "^3.0.2",
"vscode-uri": "^3.0.8",
"yargs": "^17.5.1"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/language-server/util/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export { positionToOffset, offsetToPosition } from './position.js';
export { scriptElementKindToCompletionItemKind } from './protocol.js';

import VSCodeURI from 'vscode-uri';
import { URI } from 'vscode-uri';

export function uriToFilePath(uri: string): string {
return VSCodeURI.URI.parse(uri).fsPath.replace(/\\/g, '/');
return URI.parse(uri).fsPath.replace(/\\/g, '/');
}

export function filePathToUri(filePath: string): string {
return VSCodeURI.URI.file(filePath).toString();
return URI.file(filePath).toString();
}

export function normalizeFilePath(filePath: string): string {
Expand Down

0 comments on commit 03b71ba

Please sign in to comment.