Fix js/ts refactorings
This commit is contained in:
parent
c8c773a58c
commit
91e99652cd
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,6 @@ class TypeScriptRefactorProvider implements vscode.CodeActionProvider {
|
|||
return undefined;
|
||||
}
|
||||
|
||||
const args: Proto.GetApplicableRefactorsRequestArgs = typeConverters.Range.toFileRangeRequestArgs(fileSchemes.file, rangeOrSelection);
|
||||
const response = await this.client.interruptGetErr(() => {
|
||||
const file = this.client.toOpenedFilePath(document);
|
||||
if (!file) {
|
||||
|
@ -166,6 +165,7 @@ class TypeScriptRefactorProvider implements vscode.CodeActionProvider {
|
|||
}
|
||||
this.formattingOptionsManager.ensureConfigurationForDocument(document, token);
|
||||
|
||||
const args: Proto.GetApplicableRefactorsRequestArgs = typeConverters.Range.toFileRangeRequestArgs(file, rangeOrSelection);
|
||||
return this.client.execute('getApplicableRefactors', args, token);
|
||||
});
|
||||
if (!response || response.type !== 'response' || !response.body) {
|
||||
|
|
Loading…
Reference in a new issue