mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 17:19:01 +01:00
protocol: refactor to use enum for marshalled object ids
This commit is contained in:
@@ -10,6 +10,7 @@ import { IRelativePattern } from 'vs/base/common/glob';
|
||||
import { hash } from 'vs/base/common/hash';
|
||||
import { DisposableStore, IDisposable, toDisposable } from 'vs/base/common/lifecycle';
|
||||
import { ResourceMap } from 'vs/base/common/map';
|
||||
import { MarshalledId } from 'vs/base/common/marshalling';
|
||||
import { isFalsyOrWhitespace } from 'vs/base/common/strings';
|
||||
import { assertIsDefined } from 'vs/base/common/types';
|
||||
import { URI, UriComponents } from 'vs/base/common/uri';
|
||||
@@ -91,7 +92,7 @@ export class ExtHostNotebookController implements ExtHostNotebookShape {
|
||||
commands.registerArgumentProcessor({
|
||||
// Serialized INotebookCellActionContext
|
||||
processArgument: (arg) => {
|
||||
if (arg && arg.$mid === 12) {
|
||||
if (arg && arg.$mid === MarshalledId.NotebookCellActionContext) {
|
||||
const notebookUri = arg.notebookEditor?.notebookUri;
|
||||
const cellHandle = arg.cell.handle;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user