File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import {
2222} from 'vscode-languageserver-protocol' ;
2323
2424import * as RoslynProtocol from '../server/roslynProtocol' ;
25- import { generateUuid } from 'vscode-languageclient/ uuid' ;
25+ import { v4 as uuidv4 } from 'uuid' ;
2626
2727export class OnAutoInsertFeature implements DynamicFeature < RoslynProtocol . OnAutoInsertRegistrationOptions > {
2828 private readonly _client : LanguageClient ;
@@ -92,7 +92,7 @@ export class OnAutoInsertFeature implements DynamicFeature<RoslynProtocol.OnAuto
9292 return ;
9393 }
9494 this . register ( {
95- id : generateUuid ( ) ,
95+ id : uuidv4 ( ) ,
9696 registerOptions : options ,
9797 } ) ;
9898 }
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import { RazorDocumentChangeKind } from './razorDocumentChangeKind';
1919import { createDocument } from './razorDocumentFactory' ;
2020import { razorInitializeCommand } from '../../../lsptoolshost/razor/razorCommands' ;
2121import { PlatformInformation } from '../../../shared/platform' ;
22- import { generateUuid } from 'vscode-languageclient/ uuid' ;
22+ import { v4 as uuidv4 } from 'uuid' ;
2323
2424export class RazorDocumentManager implements IRazorDocumentManager {
2525 public roslynActivated = false ;
@@ -168,7 +168,7 @@ export class RazorDocumentManager implements IRazorDocumentManager {
168168 // a Razor file.
169169 if ( this . roslynActivated && ! this . razorDocumentGenerationInitialized ) {
170170 this . razorDocumentGenerationInitialized = true ;
171- const pipeName = generateUuid ( ) ;
171+ const pipeName = uuidv4 ( ) ;
172172
173173 await vscode . commands . executeCommand ( razorInitializeCommand , pipeName ) ;
174174 await this . serverClient . connectNamedPipe ( pipeName ) ;
Original file line number Diff line number Diff line change 2020 "vscode-languageclient/colorProvider" : [" ./node_modules/vscode-languageclient/lib/common/colorProvider" ],
2121 "vscode-languageclient/selectionRange" : [" ./node_modules/vscode-languageclient/lib/common/selectionRange" ],
2222 "vscode-languageclient/protocolConverter" : [" ./node_modules/vscode-languageclient/lib/common/protocolConverter" ],
23- "vscode-languageclient/uuid" : [" ./node_modules/vscode-languageclient/lib/common/utils/uuid" ],
2423 "vscode-languageclient/node" : [" ./node_modules/vscode-languageclient/lib/node/main" ],
2524 "vscode-languageserver-protocol" : [" ./node_modules/vscode-languageserver-protocol/lib/common/api" ],
2625 "vscode-languageserver-protocol/node" : [" ./node_modules/vscode-languageserver-protocol/lib/node/main" ],
You can’t perform that action at this time.
0 commit comments