Skip to content

Commit

Permalink
Update vscode-uri and match their docs (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli authored Oct 6, 2023
1 parent 6f674ab commit 496abc3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"uuid": "^8.3.2",
"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
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15129,10 +15129,10 @@ vscode-languageserver@^8.0.1:
dependencies:
vscode-languageserver-protocol "3.17.2"

vscode-uri@^3.0.2:
version "3.0.6"
resolved "https://registry.yarnpkg.com/vscode-uri/-/vscode-uri-3.0.6.tgz#5e6e2e1a4170543af30151b561a41f71db1d6f91"
integrity sha512-fmL7V1eiDBFRRnu+gfRWTzyPpNIHJTc4mWnFkwBUmO9U3KPgJAmTx7oxi2bl/Rh6HLdU7+4C9wlj0k2E4AdKFQ==
vscode-uri@^3.0.8:
version "3.0.8"
resolved "https://registry.yarnpkg.com/vscode-uri/-/vscode-uri-3.0.8.tgz#1770938d3e72588659a172d0fd4642780083ff9f"
integrity sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==

walk-sync@^0.3.0, walk-sync@^0.3.1, walk-sync@^0.3.3:
version "0.3.4"
Expand Down

0 comments on commit 496abc3

Please sign in to comment.