visual studio code - Passing data to a VSCode extension running in an instance that was started on demand with serve-web - Stack
- c - Solaris 10 make Error code 1 Fatal Error when trying to build python 2.7.16 - Stack Overflow 推荐度:
- javascript - How to dismiss a phonegap notification programmatically - Stack Overflow 推荐度:
- javascript - Get the JSON objects that are not present in another array - Stack Overflow 推荐度:
- javascript - VS 2015 Angular 2 import modules cannot be resolved - Stack Overflow 推荐度:
- javascript - Type 'undefined' is not assignable to type 'menuItemProps[]' - Stack Overflow 推荐度:
- 相关推荐
I'm spinning up VSCode serve-web instances on demand. Each includes an extension (which I've written) that connect to a central signalr endpoint.
Not every browser tab gets a new vscode instance, so two browser tabs may use the same vscode serve-web instance.
To give each editor in a browser tab a unique id, it is not enough to pass a generated id to the vscode serve-web instance and since it may serve more than one browser tab.
The api has the vscode.env.sessionId
variable which would work as a unique id but it still falls short because by the time I have access to it (i.e. the editor is opened in a tab), I won't be able to reliably match the new instance to the original on demand request. (I'm currently just assuming it is the newest signalr connection.)
I hope the following makes my problem a bit easier to understand:
To try and solve this problem, I added another query parameter to the editor url (i.e. &EditorId=<NewGuid>
) and tried to get that parameter in the extension. But I've had no luck accessing that information in the extension.
Is it possible to get the EditorId
query parameter in a vscode extension, or achieve the same by other means?
- 2013年科技行业推出的失败产品(组图)
- 山寨平板电脑走到穷途末路:方案公司纷纷倒闭
- anaconda - Trouble using fiona in conda environment: ImportError: DLL load failed while importing _env - Stack Overflow
- gdal - Using gdal_translate to compress multiple TIFF files - Stack Overflow
- dart - Flutter local notification throws error when i try to setup scheduled Notification - Stack Overflow
- html - Disable scrolling. Overflow:hidden not working - Stack Overflow
- express - How can I access a cookie (refreshToken) on the server side in Next.js? - Stack Overflow
- Why is Django Machina query altered with nonexistent table name - Stack Overflow
- Angular post request body is null when received by Spring API - Stack Overflow
- Java Zxing Datamatrix Code Not Scanning Datamatrixes - Stack Overflow
- python - Unet isn't working orand i'm not using it correctly - Stack Overflow
- julia - How can I fix GLMakie.jl LoadError? - Stack Overflow
- apple swift: is forKey:fileSize considered accessing non-public API? - Stack Overflow
- In Visual Studio 2022, Can not export and import new Project Template - Stack Overflow
- node.js - How to handle time taking processes in slack app view - Stack Overflow
- flutter - How to write LOGs in an APP made in fletpython, which appear in the DDMS? - Stack Overflow
- Dbeaver customizing column and table name colors - Stack Overflow