We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2188f70 commit 97b5eb4Copy full SHA for 97b5eb4
1 file changed
libs/vscode/server/src/lib/helpers/get-file-strings.ts
@@ -20,12 +20,15 @@ export async function GetFileStrings(uri: string): Promise<string> {
20
if (doc !== undefined) {
21
strings = doc.getText();
22
} else {
23
+ /** Get fs path */
24
+ const fsPath = GetFSPath(uri);
25
+
26
/**
27
* Silently ignore when the file is deleted which is handled
28
* elsewhere
29
*/
- if (existsSync(uri)) {
- strings = readFileSync(GetFSPath(uri), 'utf8');
30
+ if (existsSync(fsPath)) {
31
+ strings = readFileSync(GetFSPath(fsPath), 'utf8');
32
}
33
34
0 commit comments