-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not ask client to open file from server
to resolve #199
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/src/typeScriptServiceClientHost.ts b/src/typeScriptServiceClientHost.ts | ||
index 0268e5f..b58be99 100644 | ||
--- a/src/typeScriptServiceClientHost.ts | ||
+++ b/src/typeScriptServiceClientHost.ts | ||
@@ -206,12 +206,6 @@ export default class TypeScriptServiceClientHost extends Disposable { | ||
return language; | ||
} | ||
} | ||
- | ||
- // If that doesn't work, fallback to using a text document language mode. | ||
- // This is not ideal since we have to open the document but should always | ||
- // be correct | ||
- const doc = await vscode.workspace.openTextDocument(resource); | ||
- return this.languages.find(language => language.handlesDocument(doc)); | ||
} catch { | ||
return undefined; | ||
} |