File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1840,7 +1840,8 @@ export class DefaultClient implements Client {
18401840 public onDidChangeTextDocument ( textDocumentChangeEvent : vscode . TextDocumentChangeEvent ) : void {
18411841 if ( util . isCpp ( textDocumentChangeEvent . document ) ) {
18421842 // If any file has changed, we need to abort the current rename operation
1843- if ( workspaceReferences . renamePending ) {
1843+ if ( workspaceReferences !== undefined // Occurs when a document changes before cpptools starts.
1844+ && workspaceReferences . renamePending ) {
18441845 workspaceReferences . cancelCurrentReferenceRequest ( refs . CancellationSender . User ) ;
18451846 }
18461847
Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ async function onDidChangeSettings(event: vscode.ConfigurationChangeEvent): Prom
298298 }
299299}
300300
301- async function onDidChangeTextDocument ( event : vscode . TextDocumentChangeEvent ) : Promise < void > {
301+ function onDidChangeTextDocument ( event : vscode . TextDocumentChangeEvent ) : void {
302302 const me : Client = clients . getClientFor ( event . document . uri ) ;
303303 me . onDidChangeTextDocument ( event ) ;
304304}
You can’t perform that action at this time.
0 commit comments